Undo revision 23130 which was a merge with 2.5, a messy one because I did something...
[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 incs += Split(env['BF_PYTHON_INC'])
62 incs += Split(env['BF_PNG_INC'])
63 incs += Split(env['BF_ZLIB_INC'])
64
65 cxxflags = []
66 if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
67         cxxflags.append ('/GR')
68         cxxflags.append ('/O2')
69         cxxflags.append ('/EHsc')
70
71 env.BlenderLib (libname='gp_common', sources=source_files, includes=incs, defines = [], libtype='player', priority=5, cxx_compileflags=cxxflags)