6427c7c155f75558a289975de55bec51cc03cefa
[blender-staging.git] / source / gameengine / BlenderRoutines / SConscript
1 #!/usr/bin/python
2 import sys
3 Import ('user_options_dict')
4 Import ('library_env')
5
6 kx_blenderhook_env = library_env.Copy ()
7
8 source_files = ['KX_BlenderSystem.cpp',
9                 'KX_BlenderRenderTools.cpp',
10                 'KX_BlenderMouseDevice.cpp',
11                 'KX_BlenderKeyboardDevice.cpp',
12                 'KX_BlenderInputDevice.cpp',
13                 'KX_BlenderGL.cpp',
14                 'KX_BlenderCanvas.cpp',
15                 'BL_KetsjiEmbedStart.cpp']
16
17 kx_blenderhook_env.Append (CPPPATH=['.',
18                                     '#source/kernel/gen_system',
19                                     '#intern/string',
20                                     '#intern/guardedalloc',
21                                     '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
22                                     '#intern/bmfont',
23                                     '#source/gameengine/Converter',
24                                     '#source/blender/imbuf',
25                                     '#intern/moto/include',
26                                     '#source/gameengine/Ketsji',
27                                     '#source/blender/blenlib',
28                                     '#source/blender/blenkernel',
29                                     '#source/blender',
30                                     '#source/blender/include',
31                                     '#source/blender/makesdna',
32                                     '#source/gameengine/Rasterizer',
33                                     '#source/gameengine/GameLogic',
34                                     '#source/gameengine/Expressions',
35                                     '#source/gameengine/Network',
36                                     '#source/gameengine/SceneGraph',
37                                     '#source/gameengine/Physics/common',
38                                     '#source/gameengine/Physics/Sumo',
39                                     '#source/gameengine/Physics/Sumo/Fuzzics/include',
40                                     '#source/gameengine/Network/LoopBackNetwork',
41                                     '#intern/SoundSystem',
42                                     '#source/blender/misc',
43                                     '#source/blender/blenloader'
44                                     ])
45
46 kx_blenderhook_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
47 kx_blenderhook_env.Append (CPPPATH = user_options_dict['SOLID_INCLUDE'])
48 kx_blenderhook_env.Append (CPPPATH = user_options_dict['OPENGL_INCLUDE'])
49
50 if sys.platform=='win32':
51     kx_blenderhook_env.Append (CXXFLAGS = ['/GR'])
52
53 kx_blenderhook_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/KX_blenderhook', source=source_files)