Building the game engine with Solid/Sumo is now optional for scons using WITH_BF_SOLID.
[blender-staging.git] / source / gameengine / GamePlayer / ghost / SConscript
1 #!/usr/bin/python
2 import sys
3 Import ('env')
4
5 source_files = ['GPG_Application.cpp',
6                 'GPG_Canvas.cpp',
7                 'GPG_ghost.cpp',
8                 'GPG_KeyboardDevice.cpp',
9                 'GPG_System.cpp']
10
11 incs = ['.',
12         '#intern/string',
13         '#intern/ghost',
14         '#intern/guardedalloc',
15         '#intern/bmfont',
16         '#intern/moto/include',
17         '#intern/SoundSystem',
18         '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
19         '#source/kernel/gen_system',
20         '#source/kernel/gen_messaging',
21         '#source/gameengine/Converter',
22         '#source/blender/imbuf',
23         '#source/gameengine/Ketsji',
24         '#source/blender/blenlib',
25         '#source/blender/blenkernel',
26         '#source/blender/readblenfile',
27         '#source/blender',
28         '#source/blender/include',
29         '#source/blender/makesdna',
30         '#source/gameengine/BlenderRoutines',
31         '#source/gameengine/Rasterizer',
32         '#source/gameengine/GameLogic',
33         '#source/gameengine/Expressions',
34         '#source/gameengine/Network',
35         '#source/gameengine/SceneGraph',
36         '#source/gameengine/Physics/common',
37         '#source/gameengine/Network/LoopBackNetwork',
38         '#source/gameengine/GamePlayer/common',
39         '#source/blender/misc',
40         '#source/blender/blenloader',
41         '#source/blender/gpu',
42         '#extern/glew/include']
43
44 if env['WITH_BF_SOLID']:
45         incs.append(['#source/gameengine/Physics/Sumo', '#source/gameengine/Physics/Sumo/Fuzzics/include'])
46         incs += Split(env['BF_SOLID_INC'])
47
48 incs += Split(env['BF_PYTHON_INC'])
49
50 cxxflags = []
51 if env['OURPLATFORM']=='win32-vc':
52         cxxflags.append ('/GR')
53         cxxflags.append ('/O2')
54
55 defs = ''
56 if env['WITH_BF_FFMPEG']:
57     defs += ' WITH_FFMPEG'
58
59 env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = Split(defs), libtype='player',priority=0, cxx_compileflags=cxxflags)