rename and negate DISABLE_PYTHON --> WITH_PYTHON
[blender.git] / source / gameengine / Converter / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('*.cpp')
5 defs = []
6
7 incs = '. #source/kernel/gen_system #intern/string #intern/guardedalloc'
8 incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer'
9 incs += ' #intern/audaspace/intern #source/gameengine/Converter'
10 incs += ' #source/gameengine/BlenderRoutines #source/blender/imbuf'
11 incs += ' #intern/moto/include #source/gameengine/Ketsji #source/gameengine/Ketsji/KXNetwork'
12 incs += ' #source/blender/blenlib #source/blender/blenkernel #source/blender'
13 incs += ' #source/blender/editors/include #source/blender/makesdna #source/gameengine/Rasterizer'
14 incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer #source/gameengine/GameLogic'
15 incs += ' #source/gameengine/Expressions #source/gameengine/Network #source/gameengine/SceneGraph'
16 incs += ' #source/gameengine/Physics/common #source/gameengine/Physics/Bullet'
17 incs += ' #source/gameengine/Physics/Dummy'
18 incs += ' #source/gameengine/Network/LoopBackNetwork'
19 incs += ' #source/blender/misc #source/blender/blenloader #source/blender/gpu'
20 incs += ' #source/blender/windowmanager'
21 incs += ' #source/blender/makesrna'
22 incs += ' #source/blender/ikplugin'
23
24 incs += ' ' + env['BF_BULLET_INC']
25
26 if env['BF_DEBUG']:
27     if env['OURPLATFORM'] in ('win32-mingw', 'win32-vc', 'win64-vc'):
28         defs.append('_DEBUG')
29         
30 if env['WITH_BF_PYTHON']:
31     incs += ' ' + env['BF_PYTHON_INC']
32     defs.append('WITH_PYTHON')
33
34 if env['WITH_BF_CXX_GUARDEDALLOC']:
35     defs.append('WITH_CXX_GUARDEDALLOC')
36
37 if env['WITH_BF_BULLET']:
38     defs.append('USE_BULLET')
39
40 env.BlenderLib ( 'bf_converter', sources, Split(incs), defs, libtype=['core','player'], priority=[305,40], cxx_compileflags=env['BGE_CXXFLAGS'])