Added preliminary support for GamePlayer building with SCons. GPG_ghost and GPC_commo...
[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 if sys.platform=='win32':
50         source_files += ['windows/GPW_Canvas.cpp',
51                                          'windows/GPW_Engine.cpp',
52                                          'windows/GPW_KeyboardDevice.cpp',
53                                          'windows/GPW_System.cpp']
54         gp_common_env.Append ( CPPPATH = ['windows'])
55 elif sys.platform=='linux2' or sys.platform=='linux-i386':
56         source_files += ['unix/GPU_Canvas.cpp',
57                                          'unix/GPU_Engine.cpp',
58                                          'unix/GPU_KeyboardDevice.cpp',
59                                          'unix/GPU_System.cpp']
60         gp_common_env.Append ( CPPPATH = ['unix'])
61
62 gp_common_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
63 gp_common_env.Append (CPPPATH = user_options_dict['SOLID_INCLUDE'])
64
65 if sys.platform=='win32':
66     gp_common_env.Append (CXXFLAGS = ['/GR'])
67
68 gp_common_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/GPC_common', source=source_files)