SCons:
[blender.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/Physics/Sumo',
38         '#source/gameengine/Physics/Sumo/Fuzzics/include',
39         '#source/gameengine/Network/LoopBackNetwork',
40         '#source/gameengine/GamePlayer/common',
41         '#source/blender/misc',
42         '#source/blender/blenloader',
43         '#source/blender/gpu',
44         '#extern/glew/include']
45
46 incs += Split(env['BF_PYTHON_INC'])
47 incs += Split(env['BF_SOLID_INC'])
48
49 cxxflags = []
50 if env['OURPLATFORM']=='win32-vc':
51         cxxflags.append ('/GR')
52         cxxflags.append ('/O2')
53
54 defs = ''
55 if env['WITH_BF_FFMPEG']:
56     defs += ' WITH_FFMPEG'
57
58 env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = Split(defs), libtype='player',priority=0, cxx_compileflags=cxxflags)