merge with/from trunk at r35190
[blender.git] / source / gameengine / GameLogic / SConscript
index 189c39ee23765276c8d100729d378e9ae44a4755..d5fd90cd79d894a2fd649d17cc14bd0aff10553c 100644 (file)
@@ -5,21 +5,31 @@ sources = env.Glob('*.cpp') + env.Glob('Joystick/*.cpp')
 
 incs = '. #/source/kernel/gen_system #/intern/string'
 incs += ' #/source/gameengine/Expressions #/intern/moto/include'
-incs += ' #/source/gameengine/Rasterizer #/source/gameengine/Scenegraph'
+incs += ' #/source/gameengine/Rasterizer #/source/gameengine/SceneGraph'
 
-incs += ' ' + env['BF_PYTHON_INC']
-
-
-defs = ''
+defs = []
 
 if env['WITH_BF_SDL']:
-       incs += ' ' + env['BF_SDL_INC']
+    incs += ' ' + env['BF_SDL_INC']
 else:
-       defs += ' DISABLE_SDL'
+    defs.append('DISABLE_SDL')
+
+if env['WITH_BF_PYTHON']:
+<<<<<<< .working
+    incs += ' ' + env['BF_PYTHON_INC']
+else:
+    defs.append('DISABLE_PYTHON')
+=======
+    incs += ' ' + env['BF_PYTHON_INC']
+    defs.append('WITH_PYTHON')
+>>>>>>> .merge-right.r35190
+
+if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
+    if env['BF_DEBUG']:
+        defs.append('_DEBUG')
 
-cxxflags = []
-if env['OURPLATFORM']=='win32-vc':
-       cxxflags.append ('/GR')
-       cxxflags.append ('/O2')
+if env['WITH_BF_CXX_GUARDEDALLOC']:
+    defs.append('WITH_CXX_GUARDEDALLOC')
+    incs += ' #/intern/guardedalloc'
 
-env.BlenderLib ( 'bf_logic', sources, Split(incs), Split(defs), libtype=['game','player'], priority=[30, 110], cxx_compileflags=cxxflags )
+env.BlenderLib ( 'ge_logic', sources, Split(incs), defs, libtype=['core','player'], priority=[330,65], cxx_compileflags=env['BGE_CXXFLAGS'])