diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-10-31 03:56:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-10-31 03:56:46 +0300 |
commit | 7f5abb7fe2681d8f72d1d29c6567077b70351112 (patch) | |
tree | d3ca63fdbd363635831e171c9313fb794b391547 /source/blender/windowmanager | |
parent | b349f7c99d770673cfd27b3ce7de311db33d6b3f (diff) |
dont build blender/kernel if the game engines disabled.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/CMakeLists.txt | 4 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/windowmanager/CMakeLists.txt b/source/blender/windowmanager/CMakeLists.txt index c39897af68a..efdcd47ea72 100644 --- a/source/blender/windowmanager/CMakeLists.txt +++ b/source/blender/windowmanager/CMakeLists.txt @@ -90,6 +90,10 @@ ELSE(WITH_PYTHON) ADD_DEFINITIONS(-DDISABLE_PYTHON) ENDIF(WITH_PYTHON) +IF(WITH_GAMEENGINE) + ADD_DEFINITIONS(-DGAMEBLENDER) +ENDIF(WITH_GAMEENGINE) + IF(WIN32) LIST(APPEND INC ${PTHREADS_INC}) ENDIF(WIN32) diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index e373579577d..b9736009d32 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -65,7 +65,9 @@ #include "BPY_extern.h" #endif +#if GAMEBLENDER == 1 #include "SYS_System.h" +#endif #include "RNA_define.h" @@ -432,9 +434,9 @@ void WM_exit(bContext *C) wm_ghost_exit(); CTX_free(C); - +#if GAMEBLENDER == 1 SYS_DeleteSystem(SYS_GetSystem()); - +#endif if(MEM_get_memory_blocks_in_use()!=0) { printf("Error Totblock: %d\n", MEM_get_memory_blocks_in_use()); MEM_printmemlist(); |