4 Import ('user_options_dict')
7 ketsji_env = library_env.Copy ()
9 source_files = ['KX_WorldIpoController.cpp',
11 'KX_VisibilityActuator.cpp',
13 'KX_TrackToActuator.cpp',
15 'KX_TouchEventManager.cpp',
17 'KX_TimeCategoryLogger.cpp',
18 'KX_SoundActuator.cpp',
19 'KX_SG_NodeRelationships.cpp',
20 'KX_SceneActuator.cpp',
22 'KX_ScalingInterpolator.cpp',
23 'KX_ScalarInterpolator.cpp',
24 'KX_SCA_ReplaceMeshActuator.cpp',
25 'KX_SCA_EndObjectActuator.cpp',
26 'KX_SCA_AddObjectActuator.cpp',
28 'KX_RayEventManager.cpp',
32 'KX_PyConstraintBinding.cpp',
33 'KX_PositionInterpolator.cpp',
34 'KX_PolygonMaterial.cpp',
35 'KX_PhysicsObjectWrapper.cpp',
36 'KX_OrientationInterpolator.cpp',
37 'KX_ObjectActuator.cpp',
38 'KX_ObColorIpoSGController.cpp',
40 'KX_MouseFocusSensor.cpp',
43 'KX_LightIpoSGController.cpp',
45 'KX_KetsjiEngine.cpp',
47 'KX_IPO_SGController.cpp',
48 'KX_IPhysicsController.cpp',
50 'KX_GameActuator.cpp',
52 'KX_ConvertPhysicsObjects.cpp',
53 'KX_ConstraintWrapper.cpp',
54 'KX_ConstraintActuator.cpp',
56 'KX_CameraIpoSGController.cpp',
57 'KX_CameraActuator.cpp',
61 if user_options_dict['USE_PHYSICS'] == 'solid':
62 source_files += ['KX_SumoPhysicsController.cpp']
63 ketsji_env.Append (CPPPATH = user_options_dict['SOLID_INCLUDE'])
65 if user_options_dict['USE_PHYSICS'] == 'ode':
66 source_files += ['KX_OdePhysicsController.cpp']
67 ketsji_env.Append (CPPPATH = user_options_dict['SOLID_INCLUDE'])
69 ketsji_env.Append (CPPPATH = ['.',
70 '#source/kernel/gen_system',
72 '#intern/guardedalloc',
73 '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
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',
89 '#source/blender/include',
90 '#source/blender/makesdna',
91 '#source/blender/python',
92 '#source/gameengine/Rasterizer',
93 '#source/gameengine/GameLogic',
94 '#source/gameengine/Expressions',
95 '#source/gameengine/Network',
96 '#source/gameengine/SceneGraph',
97 '#source/gameengine/Physics/common',
98 '#source/gameengine/Physics/BlOde',
99 '#source/gameengine/Physics/Dummy',
100 '#source/gameengine/Physics/Sumo',
101 '#source/gameengine/Physics/Sumo/include',
102 '#source/gameengine/Physics/Sumo/Fuzzics/include',
103 '#source/gameengine/Network/LoopBackNetwork',
104 '#source/blender/misc',
105 '#source/blender/blenloader'
108 if sys.platform == 'win32':
109 ketsji_env.Append (CXXFLAGS = ['/GR'])
110 ketsji_env.Append ( CCFLAGS =['/Ox'])
111 ketsji_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
112 ketsji_env.Append (CPPPATH = user_options_dict['SDL_INCLUDE'])
114 ketsji_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/KX_ketsji', source=source_files)