Building the game engine with Solid/Sumo is now optional for scons using WITH_BF_SOLID.
[blender-staging.git] / source / gameengine / GamePlayer / common / SConscript
1 #!/usr/bin/python
2 import sys
3 Import ('env')
4
5
6 source_files = ['bmfont.cpp',
7                 'GPC_Canvas.cpp',
8                 'GPC_Engine.cpp',
9                 'GPC_KeyboardDevice.cpp',
10                 'GPC_MouseDevice.cpp',
11                 'GPC_RawImage.cpp',
12                 'GPC_RawLoadDotBlendArray.cpp',
13                 'GPC_RawLogoArrays.cpp',
14                 'GPC_RenderTools.cpp',
15                 'GPC_System.cpp']
16
17 incs = ['.',
18         '#intern/string',
19         '#intern/ghost',
20         '#intern/guardedalloc',
21         '#intern/bmfont',
22         '#intern/moto/include',
23         '#intern/SoundSystem',
24         '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
25         '#source/kernel/gen_system',
26         '#source/kernel/gen_messaging',
27         '#source/gameengine/Converter',
28         '#source/blender/imbuf',
29         '#source/gameengine/Ketsji',
30         '#source/blender/blenlib',
31         '#source/blender/blenkernel',
32         '#source/blender',
33         '#source/blender/include',
34         '#source/blender/makesdna',
35         '#source/gameengine/BlenderRoutines',
36         '#source/gameengine/Rasterizer',
37         '#source/gameengine/GameLogic',
38         '#source/gameengine/Expressions',
39         '#source/gameengine/Network',
40         '#source/gameengine/SceneGraph',
41         '#source/gameengine/Physics/common',
42         '#source/gameengine/Network/LoopBackNetwork',
43         '#source/gameengine/GamePlayer/ghost',
44         '#source/blender/misc',
45         '#source/blender/blenloader',
46         '#source/blender/gpu',
47                 '#extern/glew/include']
48
49 #This is all plugin stuff!
50 #if sys.platform=='win32':
51 #   source_files += ['windows/GPW_Canvas.cpp',
52 #                    'windows/GPW_Engine.cpp',
53 #                    'windows/GPW_KeyboardDevice.cpp',
54 #                    'windows/GPW_System.cpp']
55 #   gp_common_env.Append ( CPPPATH = ['windows'])
56 #elif sys.platform=='linux2' or sys.platform=='linux-i386':
57 #   source_files += ['unix/GPU_Canvas.cpp',
58 #                    'unix/GPU_Engine.cpp',
59 #                    'unix/GPU_KeyboardDevice.cpp',
60 #                    'unix/GPU_System.cpp']
61 #   gp_common_env.Append ( CPPPATH = ['unix'])
62
63 if env['WITH_BF_SOLID']:
64         incs.append('#source/gameengine/Physics/Sumo')
65         incs.append('#source/gameengine/Physics/Sumo/Fuzzics/include')
66         incs += Split(env['BF_SOLID_INC'])
67
68 incs += Split(env['BF_PYTHON_INC'])
69 incs += Split(env['BF_PNG_INC'])
70 incs += Split(env['BF_ZLIB_INC'])
71
72 cxxflags = []
73 if env['OURPLATFORM']=='win32-vc':
74         cxxflags.append ('/GR')
75         cxxflags.append ('/O2')
76
77 env.BlenderLib (libname='gp_common', sources=source_files, includes=incs, defines = [], libtype='player', priority=5, cxx_compileflags=cxxflags)