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