Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-07-13 10:04:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-13 10:04:54 +0400
commit44e45e54c51e2f54c89b173e8844a99ce7f5de75 (patch)
tree783c5cfff30003194857f5ae061fb1eb27f41c1e /intern/ghost/CMakeLists.txt
parent0fc6aac3dc133c2a06aa44866b9d45abb7d54b45 (diff)
- don't build ghost's event printer unless ghost debug is enabled.
- use char rather then STR_String for the event printer. - added option to build WITH_GHOST_DEBUG for cmake - renamed WITH_SDL_GHOST --> WITH_GHOST_SDL
Diffstat (limited to 'intern/ghost/CMakeLists.txt')
-rw-r--r--intern/ghost/CMakeLists.txt15
1 files changed, 12 insertions, 3 deletions
diff --git a/intern/ghost/CMakeLists.txt b/intern/ghost/CMakeLists.txt
index 30f5b176532..f887d021220 100644
--- a/intern/ghost/CMakeLists.txt
+++ b/intern/ghost/CMakeLists.txt
@@ -42,7 +42,6 @@ set(SRC
intern/GHOST_Path-api.cpp
intern/GHOST_DisplayManager.cpp
intern/GHOST_EventManager.cpp
- intern/GHOST_EventPrinter.cpp
intern/GHOST_ISystem.cpp
intern/GHOST_ISystemPaths.cpp
intern/GHOST_ModifierKeys.cpp
@@ -89,7 +88,17 @@ set(SRC
intern/GHOST_WindowManager.h
)
-if(WITH_HEADLESS OR WITH_SDL_GHOST)
+if(WITH_GHOST_DEBUG)
+ list(APPEND SRC
+ intern/GHOST_EventPrinter.cpp
+
+ intern/GHOST_EventPrinter.h
+ )
+ add_definitions(-DWITH_GHOST_DEBUG)
+endif()
+
+
+if(WITH_HEADLESS OR WITH_GHOST_SDL)
if(WITH_HEADLESS)
list(APPEND SRC
intern/GHOST_DisplayManagerNULL.h
@@ -107,7 +116,7 @@ if(WITH_HEADLESS OR WITH_SDL_GHOST)
intern/GHOST_SystemSDL.h
intern/GHOST_WindowSDL.h
)
- add_definitions(-DWITH_SDL_GHOST)
+ add_definitions(-DWITH_GHOST_SDL)
endif()