The issue was caused by the following construction:
def = env['SOMETHING']
defs.append('SOMETHING_MORE')
Since first assignment was actually referencing environment option it was totally
polluted hawing weird and wonderful side effects on all other areas of Blender.
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = env.Glob('*.cpp')
|
|
|
|
defs = []
|
|
defs += env['BF_GL_DEFINITIONS']
|
|
|
|
incs = [
|
|
'.',
|
|
'#intern/container',
|
|
'#intern/guardedalloc',
|
|
'#intern/string',
|
|
env['BF_GLEW_INC'],
|
|
'#/intern/glew-mx',
|
|
'#intern/moto/include',
|
|
'#source/blender/blenkernel',
|
|
'#source/blender/blenfont',
|
|
'#source/blender/blenlib',
|
|
'#source/blender/gpu',
|
|
'#source/blender/makesdna',
|
|
'#source/gameengine/BlenderRoutines',
|
|
'#source/gameengine/Expressions',
|
|
'#source/gameengine/GameLogic',
|
|
'#source/gameengine/Physics/common',
|
|
'#source/gameengine/Rasterizer',
|
|
'#source/gameengine/SceneGraph',
|
|
'#source/gameengine/Ketsji',
|
|
env['BF_OPENGL_INC'],
|
|
]
|
|
incs = ' '.join(incs)
|
|
|
|
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'])
|