Move all platform-specific code to src/platform/.
Without resources, it makes no sense anymore to keep these in separate subdirectories: unixutil* is shared between Cocoa and GTK ports, and gloffscreen* should be shared between all ports (but it's still platform-specific).
This commit is contained in:
parent
4c01461316
commit
fa546af28f
|
@ -33,10 +33,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(util_SOURCES
|
set(util_SOURCES
|
||||||
win32/w32util.cpp)
|
platform/w32util.cpp)
|
||||||
else()
|
else()
|
||||||
set(util_SOURCES
|
set(util_SOURCES
|
||||||
unix/unixutil.cpp)
|
platform/unixutil.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# libslvs
|
# libslvs
|
||||||
|
@ -129,7 +129,7 @@ set(generated_SOURCES
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
set(platform_SOURCES
|
set(platform_SOURCES
|
||||||
win32/w32main.cpp)
|
platform/w32main.cpp)
|
||||||
|
|
||||||
set(platform_LIBRARIES
|
set(platform_LIBRARIES
|
||||||
comctl32)
|
comctl32)
|
||||||
|
@ -138,8 +138,8 @@ elseif(APPLE)
|
||||||
-fobjc-arc)
|
-fobjc-arc)
|
||||||
|
|
||||||
set(platform_SOURCES
|
set(platform_SOURCES
|
||||||
cocoa/cocoamain.mm
|
platform/cocoamain.mm
|
||||||
unix/gloffscreen.cpp)
|
platform/gloffscreen.cpp)
|
||||||
|
|
||||||
set(platform_BUNDLED_LIBS
|
set(platform_BUNDLED_LIBS
|
||||||
${PNG_LIBRARIES}
|
${PNG_LIBRARIES}
|
||||||
|
@ -167,8 +167,8 @@ elseif(HAVE_GTK)
|
||||||
${GLEW_CFLAGS_OTHER})
|
${GLEW_CFLAGS_OTHER})
|
||||||
|
|
||||||
set(platform_SOURCES
|
set(platform_SOURCES
|
||||||
gtk/gtkmain.cpp
|
platform/gtkmain.cpp
|
||||||
unix/gloffscreen.cpp)
|
platform/gloffscreen.cpp)
|
||||||
|
|
||||||
set(platform_LIBRARIES
|
set(platform_LIBRARIES
|
||||||
${GTKMM_LIBRARIES}
|
${GTKMM_LIBRARIES}
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
#include "solvespace.h"
|
#include "solvespace.h"
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
#include <unix/gloffscreen.h>
|
#include <platform/gloffscreen.h>
|
||||||
#endif
|
#endif
|
||||||
#include <png.h>
|
#include <png.h>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Our main() function, and Cocoa-specific stuff to set up our windows and
|
// Our main() function, and Cocoa-specific stuff to set up our windows and
|
||||||
// otherwise handle our interface to the operating system. Everything
|
// otherwise handle our interface to the operating system. Everything
|
||||||
// outside gtk/... should be standard C++ and OpenGL.
|
// outside platform/... should be standard C++ and OpenGL.
|
||||||
//
|
//
|
||||||
// Copyright 2015 <whitequark@whitequark.org>
|
// Copyright 2015 <whitequark@whitequark.org>
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -14,7 +14,7 @@
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#include "solvespace.h"
|
#include "solvespace.h"
|
||||||
#include "../unix/gloffscreen.h"
|
#include "gloffscreen.h"
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
using SolveSpace::dbp;
|
using SolveSpace::dbp;
|
|
@ -1,7 +1,7 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Our main() function, and GTK3-specific stuff to set up our windows and
|
// Our main() function, and GTK2/3-specific stuff to set up our windows and
|
||||||
// otherwise handle our interface to the operating system. Everything
|
// otherwise handle our interface to the operating system. Everything
|
||||||
// outside gtk/... should be standard C++ and OpenGL.
|
// outside platform/... should be standard C++ and OpenGL.
|
||||||
//
|
//
|
||||||
// Copyright 2015 <whitequark@whitequark.org>
|
// Copyright 2015 <whitequark@whitequark.org>
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
#include "solvespace.h"
|
#include "solvespace.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "../unix/gloffscreen.h"
|
#include "gloffscreen.h"
|
||||||
|
|
||||||
#ifdef HAVE_SPACEWARE
|
#ifdef HAVE_SPACEWARE
|
||||||
# include <spnav.h>
|
# include <spnav.h>
|
|
@ -1,7 +1,7 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
// Our WinMain() functions, and Win32-specific stuff to set up our windows
|
// Our WinMain() functions, and Win32-specific stuff to set up our windows
|
||||||
// and otherwise handle our interface to the operating system. Everything
|
// and otherwise handle our interface to the operating system. Everything
|
||||||
// outside win32/... should be standard C++ and gl.
|
// outside platform/... should be standard C++ and gl.
|
||||||
//
|
//
|
||||||
// Copyright 2008-2013 Jonathan Westhues.
|
// Copyright 2008-2013 Jonathan Westhues.
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
Loading…
Reference in New Issue
Block a user