* tweak linking priorities - should help for GCC users
[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_PolygonMaterial.cpp',
12                                 'GPC_RawImage.cpp',
13                                 'GPC_RawLoadDotBlendArray.cpp',
14                                 'GPC_RawLogoArrays.cpp',
15                                 'GPC_RenderTools.cpp',
16                                 'GPC_System.cpp']
17
18 incs = ['.',
19                 '#intern/string',
20                 '#intern/ghost',
21                 '#intern/guardedalloc',
22                 '#intern/bmfont',
23                 '#intern/moto/include',
24                 '#intern/SoundSystem',
25                 '#source/gameengine/Rasterizer/RAS_OpenGLRasterizer',
26                 '#source/kernel/gen_system',
27                 '#source/kernel/gen_messaging',
28                 '#source/gameengine/Converter',
29                 '#source/blender/imbuf',
30                 '#source/gameengine/Ketsji',
31                 '#source/blender/blenlib',
32                 '#source/blender/blenkernel',
33                 '#source/blender',
34                 '#source/blender/editors/include',
35                 '#source/blender/makesdna',
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
49 #This is all plugin stuff!
50 #if sys.platform=='win32':
51 #   source_files += ['windows/GPW_Canvas.cpp',
52 #                                       'windows/GPW_Engine.cpp',
53 #                                       'windows/GPW_KeyboardDevice.cpp',
54 #                                       'windows/GPW_System.cpp']
55 #   gp_common_env.Append ( CPPPATH = ['windows'])
56 #elif sys.platform=='linux2' or sys.platform=='linux-i386':
57 #   source_files += ['unix/GPU_Canvas.cpp',
58 #                                       'unix/GPU_Engine.cpp',
59 #                                       'unix/GPU_KeyboardDevice.cpp',
60 #                                       'unix/GPU_System.cpp']
61 #   gp_common_env.Append ( CPPPATH = ['unix'])
62
63 incs += Split(env['BF_PYTHON_INC'])
64 incs += Split(env['BF_SOLID_INC'])
65 incs += Split(env['BF_PNG_INC'])
66 incs += Split(env['BF_ZLIB_INC'])
67
68 cflags=[]
69 if env['OURPLATFORM']=='win32-vc':
70         cflags = ['/GR']
71
72 env.BlenderLib (libname='gp_common', sources=source_files, includes=incs, defines = [], libtype='player', priority=5, compileflags=cflags)