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).pull/10/head
parent
4c01461316
commit
fa546af28f
|
@ -33,10 +33,10 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
|
|||
|
||||
if(WIN32)
|
||||
set(util_SOURCES
|
||||
win32/w32util.cpp)
|
||||
platform/w32util.cpp)
|
||||
else()
|
||||
set(util_SOURCES
|
||||
unix/unixutil.cpp)
|
||||
platform/unixutil.cpp)
|
||||
endif()
|
||||
|
||||
# libslvs
|
||||
|
@ -129,7 +129,7 @@ set(generated_SOURCES
|
|||
|
||||
if(WIN32)
|
||||
set(platform_SOURCES
|
||||
win32/w32main.cpp)
|
||||
platform/w32main.cpp)
|
||||
|
||||
set(platform_LIBRARIES
|
||||
comctl32)
|
||||
|
@ -138,8 +138,8 @@ elseif(APPLE)
|
|||
-fobjc-arc)
|
||||
|
||||
set(platform_SOURCES
|
||||
cocoa/cocoamain.mm
|
||||
unix/gloffscreen.cpp)
|
||||
platform/cocoamain.mm
|
||||
platform/gloffscreen.cpp)
|
||||
|
||||
set(platform_BUNDLED_LIBS
|
||||
${PNG_LIBRARIES}
|
||||
|
@ -167,8 +167,8 @@ elseif(HAVE_GTK)
|
|||
${GLEW_CFLAGS_OTHER})
|
||||
|
||||
set(platform_SOURCES
|
||||
gtk/gtkmain.cpp
|
||||
unix/gloffscreen.cpp)
|
||||
platform/gtkmain.cpp
|
||||
platform/gloffscreen.cpp)
|
||||
|
||||
set(platform_LIBRARIES
|
||||
${GTKMM_LIBRARIES}
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
#include "solvespace.h"
|
||||
#ifndef WIN32
|
||||
#include <unix/gloffscreen.h>
|
||||
#include <platform/gloffscreen.h>
|
||||
#endif
|
||||
#include <png.h>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Our main() function, and Cocoa-specific stuff to set up our windows and
|
||||
// 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>
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -14,7 +14,7 @@
|
|||
#include <map>
|
||||
|
||||
#include "solvespace.h"
|
||||
#include "../unix/gloffscreen.h"
|
||||
#include "gloffscreen.h"
|
||||
#include <config.h>
|
||||
|
||||
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
|
||||
// outside gtk/... should be standard C++ and OpenGL.
|
||||
// outside platform/... should be standard C++ and OpenGL.
|
||||
//
|
||||
// Copyright 2015 <whitequark@whitequark.org>
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -52,7 +52,7 @@
|
|||
|
||||
#include "solvespace.h"
|
||||
#include "config.h"
|
||||
#include "../unix/gloffscreen.h"
|
||||
#include "gloffscreen.h"
|
||||
|
||||
#ifdef HAVE_SPACEWARE
|
||||
# include <spnav.h>
|
|
@ -1,7 +1,7 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Our WinMain() functions, and Win32-specific stuff to set up our windows
|
||||
// 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.
|
||||
//-----------------------------------------------------------------------------
|
Loading…
Reference in New Issue