small merge needed for testing new animsys in 2.5 BGE, mixing own changes with merge...
[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 # XXX 2.5
10 # Mathutils C files.
11 """
12 if not env['BF_PYTHON_VERSION'].startswith('3'):
13         # TODO - py3 support
14         sources.extend([\
15                 '#source/blender/python/api2_2x/Mathutils.c',\
16                 '#source/blender/python/api2_2x/Geometry.c',\
17                 '#source/blender/python/api2_2x/euler.c',\
18                 '#source/blender/python/api2_2x/matrix.c',\
19                 '#source/blender/python/api2_2x/quat.c',\
20                 '#source/blender/python/api2_2x/vector.c',\
21                 '#source/blender/python/api2_2x/constant.c',\
22         ])
23         
24         sources.extend([\
25                 '#source/blender/python/api2_2x/BGL.c'
26         ])
27
28 sources.extend([\
29         '#source/blender/python/api2_2x/bpy_internal_import.c'
30 ])
31 """
32
33
34 incs = '. #source/blender/python/api2_2x' # Only for Mathutils! and bpy_internal_import.h, be very careful
35
36 incs += ' #source/kernel/gen_system #intern/string #intern/guardedalloc'
37 incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer'
38 incs += ' #intern/SoundSystem #intern/SoundSystem/include #intern/SoundSystem/openal'
39 incs += ' #intern/SoundSystem/dummy #intern/SoundSystem/intern #source/gameengine/Converter'
40 incs += ' #source/gameengine/BlenderRoutines #source/blender/imbuf #intern/moto/include'
41 incs += ' #source/gameengine/Ketsji #source/gameengine/Ketsji/KXNetwork #source/blender/blenlib'
42 incs += ' #source/blender/blenkernel #source/blender #source/blender/editors/include'
43 incs += ' #source/blender/makesdna #source/blender/python #source/gameengine/Rasterizer'
44 incs += ' #source/gameengine/GameLogic #source/gameengine/Expressions #source/gameengine/Network'
45 incs += ' #source/gameengine/SceneGraph #source/gameengine/Physics/common #source/gameengine/Physics/Bullet'
46 incs += ' #source/gameengine/Physics/BlOde #source/gameengine/Physics/Dummy'
47 incs += ' #source/blender/misc #source/blender/blenloader #extern/glew/include #source/blender/gpu'
48
49 if env['WITH_BF_SOLID']:
50         incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/include'
51         incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork'
52         incs += ' ' + env['BF_SOLID_INC']
53         defs += ' USE_SUMO_SOLID'
54
55
56 incs += ' ' + env['BF_PYTHON_INC']
57 incs += ' ' + env['BF_BULLET_INC']
58 incs += ' ' + env['BF_OPENGL_INC']
59
60 if  env['WITH_BF_SDL']:
61     incs += ' ' + env['BF_SDL_INC']
62 else:
63         defs += ' DISABLE_SDL'
64         
65 cxxflags = []
66 if env['OURPLATFORM']=='win32-vc':
67         cxxflags.append ('/GR')
68         cxxflags.append ('/O2')
69
70 env.BlenderLib ( 'bf_ketsji', sources, Split(incs), Split(defs), libtype=['core','player'], priority=[320, 60], cxx_compileflags = cxxflags )