SCons updates
[blender.git] / source / gameengine / Ketsji / SConscript
1 ketsji_env = Environment()
2
3 # Import the C flags set in the SConstruct file
4 Import ('cflags')
5 Import ('cxxflags')
6 Import ('defines')
7 Import ('python_include')
8 Import ('solid_include')
9 Import ('user_options_dict')
10 ketsji_env.Append (CCFLAGS = cflags)
11 ketsji_env.Append (CXXFLAGS = cxxflags)
12 ketsji_env.Append (CPPDEFINES = defines)
13
14 source_files = ['KX_WorldIpoController.cpp',
15                 'KX_WorldInfo.cpp',
16                 'KX_VisibilityActuator.cpp',
17                 'KX_VertexProxy.cpp',
18                 'KX_TrackToActuator.cpp',
19                 'KX_TouchSensor.cpp',
20                 'KX_TouchEventManager.cpp',
21                 'KX_TimeLogger.cpp',
22                 'KX_TimeCategoryLogger.cpp',
23                 'KX_SoundActuator.cpp',
24                 'KX_SG_NodeRelationships.cpp',
25                 'KX_SceneActuator.cpp',
26                 'KX_Scene.cpp',
27                 'KX_ScalingInterpolator.cpp',
28                 'KX_ScalarInterpolator.cpp',
29                 'KX_SCA_ReplaceMeshActuator.cpp',
30                 'KX_SCA_EndObjectActuator.cpp',
31                 'KX_SCA_AddObjectActuator.cpp',
32                 'KX_RaySensor.cpp',
33                 'KX_RayEventManager.cpp',
34                 'KX_RadarSensor.cpp',
35                 'KX_PythonInit.cpp',
36                 'KX_PyConstraintBinding.cpp',
37                 'KX_PositionInterpolator.cpp',
38                 'KX_PhysicsObjectWrapper.cpp',
39                 'KX_OrientationInterpolator.cpp',
40                 'KX_ObjectActuator.cpp',
41                 'KX_ObColorIpoSGController.cpp',
42                 'KX_NearSensor.cpp',
43                 'KX_MouseFocusSensor.cpp',
44                 'KX_MotionState.cpp',
45                 'KX_MeshProxy.cpp',
46                 'KX_LightIpoSGController.cpp',
47                 'KX_Light.cpp',
48                 'KX_KetsjiEngine.cpp',
49                 'KX_IpoActuator.cpp',
50                 'KX_IPO_SGController.cpp',
51                 'KX_IPhysicsController.cpp',
52                 'KX_GameObject.cpp',
53                 'KX_GameActuator.cpp',
54                 'KX_EmptyObject.cpp',
55                 'KX_ConvertPhysicsObjects.cpp',
56                 'KX_ConstraintWrapper.cpp',
57                 'KX_ConstraintActuator.cpp',
58                 'KX_CDActuator.cpp',
59                 'KX_CameraIpoSGController.cpp',
60                 'KX_CameraActuator.cpp',
61                 'KX_Camera.cpp'
62                 ]
63
64 if user_options_dict['USE_PHYSICS'] == 'solid':
65     source_files += ['KX_SumoPhysicsController.cpp']
66     ketsji_env.Append (CPPPATH = [solid_include])
67
68 if user_options_dict['USE_PHYSICS'] == 'ode':
69     source_files += ['KX_OdePhysicsController.cpp']
70
71 ketsji_env.Append (CPPPATH = ['.',
72                               '#source/kernel/gen_system',
73                               '#intern/string',
74                               '#intern/guardedalloc',
75                               '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
76                               '#intern/bmfont',
77                               '#intern/SoundSystem',
78                               '#intern/SoundSystem/include',
79                               '#intern/SoundSystem/openal',
80                               '#intern/SoundSystem/dummy',
81                               '#intern/SoundSystem/intern',
82                               '#source/gameengine/Converter',
83                               '#source/gameengine/BlenderRoutines',
84                               '#source/blender/imbuf',
85                               '#intern/moto/include',
86                               '#source/gameengine/Ketsji',
87                               '#source/gameengine/Ketsji/KXNetwork',
88                               '#source/blender/blenlib',
89                               '#source/blender/blenkernel',
90                               '#source/blender',
91                               '#source/blender/include',
92                               '#source/blender/makesdna',
93                               '#source/gameengine/Rasterizer',
94                               '#source/gameengine/GameLogic',
95                               '#source/gameengine/Expressions',
96                               '#source/gameengine/Network',
97                               '#source/gameengine/SceneGraph',
98                               '#source/gameengine/Physics/common',
99                               '#source/gameengine/Physics/BlOde',
100                               '#source/gameengine/Physics/Dummy',
101                               '#source/gameengine/Physics/Sumo/',
102                               '#source/gameengine/Physics/Sumo/include',
103                               '#source/gameengine/Physics/Sumo/Fuzzics/include',
104                               '#source/gameengine/Network/LoopBackNetwork',
105                               '#source/blender/misc',
106                               '#source/blender/blenloader',
107                               python_include
108                              ])
109
110 ketsji_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/KX_ketsji', source=source_files)