merge with trunk at r27259 and commit of a patch by anthony jones to fix msvc (though...
[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 incs += ' #/source/gameengine/Ketsji'
10
11 defs = []
12
13 if env['WITH_BF_SDL']:
14         incs += ' ' + env['BF_SDL_INC']
15 else:
16         defs.append('DISABLE_SDL')
17
18 if env['WITH_BF_PYTHON']:
19         incs += ' ' + env['BF_PYTHON_INC']
20 else:
21         defs.append('DISABLE_PYTHON')
22
23 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
24         if env['BF_DEBUG']:
25                 defs.append('_DEBUG')
26
27 env.BlenderLib ( 'bf_logic', sources, Split(incs), defs, libtype=['core','player'], priority=[330,65], cxx_compileflags=env['BGE_CXXFLAGS'])