Fix SConscript for GamePlayer.
[blender-staging.git] / source / gameengine / GamePlayer / common / SConscript
1 import sys
2 Import ('user_options_dict')
3 Import ('library_env')
4
5 gp_common_env = library_env.Copy()
6
7 source_files = ['bmfont.cpp',
8                                 'GPC_Canvas.cpp',
9                                 'GPC_Engine.cpp',
10                                 'GPC_KeyboardDevice.cpp',
11                                 'GPC_MouseDevice.cpp',
12                                 'GPC_PolygonMaterial.cpp',
13                                 'GPC_RawImage.cpp',
14                                 'GPC_RawLoadDotBlendArray.cpp',
15                                 'GPC_RawLogoArrays.cpp',
16                                 'GPC_RenderTools.cpp',
17                                 'GPC_System.cpp']
18
19 gp_common_env.Append( CPPPATH = ['.',
20                                                                 '#intern/string',
21                                                                 '#intern/ghost',
22                                                                 '#intern/guardedalloc',
23                                                                 '#intern/bmfont',
24                                                                 '#intern/moto/include',
25                                                                 '#intern/SoundSystem',
26                                                                 '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
27                                                                 '#source/kernel/gen_system',
28                                                                 '#source/kernel/gen_messaging',
29                                                                 '#source/gameengine/Converter',
30                                                                 '#source/blender/imbuf',
31                                                                 '#source/gameengine/Ketsji',
32                                                                 '#source/blender/blenlib',
33                                                                 '#source/blender/blenkernel',
34                                                                 '#source/blender',
35                                                                 '#source/blender/include',
36                                                                 '#source/blender/makesdna',
37                                                                 '#source/gameengine/Rasterizer',
38                                                                 '#source/gameengine/GameLogic',
39                                                                 '#source/gameengine/Expressions',
40                                                                 '#source/gameengine/Network',
41                                                                 '#source/gameengine/SceneGraph',
42                                                                 '#source/gameengine/Physics/common',
43                                                                 '#source/gameengine/Physics/Sumo',
44                                                                 '#source/gameengine/Physics/Sumo/Fuzzics/include',
45                                                                 '#source/gameengine/Network/LoopBackNetwork',
46                                                                 '#source/gameengine/GamePlayer/ghost',
47                                                                 '#source/blender/misc',
48                                                                 '#source/blender/blenloader'])
49                                                                 
50 #This is all plugin stuff!
51 #if sys.platform=='win32':
52 #       source_files += ['windows/GPW_Canvas.cpp',
53 #                                        'windows/GPW_Engine.cpp',
54 #                                        'windows/GPW_KeyboardDevice.cpp',
55 #                                        'windows/GPW_System.cpp']
56 #       gp_common_env.Append ( CPPPATH = ['windows'])
57 #elif sys.platform=='linux2' or sys.platform=='linux-i386':
58 #       source_files += ['unix/GPU_Canvas.cpp',
59 #                                        'unix/GPU_Engine.cpp',
60 #                                        'unix/GPU_KeyboardDevice.cpp',
61 #                                        'unix/GPU_System.cpp']
62 #       gp_common_env.Append ( CPPPATH = ['unix'])
63
64 gp_common_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
65 gp_common_env.Append (CPPPATH = user_options_dict['SOLID_INCLUDE'])
66
67 if sys.platform=='win32':
68     gp_common_env.Append (CXXFLAGS = ['/GR'])
69
70 gp_common_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/GPC_common', source=source_files)