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