* commit r17900 by Genscher was wrong.
- Instead of defining such defines for the entire codebase in Blender.py, add the right checks and definitions to the places where it matters. - Only check+set WITH_BULLET instead of also GAMEBLENDER=1 - NOTE: No global defines allowed in BlenderLib.
This commit is contained in:
@@ -53,6 +53,9 @@ if env['WITH_BF_QUICKTIME']:
|
||||
defs += ' WITH_QUICKTIME'
|
||||
incs += ' ' + env['BF_QUICKTIME_INC']
|
||||
|
||||
if env['WITH_BF_BULLET']:
|
||||
defs += ' WITH_BULLET'
|
||||
|
||||
if env['BF_NO_ELBEEM']:
|
||||
defs += ' DISABLE_ELBEEM'
|
||||
|
||||
|
@@ -65,6 +65,9 @@ if env['WITH_BF_ICONV']:
|
||||
incs += ' ' + env['BF_ICONV_INC']
|
||||
defs.append('WITH_ICONV')
|
||||
|
||||
if env['WITH_BF_GAMEENGINE']:
|
||||
defs.append('GAMEBLENDER=1')
|
||||
|
||||
if env['WITH_BF_FFMPEG']:
|
||||
defs.append('WITH_FFMPEG')
|
||||
incs += ' ' + env['BF_FFMPEG_INC']
|
||||
|
@@ -421,10 +421,6 @@ class BlenderEnvironment(SConsEnvironment):
|
||||
lenv = self.Clone()
|
||||
lenv.Append(CPPPATH=includes)
|
||||
lenv.Append(CPPDEFINES=defines)
|
||||
if lenv['WITH_BF_GAMEENGINE']:
|
||||
lenv.Append(CPPDEFINES=['GAMEBLENDER=1'])
|
||||
if lenv['WITH_BF_BULLET']:
|
||||
lenv.Append(CPPDEFINES=['WITH_BULLET=1'])
|
||||
if lenv['BF_DEBUG'] or (libname in quickdebug):
|
||||
lenv.Append(CFLAGS = lenv['BF_DEBUG_CFLAGS'])
|
||||
lenv.Append(CCFLAGS = lenv['BF_DEBUG_CCFLAGS'])
|
||||
|
Reference in New Issue
Block a user