Hopefully a working merge with trunk (could be one error left in raytrace.c - will...
[blender.git] / source / gameengine / Ketsji / SConscript
1 #!/usr/bin/python
2 import sys
3
4 Import ('env')
5
6 sources = env.Glob('*.cpp')
7 defs = ''
8
9 # Mathutils C files.
10 sources.extend([\
11         '#source/blender/python/api2_2x/Mathutils.c',\
12         '#source/blender/python/api2_2x/constant.c',\
13         '#source/blender/python/api2_2x/euler.c',\
14         '#source/blender/python/api2_2x/gen_utils.c',\
15         '#source/blender/python/api2_2x/matrix.c',\
16         '#source/blender/python/api2_2x/point.c',\
17         '#source/blender/python/api2_2x/quat.c',\
18         '#source/blender/python/api2_2x/vector.c',\
19 ])
20
21 sources.extend([\
22         '#source/blender/python/api2_2x/bpy_internal_import.c'
23 ])
24
25
26 sources.extend([\
27         '#source/blender/python/api2_2x/BGL.c'
28 ])
29
30 incs = '. #source/blender/python/api2_2x' # Only for Mathutils! and bpy_internal_import.h, be very careful
31
32 incs += ' #source/kernel/gen_system #intern/string #intern/guardedalloc'
33 incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer #intern/bmfont'
34 incs += ' #intern/SoundSystem #intern/SoundSystem/include #intern/SoundSystem/openal'
35 incs += ' #intern/SoundSystem/dummy #intern/SoundSystem/intern #source/gameengine/Converter'
36 incs += ' #source/gameengine/BlenderRoutines #source/blender/imbuf #intern/moto/include'
37 incs += ' #source/gameengine/Ketsji #source/gameengine/Ketsji/KXNetwork #source/blender/blenlib'
38 incs += ' #source/blender/blenkernel #source/blender #source/blender/include'
39 incs += ' #source/blender/makesdna #source/blender/python #source/gameengine/Rasterizer'
40 incs += ' #source/gameengine/GameLogic #source/gameengine/Expressions #source/gameengine/Network'
41 incs += ' #source/gameengine/SceneGraph #source/gameengine/Physics/common #source/gameengine/Physics/Bullet'
42 incs += ' #source/gameengine/Physics/BlOde #source/gameengine/Physics/Dummy'
43 incs += ' #source/blender/misc #source/blender/blenloader #extern/glew/include #source/blender/gpu'
44
45 if env['WITH_BF_SOLID']:
46         incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/include'
47         incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork'
48         incs += ' ' + env['BF_SOLID_INC']
49         defs += ' USE_SUMO_SOLID'
50
51
52 incs += ' ' + env['BF_PYTHON_INC']
53 incs += ' ' + env['BF_BULLET_INC']
54 incs += ' ' + env['BF_OPENGL_INC']
55
56 if  env['WITH_BF_SDL']:
57     incs += ' ' + env['BF_SDL_INC']
58 else:
59         defs += ' DISABLE_SDL'
60         
61 cxxflags = []
62 if env['OURPLATFORM']=='win32-vc':
63         cxxflags.append ('/GR')
64         cxxflags.append ('/O2')
65
66 env.BlenderLib ( 'bf_ketsji', sources, Split(incs), Split(defs), libtype=['game','player'], priority=[25, 72], cxx_compileflags = cxxflags )