synched with trunk at revision 36569
[blender-staging.git] / source / gameengine / Ketsji / SConscript
1 #!/usr/bin/python
2 import sys
3
4 Import ('env')
5
6 sources = env.Glob('*.cpp')
7 defs = [ 'GLEW_STATIC' ]
8
9 incs = '. #source/blender/python/generic' # Only for Mathutils! and bpy_internal_import.h, be very careful
10
11 incs += ' #intern/string #intern/guardedalloc #intern/container'
12 incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer'
13 incs += ' #intern/audaspace/intern #source/gameengine/Converter'
14 incs += ' #source/gameengine/BlenderRoutines #source/blender/imbuf #intern/moto/include'
15 incs += ' #source/gameengine/Ketsji #source/gameengine/Ketsji/KXNetwork #source/blender/blenlib #source/blender/blenfont'
16 incs += ' #source/blender/blenkernel #source/blender #source/blender/editors/include'
17 incs += ' #source/blender/makesdna #source/blender/python #source/gameengine/Rasterizer'
18 incs += ' #source/gameengine/GameLogic #source/gameengine/Expressions #source/gameengine/Network'
19 incs += ' #source/gameengine/SceneGraph #source/gameengine/Physics/common'
20 incs += ' #source/gameengine/Physics/Dummy'
21 incs += ' #source/blender/misc #source/blender/blenloader #extern/glew/include #source/blender/gpu'
22 incs += ' #extern/recastnavigation/Recast/Include #extern/recastnavigation/Detour/Include'
23 incs += ' #source/blender/editors/include'
24
25 incs += ' ' + env['BF_BULLET_INC']
26 incs += ' ' + env['BF_OPENGL_INC']
27
28 if  env['WITH_BF_SDL']:
29     incs += ' ' + env['BF_SDL_INC']
30 else:
31     defs.append('DISABLE_SDL')
32
33 if env['WITH_BF_PYTHON']:
34     incs += ' ' + env['BF_PYTHON_INC']
35     defs.append('WITH_PYTHON')
36
37 if env['WITH_BF_FFMPEG']:
38     defs.append('WITH_FFMPEG')
39     
40 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc', 'win32-mingw'):
41     if env['BF_DEBUG']:
42         defs.append('_DEBUG') # for Python
43
44 if env['WITH_BF_CXX_GUARDEDALLOC']:
45     defs.append('WITH_CXX_GUARDEDALLOC')
46
47 if env['WITH_BF_BULLET']:
48     defs.append('USE_BULLET')
49     incs += ' #source/gameengine/Physics/Bullet'
50
51 env.BlenderLib ( 'ge_logic_ketsji', sources, Split(incs), defs, libtype=['core','player'], priority=[320,45], cxx_compileflags=env['BGE_CXXFLAGS'])