added Geometry as a BGE module, removed its dependency on gen_utils.c
[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/Geometry.c',\
13         '#source/blender/python/api2_2x/constant.c',\
14         '#source/blender/python/api2_2x/euler.c',\
15         '#source/blender/python/api2_2x/matrix.c',\
16         '#source/blender/python/api2_2x/quat.c',\
17         '#source/blender/python/api2_2x/vector.c',\
18 ])
19
20 sources.extend([\
21         '#source/blender/python/api2_2x/bpy_internal_import.c'
22 ])
23
24
25 sources.extend([\
26         '#source/blender/python/api2_2x/BGL.c'
27 ])
28
29 incs = '. #source/blender/python/api2_2x' # Only for Mathutils! and bpy_internal_import.h, be very careful
30
31 incs += ' #source/kernel/gen_system #intern/string #intern/guardedalloc'
32 incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer #intern/bmfont'
33 incs += ' #intern/SoundSystem #intern/SoundSystem/include #intern/SoundSystem/openal'
34 incs += ' #intern/SoundSystem/dummy #intern/SoundSystem/intern #source/gameengine/Converter'
35 incs += ' #source/gameengine/BlenderRoutines #source/blender/imbuf #intern/moto/include'
36 incs += ' #source/gameengine/Ketsji #source/gameengine/Ketsji/KXNetwork #source/blender/blenlib'
37 incs += ' #source/blender/blenkernel #source/blender #source/blender/include'
38 incs += ' #source/blender/makesdna #source/blender/python #source/gameengine/Rasterizer'
39 incs += ' #source/gameengine/GameLogic #source/gameengine/Expressions #source/gameengine/Network'
40 incs += ' #source/gameengine/SceneGraph #source/gameengine/Physics/common #source/gameengine/Physics/Bullet'
41 incs += ' #source/gameengine/Physics/BlOde #source/gameengine/Physics/Dummy'
42 incs += ' #source/blender/misc #source/blender/blenloader #extern/glew/include #source/blender/gpu'
43
44 if env['WITH_BF_SOLID']:
45         incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/include'
46         incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork'
47         incs += ' ' + env['BF_SOLID_INC']
48         defs += ' USE_SUMO_SOLID'
49
50
51 incs += ' ' + env['BF_PYTHON_INC']
52 incs += ' ' + env['BF_BULLET_INC']
53 incs += ' ' + env['BF_OPENGL_INC']
54
55 if  env['WITH_BF_SDL']:
56     incs += ' ' + env['BF_SDL_INC']
57 else:
58         defs += ' DISABLE_SDL'
59         
60 cxxflags = []
61 if env['OURPLATFORM']=='win32-vc':
62         cxxflags.append ('/GR')
63         cxxflags.append ('/O2')
64
65 env.BlenderLib ( 'bf_ketsji', sources, Split(incs), Split(defs), libtype=['game','player'], priority=[25, 72], cxx_compileflags = cxxflags )