getting ARB shaders working again in GE.
[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/include',
35         '#source/blender/makesdna',
36         '#source/gameengine/BlenderRoutines',
37         '#source/gameengine/Rasterizer',
38         '#source/gameengine/GameLogic',
39         '#source/gameengine/Expressions',
40         '#source/gameengine/Network',
41         '#source/gameengine/SceneGraph',
42         '#source/gameengine/Physics/common',
43         '#source/gameengine/Physics/Sumo',
44         '#source/gameengine/Physics/Sumo/Fuzzics/include',
45         '#source/gameengine/Network/LoopBackNetwork',
46         '#source/gameengine/GamePlayer/ghost',
47         '#source/blender/misc',
48         '#source/blender/blenloader']
49                                 
50 #This is all plugin stuff!
51 #if sys.platform=='win32':
52 #   source_files += ['windows/GPW_Canvas.cpp',
53 #                    'windows/GPW_Engine.cpp',
54 #                    'windows/GPW_KeyboardDevice.cpp',
55 #                    'windows/GPW_System.cpp']
56 #   gp_common_env.Append ( CPPPATH = ['windows'])
57 #elif sys.platform=='linux2' or sys.platform=='linux-i386':
58 #   source_files += ['unix/GPU_Canvas.cpp',
59 #                    'unix/GPU_Engine.cpp',
60 #                    'unix/GPU_KeyboardDevice.cpp',
61 #                    'unix/GPU_System.cpp']
62 #   gp_common_env.Append ( CPPPATH = ['unix'])
63
64 incs += Split(env['BF_PYTHON_INC'])
65 incs += Split(env['BF_SOLID_INC'])
66 incs += Split(env['BF_PNG_INC'])
67 incs += Split(env['BF_ZLIB_INC'])
68
69 cflags=[]
70 if env['OURPLATFORM']=='win32-vc':
71     cflags = ['/GR']
72
73 env.BlenderLib (libname='gp_common', sources=source_files, includes=incs, defines = [], libtype='player', priority=5, compileflags=cflags)