rename and negate DISABLE_PYTHON --> WITH_PYTHON
[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 defs = [ 'GLEW_STATIC' ]
44
45 if env['WITH_BF_PYTHON']:
46     incs += Split(env['BF_PYTHON_INC'])
47     defs.append('WITH_PYTHON')
48
49 if env['WITH_BF_FFMPEG']:
50     defs.append('WITH_FFMPEG')
51
52 env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = defs, libtype=['player'],priority=[0], cxx_compileflags=env['BGE_CXXFLAGS'])