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