From 4d0a6fee4af4be5877d2a69321913ad39039b76b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 20 Jul 2009 10:24:53 +0000 Subject: cmake option to disable SDL, bpy_interface.c - change order of checking scripts to avoid calling stat on .py files. --- source/gameengine/GameLogic/CMakeLists.txt | 7 ++++++- source/gameengine/Ketsji/CMakeLists.txt | 21 ++++++--------------- 2 files changed, 12 insertions(+), 16 deletions(-) (limited to 'source/gameengine') diff --git a/source/gameengine/GameLogic/CMakeLists.txt b/source/gameengine/GameLogic/CMakeLists.txt index 7e2bc85bd1f..530664dce55 100644 --- a/source/gameengine/GameLogic/CMakeLists.txt +++ b/source/gameengine/GameLogic/CMakeLists.txt @@ -35,8 +35,13 @@ SET(INC ../../../intern/moto/include ../../../source/gameengine/Rasterizer ${PYTHON_INC} - ${SDL_INC} ) +IF(WITH_SDL) + SET(INC ${INC} ${SDL_INC}) +ELSE(WITH_SDL) + ADD_DEFINITIONS(-DDISABLE_SDL) +ENDIF(WITH_SDL) + BLENDERLIB(bf_logic "${SRC}" "${INC}") #env.BlenderLib ( 'bf_logic', sources, Split(incs), [], libtype=['game','player'], priority=[30, 110] ) diff --git a/source/gameengine/Ketsji/CMakeLists.txt b/source/gameengine/Ketsji/CMakeLists.txt index ee1ff2c6502..f703841c40b 100644 --- a/source/gameengine/Ketsji/CMakeLists.txt +++ b/source/gameengine/Ketsji/CMakeLists.txt @@ -26,20 +26,6 @@ FILE(GLOB SRC *.cpp) -#XXX disabled for 2.5 because of missing python -#SET(SRC -# ${SRC} -# ../../../source/blender/python/api2_2x/Mathutils.c -# ../../../source/blender/python/api2_2x/Geometry.c -# ../../../source/blender/python/api2_2x/constant.c -# ../../../source/blender/python/api2_2x/euler.c -# ../../../source/blender/python/api2_2x/matrix.c -# ../../../source/blender/python/api2_2x/quat.c -# ../../../source/blender/python/api2_2x/vector.c -# ../../../source/blender/python/api2_2x/bpy_internal_import.c -# ../../../source/blender/python/api2_2x/BGL.c -#) - SET(INC . ../../../source/kernel/gen_system @@ -77,8 +63,13 @@ SET(INC ../../../extern/solid ../../../extern/glew/include ${PYTHON_INC} - ${SDL_INC} ) +IF(WITH_SDL) + SET(INC ${INC} ${SDL_INC}) +ELSE(WITH_SDL) + ADD_DEFINITIONS(-DDISABLE_SDL) +ENDIF(WITH_SDL) + BLENDERLIB(bf_ketsji "${SRC}" "${INC}") #env.BlenderLib ( 'bf_ketsji', sources, Split(incs), [], libtype=['game','player'], priority=[25, 72], compileflags = cflags ) -- cgit v1.2.3