BGE LibLoad: Allow the user to disable loading text datablocks if they want to attemp...
[blender.git] / source / gameengine / Converter / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('*.cpp')
5 defs = []
6
7 incs = '. #intern/string #intern/guardedalloc #intern/container'
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 incs += ' #extern/recastnavigation/Detour/Include'
24 incs += ' #extern/Eigen3'
25
26 incs += ' ' + env['BF_BULLET_INC']
27
28 if env['BF_DEBUG']:
29     if env['OURPLATFORM'] in ('win32-mingw', 'win32-vc', 'win64-vc', 'win64-mingw'):
30         defs.append('_DEBUG')
31         
32 if env['WITH_BF_PYTHON']:
33     incs += ' ' + env['BF_PYTHON_INC']
34     defs.append('WITH_PYTHON')
35
36 if env['WITH_BF_CXX_GUARDEDALLOC']:
37     defs.append('WITH_CXX_GUARDEDALLOC')
38
39 if env['WITH_BF_BULLET']:
40     defs.append('USE_BULLET')
41
42 if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
43     incs += ' ' + env['BF_PTHREADS_INC']
44
45 env.BlenderLib ( 'ge_converter', sources, Split(incs), defs, libtype=['core','player'], priority=[305,40], cxx_compileflags=env['BGE_CXXFLAGS'])