Added KX_VehicleWrapper.cpp
[blender.git] / source / gameengine / Ketsji / SConscript
1 #!/usr/bin/python
2 import sys
3
4 Import ('user_options_dict')
5 Import ('library_env')
6
7 ketsji_env = library_env.Copy ()
8
9 source_files = ['BL_Shader.cpp',
10                 'BL_Material.cpp',
11                 'BL_Texture.cpp',
12                 '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_SG_BoneParentNodeRelationship.cpp',
24                 'KX_SceneActuator.cpp',
25                 'KX_Scene.cpp',
26                 'KX_ScalingInterpolator.cpp',
27                 'KX_ScalarInterpolator.cpp',
28                 'KX_SCA_ReplaceMeshActuator.cpp',
29                 'KX_SCA_EndObjectActuator.cpp',
30                 'KX_SCA_AddObjectActuator.cpp',
31                 'KX_RaySensor.cpp',
32                 'KX_RayEventManager.cpp',
33                 'KX_RayCast.cpp',
34                 'KX_RadarSensor.cpp',
35                 'KX_PyMath.cpp',
36                 'KX_PythonInit.cpp',
37                 'KX_PyConstraintBinding.cpp',
38                 'KX_PositionInterpolator.cpp',
39                 'KX_PolygonMaterial.cpp',
40                 'KX_PhysicsObjectWrapper.cpp',
41                 'KX_OrientationInterpolator.cpp',
42                 'KX_ObjectActuator.cpp',
43                 'KX_ObColorIpoSGController.cpp',
44                 'KX_NearSensor.cpp',
45                 'KX_MouseFocusSensor.cpp',
46                 'KX_MotionState.cpp',
47                 'KX_MeshProxy.cpp',
48                 'KX_LightIpoSGController.cpp',
49                 'KX_Light.cpp',
50                 'KX_KetsjiEngine.cpp',
51                 'KX_IpoActuator.cpp',
52                 'KX_IPO_SGController.cpp',
53                 'KX_IPhysicsController.cpp',
54                 'KX_GameObject.cpp',
55                 'KX_GameActuator.cpp',
56                 'KX_EmptyObject.cpp',
57                 'KX_ConvertPhysicsObjects.cpp',
58                 'KX_ConstraintWrapper.cpp',
59                 'KX_ConstraintActuator.cpp',
60                 'KX_CDActuator.cpp',
61                 'KX_CameraIpoSGController.cpp',
62                 'KX_CameraActuator.cpp',
63                 'KX_Camera.cpp',
64                 'KX_BulletPhysicsController.cpp',
65                 'KX_BlenderMaterial.cpp',
66                 'KX_MaterialIpoController.cpp',
67                 'KX_VehicleWrapper.cpp',
68                 ]
69
70 if user_options_dict['USE_PHYSICS'] == 'solid':
71     source_files += ['KX_SumoPhysicsController.cpp']
72     ketsji_env.Append (CPPPATH = user_options_dict['SOLID_INCLUDE'])
73
74 if user_options_dict['USE_PHYSICS'] == 'ode':
75     source_files += ['KX_OdePhysicsController.cpp']
76     ketsji_env.Append (CPPPATH = user_options_dict['SOLID_INCLUDE'])
77
78
79 ketsji_env.Append (CPPPATH = ['.',
80                               '#source/kernel/gen_system',
81                               '#intern/string',
82                               '#intern/guardedalloc',
83                               '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
84                               '#intern/bmfont',
85                               '#intern/SoundSystem',
86                               '#intern/SoundSystem/include',
87                               '#intern/SoundSystem/openal',
88                               '#intern/SoundSystem/dummy',
89                               '#intern/SoundSystem/intern',
90                               '#source/gameengine/Converter',
91                               '#source/gameengine/BlenderRoutines',
92                               '#source/blender/imbuf',
93                               '#intern/moto/include',
94                               '#source/gameengine/Ketsji',
95                               '#source/gameengine/Ketsji/KXNetwork',
96                               '#source/blender/blenlib',
97                               '#source/blender/blenkernel',
98                               '#source/blender',
99                               '#source/blender/include',
100                               '#source/blender/makesdna',
101                               '#source/blender/python',
102                               '#source/gameengine/Rasterizer',
103                               '#source/gameengine/GameLogic',
104                               '#source/gameengine/Expressions',
105                               '#source/gameengine/Network',
106                               '#source/gameengine/SceneGraph',
107                               '#source/gameengine/Physics/common',
108                               '#source/gameengine/Physics/Bullet',
109                               '#source/gameengine/Physics/BlOde',
110                               '#source/gameengine/Physics/Dummy',
111                               '#source/gameengine/Physics/Sumo',
112                               '#source/gameengine/Physics/Sumo/include',
113                               '#source/gameengine/Physics/Sumo/Fuzzics/include',
114                               '#source/gameengine/Network/LoopBackNetwork',
115                               '#source/blender/misc',
116                               '#source/blender/blenloader'
117                              ])
118
119 if sys.platform == 'win32':
120         ketsji_env.Append (CXXFLAGS = ['/GR'])
121         ketsji_env.Append ( CCFLAGS =['/Ox'])
122 ketsji_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
123 ketsji_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
124 ketsji_env.Append (CPPPATH = user_options_dict['BULLET_INCLUDE'])
125
126 ketsji_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/KX_ketsji', source=source_files)