SCons:
[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/bmfont',
22         '#intern/moto/include',
23         '#intern/SoundSystem',
24         '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
25         '#source/kernel/gen_system',
26         '#source/kernel/gen_messaging',
27         '#source/gameengine/Converter',
28         '#source/blender/imbuf',
29         '#source/gameengine/Ketsji',
30         '#source/blender/blenlib',
31         '#source/blender/blenkernel',
32         '#source/blender',
33         '#source/blender/include',
34         '#source/blender/makesdna',
35         '#source/gameengine/BlenderRoutines',
36         '#source/gameengine/Rasterizer',
37         '#source/gameengine/GameLogic',
38         '#source/gameengine/Expressions',
39         '#source/gameengine/Network',
40         '#source/gameengine/SceneGraph',
41         '#source/gameengine/Physics/common',
42         '#source/gameengine/Physics/Sumo',
43         '#source/gameengine/Physics/Sumo/Fuzzics/include',
44         '#source/gameengine/Network/LoopBackNetwork',
45         '#source/gameengine/GamePlayer/ghost',
46         '#source/blender/misc',
47         '#source/blender/blenloader',
48         '#source/blender/gpu',
49                 '#extern/glew/include']
50                                 
51 #This is all plugin stuff!
52 #if sys.platform=='win32':
53 #   source_files += ['windows/GPW_Canvas.cpp',
54 #                    'windows/GPW_Engine.cpp',
55 #                    'windows/GPW_KeyboardDevice.cpp',
56 #                    'windows/GPW_System.cpp']
57 #   gp_common_env.Append ( CPPPATH = ['windows'])
58 #elif sys.platform=='linux2' or sys.platform=='linux-i386':
59 #   source_files += ['unix/GPU_Canvas.cpp',
60 #                    'unix/GPU_Engine.cpp',
61 #                    'unix/GPU_KeyboardDevice.cpp',
62 #                    'unix/GPU_System.cpp']
63 #   gp_common_env.Append ( CPPPATH = ['unix'])
64
65 incs += Split(env['BF_PYTHON_INC'])
66 incs += Split(env['BF_SOLID_INC'])
67 incs += Split(env['BF_PNG_INC'])
68 incs += Split(env['BF_ZLIB_INC'])
69
70 cxxflags = []
71 if env['OURPLATFORM']=='win32-vc':
72         cxxflags.append ('/GR')
73         cxxflags.append ('/O2')
74
75 env.BlenderLib (libname='gp_common', sources=source_files, includes=incs, defines = [], libtype='player', priority=5, cxx_compileflags=cxxflags)