Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[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/moto/include',
16         '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
17         '#source/kernel/gen_system',
18         '#source/kernel/gen_messaging',
19         '#source/gameengine/Converter',
20         '#source/blender/imbuf',
21         '#source/gameengine/Ketsji',
22         '#source/blender/blenlib',
23         '#source/blender/blenkernel',
24         '#source/blender/readblenfile',
25         '#source/blender',
26         '#source/blender/include',
27         '#source/blender/makesdna',
28         '#source/blender/makesrna',
29         '#source/gameengine/BlenderRoutines',
30         '#source/gameengine/Rasterizer',
31         '#source/gameengine/GameLogic',
32         '#source/gameengine/Expressions',
33         '#source/gameengine/Network',
34         '#source/gameengine/SceneGraph',
35         '#source/gameengine/Physics/common',
36         '#source/gameengine/Network/LoopBackNetwork',
37         '#source/gameengine/GamePlayer/common',
38         '#source/blender/misc',
39         '#source/blender/blenloader',
40         '#source/blender/gpu',
41         '#extern/glew/include']
42
43 incs += Split(env['BF_PYTHON_INC'])
44
45 cxxflags = []
46 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
47         cxxflags.append ('/GR')
48         cxxflags.append ('/O2')
49         cxxflags.append ('/EHsc')
50
51 defs = ''
52 if env['WITH_BF_FFMPEG']:
53     defs += ' WITH_FFMPEG'
54
55 env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = Split(defs), libtype='player',priority=5, cxx_compileflags=cxxflags)