merge with/from trunk at r35190
[blender.git] / source / gameengine / GameLogic / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('*.cpp') + env.Glob('Joystick/*.cpp')
5
6 incs = '. #/source/kernel/gen_system #/intern/string'
7 incs += ' #/source/gameengine/Expressions #/intern/moto/include'
8 incs += ' #/source/gameengine/Rasterizer #/source/gameengine/SceneGraph'
9
10 defs = []
11
12 if env['WITH_BF_SDL']:
13     incs += ' ' + env['BF_SDL_INC']
14 else:
15     defs.append('DISABLE_SDL')
16
17 if env['WITH_BF_PYTHON']:
18 <<<<<<< .working
19     incs += ' ' + env['BF_PYTHON_INC']
20 else:
21     defs.append('DISABLE_PYTHON')
22 =======
23     incs += ' ' + env['BF_PYTHON_INC']
24     defs.append('WITH_PYTHON')
25 >>>>>>> .merge-right.r35190
26
27 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
28     if env['BF_DEBUG']:
29         defs.append('_DEBUG')
30
31 if env['WITH_BF_CXX_GUARDEDALLOC']:
32     defs.append('WITH_CXX_GUARDEDALLOC')
33     incs += ' #/intern/guardedalloc'
34
35 env.BlenderLib ( 'ge_logic', sources, Split(incs), defs, libtype=['core','player'], priority=[330,65], cxx_compileflags=env['BGE_CXXFLAGS'])