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>2010-10-31 03:56:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-10-31 03:56:46 +0300
commit7f5abb7fe2681d8f72d1d29c6567077b70351112 (patch)
treed3ca63fdbd363635831e171c9313fb794b391547 /source/blender/windowmanager
parentb349f7c99d770673cfd27b3ce7de311db33d6b3f (diff)
dont build blender/kernel if the game engines disabled.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/CMakeLists.txt4
-rw-r--r--source/blender/windowmanager/intern/wm_init_exit.c6
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();