62bdbc2954429243685fea9a23af0a3607a2bf40
[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 = '. #/intern/string #intern/container'
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     defs.append('WITH_SDL')
14     incs += ' ' + env['BF_SDL_INC']
15
16 if env['WITH_BF_PYTHON']:
17     incs += ' ' + env['BF_PYTHON_INC']
18     defs.append('WITH_PYTHON')
19
20 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
21     if env['BF_DEBUG']:
22         defs.append('_DEBUG')
23
24 if env['WITH_BF_CXX_GUARDEDALLOC']:
25     defs.append('WITH_CXX_GUARDEDALLOC')
26     incs += ' #/intern/guardedalloc'
27
28 env.BlenderLib ( 'ge_logic', sources, Split(incs), defs, libtype=['core','player'], priority=[330,65], cxx_compileflags=env['BGE_CXXFLAGS'])