5f3af7360ff41f66aefba58c263c1d8d342052ad
[blender.git] / source / gameengine / Rasterizer / RAS_OpenGLRasterizer / SConscript
1 #!/usr/bin/python
2 Import ('env')
3
4 sources = env.Glob('*.cpp')
5
6 defs = [ 'GLEW_STATIC' ]
7
8 incs = '. #intern/string #intern/moto/include #source/gameengine/Rasterizer #source/gameengine/BlenderRoutines '
9 incs += ' #intern/container #source/blender/gpu #extern/glew/include ' + env['BF_OPENGL_INC']
10 incs += ' #source/blender/gameengine/Ketsji #source/gameengine/SceneGraph #source/blender/makesdna #source/blender/blenkernel'
11 incs += ' #intern/guardedalloc #source/blender/blenlib #source/gameengine/BlenderRoutines'
12
13 if env['WITH_BF_CXX_GUARDEDALLOC']:
14     defs.append('WITH_CXX_GUARDEDALLOC')
15
16 if env['WITH_BF_PYTHON']:
17     incs += ' ' + env['BF_PYTHON_INC']
18     defs.append('WITH_PYTHON')
19
20 env.BlenderLib ( 'ge_oglrasterizer', Split(sources), Split(incs), defines = defs, libtype=['core','player'], priority=[350,75], cxx_compileflags=env['BGE_CXXFLAGS'])