Reversing the last merge because I botched it.
[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 += ' #source/kernel/gen_system #intern/string #intern/guardedalloc'
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'
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 #source/gameengine/Physics/Bullet'
20 incs += ' #source/gameengine/Physics/Dummy'
21 incs += ' #source/blender/misc #source/blender/blenloader #extern/glew/include #source/blender/gpu'
22
23 incs += ' ' + env['BF_BULLET_INC']
24 incs += ' ' + env['BF_OPENGL_INC']
25
26 if env['WITH_BF_DDS']:
27         defs.append('WITH_DDS')
28
29 if  env['WITH_BF_SDL']:
30     incs += ' ' + env['BF_SDL_INC']
31 else:
32         defs.append('DISABLE_SDL')
33
34 if env['WITH_BF_PYTHON']:
35         incs += ' ' + env['BF_PYTHON_INC']
36 else:
37         defs.append('DISABLE_PYTHON')
38
39 if env['WITH_BF_FFMPEG']:
40         defs.append('WITH_FFMPEG')
41         
42 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc', 'win32-mingw'):
43         if env['BF_DEBUG']:
44                 defs.append('_DEBUG') # for Python
45
46 env.BlenderLib ( 'bf_ketsji', sources, Split(incs), defs, libtype=['core','player'], priority=[320,45], cxx_compileflags=env['BGE_CXXFLAGS'])