Merge from trunk 16122-16307
[blender.git] / source / gameengine / Ketsji / SConscript
1 #!/usr/bin/python
2 import sys
3
4 Import ('env')
5
6 sources = env.Glob('*.cpp')
7
8 # Mathutils C files.
9 sources.extend([\
10         '#source/blender/python/api2_2x/Mathutils.c',\
11         '#source/blender/python/api2_2x/constant.c',\
12         '#source/blender/python/api2_2x/euler.c',\
13         '#source/blender/python/api2_2x/gen_utils.c',\
14         '#source/blender/python/api2_2x/matrix.c',\
15         '#source/blender/python/api2_2x/point.c',\
16         '#source/blender/python/api2_2x/quat.c',\
17         '#source/blender/python/api2_2x/vector.c',\
18 ])
19
20 incs = '. #source/blender/python/api2_2x' # Only for Mathutils! - no other deps
21
22 incs += ' #source/kernel/gen_system #intern/string #intern/guardedalloc'
23 incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer #intern/bmfont'
24 incs += ' #intern/SoundSystem #intern/SoundSystem/include #intern/SoundSystem/openal'
25 incs += ' #intern/SoundSystem/dummy #intern/SoundSystem/intern #source/gameengine/Converter'
26 incs += ' #source/gameengine/BlenderRoutines #source/blender/imbuf #intern/moto/include'
27 incs += ' #source/gameengine/Ketsji #source/gameengine/Ketsji/KXNetwork #source/blender/blenlib'
28 incs += ' #source/blender/blenkernel #source/blender #source/blender/include'
29 incs += ' #source/blender/makesdna #source/blender/python #source/gameengine/Rasterizer'
30 incs += ' #source/gameengine/GameLogic #source/gameengine/Expressions #source/gameengine/Network'
31 incs += ' #source/gameengine/SceneGraph #source/gameengine/Physics/common #source/gameengine/Physics/Bullet'
32 incs += ' #source/gameengine/Physics/BlOde #source/gameengine/Physics/Dummy'
33 incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/include'
34 incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork'
35 incs += ' #source/blender/misc #source/blender/blenloader #extern/glew/include'
36
37 cflags = []
38 if env['OURPLATFORM'] == 'win32-vc':
39         cflags.append('/GR')
40         cflags.append('/Ox')
41
42 if env['WITH_BF_GLEXT'] == 1:
43         env['CPPFLAGS'].append('-DWITH_GLEXT')
44
45 incs += ' ' + env['BF_SOLID_INC']
46 incs += ' ' + env['BF_PYTHON_INC']
47 incs += ' ' + env['BF_SDL_INC']
48 incs += ' ' + env['BF_BULLET_INC']
49 incs += ' ' + env['BF_OPENGL_INC']
50
51 env.BlenderLib ( 'bf_ketsji', sources, Split(incs), [], libtype=['game','player'], priority=[25, 72], compileflags = cflags )