forked from bartvdbraak/blender
1dd1cea06e
This define wasn't set in some parts of the BGE causing problems with the view matrix. in CMake define for the entire BGE fixes this.
21 lines
829 B
Python
21 lines
829 B
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = env.Glob('*.cpp')
|
|
|
|
defs = [ 'GLEW_STATIC' ]
|
|
|
|
incs = '. #source/kernel/gen_system #intern/string #intern/moto/include #source/gameengine/Rasterizer #source/gameengine/BlenderRoutines '
|
|
incs += ' #source/blender/gpu #extern/glew/include ' + env['BF_OPENGL_INC']
|
|
incs += ' #source/blender/gameengine/Ketsji #source/gameengine/SceneGraph #source/blender/makesdna #source/blender/blenkernel'
|
|
incs += ' #intern/guardedalloc #source/blender/blenlib'
|
|
|
|
if env['WITH_BF_CXX_GUARDEDALLOC']:
|
|
defs.append('WITH_CXX_GUARDEDALLOC')
|
|
|
|
if env['WITH_BF_PYTHON']:
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
|
defs.append('WITH_PYTHON')
|
|
|
|
env.BlenderLib ( 'ge_oglrasterizer', Split(sources), Split(incs), defines = defs, libtype=['core','player'], priority=[350,75], cxx_compileflags=env['BGE_CXXFLAGS'])
|