buildsystem cleanup: remove duplicate source & includes for 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/moto/include',
16         '#intern/container',
17         '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
18         '#source/gameengine/BlenderRoutines',
19         '#source/gameengine/Converter',
20         '#source/blender/imbuf',
21         '#source/gameengine/Ketsji',
22         '#source/blender/blenfont',
23         '#source/blender/blenlib',
24         '#source/blender/blenkernel',
25         '#source/blender',
26         '#source/blender/include',
27         '#source/blender/makesdna',
28         '#source/blender/makesrna',
29         '#source/gameengine/Rasterizer',
30         '#source/gameengine/GameLogic',
31         '#source/gameengine/Expressions',
32         '#source/gameengine/Network',
33         '#source/gameengine/SceneGraph',
34         '#source/gameengine/Physics/common',
35         '#source/gameengine/Network/LoopBackNetwork',
36         '#source/gameengine/GamePlayer/common',
37         '#source/blender/misc',
38         '#source/blender/blenloader',
39         '#source/blender/gpu',
40         '#extern/glew/include']
41
42 incs.append(env['BF_PTHREADS_INC'])
43
44 defs = [ 'GLEW_STATIC' ]
45
46 if env['WITH_BF_PYTHON']:
47     incs += Split(env['BF_PYTHON_INC'])
48     defs.append('WITH_PYTHON')
49
50 if env['WITH_BF_FFMPEG']:
51     defs.append('WITH_FFMPEG')
52
53 if env['WITH_BF_INTERNATIONAL']:
54     defs.append('WITH_INTERNATIONAL')
55
56 env.BlenderLib (libname='ge_player_ghost', sources=source_files, includes = incs, defines = defs, libtype=['player'],priority=[0], cxx_compileflags=env['BGE_CXXFLAGS'])