bpplayer compiling fixes: ([#19890] Getting the Blenderplayer to build again by Mitch...
[blender.git] / source / gameengine / GamePlayer / common / SConscript
1 #!/usr/bin/python
2 import sys
3 Import ('env')
4
5
6 source_files = ['bmfont.cpp',
7                 'GPC_Canvas.cpp',
8                 'GPC_Engine.cpp',
9                 'GPC_KeyboardDevice.cpp',
10                 'GPC_MouseDevice.cpp',
11                 'GPC_RawImage.cpp',
12                 'GPC_RawLoadDotBlendArray.cpp',
13                 'GPC_RawLogoArrays.cpp',
14                 'GPC_RenderTools.cpp',
15                 'GPC_System.cpp']
16
17 incs = ['.',
18         '#intern/string',
19         '#intern/ghost',
20         '#intern/guardedalloc',
21         '#intern/moto/include',
22         '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
23         '#source/kernel/gen_system',
24         '#source/kernel/gen_messaging',
25         '#source/gameengine/Converter',
26         '#source/blender/imbuf',
27         '#source/gameengine/Ketsji',
28         '#source/blender/blenlib',
29         '#source/blender/blenkernel',
30         '#source/blender',
31         '#source/blender/include',
32         '#source/blender/makesdna',
33         '#source/gameengine/BlenderRoutines',
34         '#source/gameengine/Rasterizer',
35         '#source/gameengine/GameLogic',
36         '#source/gameengine/Expressions',
37         '#source/gameengine/Network',
38         '#source/gameengine/SceneGraph',
39         '#source/gameengine/Physics/common',
40         '#source/gameengine/Network/LoopBackNetwork',
41         '#source/gameengine/GamePlayer/ghost',
42         '#source/blender/misc',
43         '#source/blender/blenloader',
44         '#source/blender/gpu',
45                 '#extern/glew/include']
46
47 #This is all plugin stuff!
48 #if sys.platform=='win32':
49 #   source_files += ['windows/GPW_Canvas.cpp',
50 #                    'windows/GPW_Engine.cpp',
51 #                    'windows/GPW_KeyboardDevice.cpp',
52 #                    'windows/GPW_System.cpp']
53 #   gp_common_env.Append ( CPPPATH = ['windows'])
54 #elif sys.platform=='linux2' or sys.platform=='linux-i386':
55 #   source_files += ['unix/GPU_Canvas.cpp',
56 #                    'unix/GPU_Engine.cpp',
57 #                    'unix/GPU_KeyboardDevice.cpp',
58 #                    'unix/GPU_System.cpp']
59 #   gp_common_env.Append ( CPPPATH = ['unix'])
60
61 defs = []
62
63 if env['WITH_BF_PYTHON']:
64         incs += Split(env['BF_PYTHON_INC'])
65 else:
66         defs.append('DISABLE_PYTHON')
67
68 incs += Split(env['BF_PNG_INC'])
69 incs += Split(env['BF_ZLIB_INC'])
70
71 env.BlenderLib (libname='gp_common', sources=source_files, includes=incs, defines = defs, libtype=['player'], priority=[5], cxx_compileflags=env['BGE_CXXFLAGS'])