SCons:
* giving compileflags, cc_compileflags and cxx_compileflags to BlenderLib() now actually overrides any other setting (so there's no unclarity when ie. conflicting options are being specified in REL_CFLAGS et al). These are set after either release or debug flags, but before any *_WARN flags (so those stay maintained). * add cxx_compileflags for GE parts on win32-vc to have better performance. * NOTE: if platform maintainers (OSX and Linux) could check and do the same for their systems. Not vital, but probably very, very much welcomed by GE users.
This commit is contained in:
@@ -15,11 +15,12 @@ incs += ' #source/blender/gpu #source/kernel/gen_system #intern/string #intern/m
|
||||
incs += ' #intern/guardedalloc #intern/SoundSystem'
|
||||
incs += ' #extern/glew/include'
|
||||
|
||||
cflags = []
|
||||
defs = ''
|
||||
if env['OURPLATFORM'] == 'win32-vc':
|
||||
cflags.append('/GR')
|
||||
cflags.append('/Ox')
|
||||
cxxflags = []
|
||||
if env['OURPLATFORM']=='win32-vc':
|
||||
cxxflags.append ('/GR')
|
||||
cxxflags.append ('/O2')
|
||||
|
||||
|
||||
incs += ' ' + env['BF_PYTHON_INC']
|
||||
#incs += ' ' + env['BF_OPENGL_INC']
|
||||
@@ -29,4 +30,4 @@ if env['WITH_BF_FFMPEG']:
|
||||
incs += ' ' + env['BF_FFMPEG_INC']
|
||||
defs += ' __STDC_CONSTANT_MACROS'
|
||||
|
||||
env.BlenderLib ( 'bf_videotex', sources, Split(incs), Split(defs), libtype=['game','player'], priority=[25, 72], compileflags = cflags )
|
||||
env.BlenderLib ( 'bf_videotex', sources, Split(incs), Split(defs), libtype=['game','player'], priority=[25, 72], cxx_compileflags = cxxflags )
|
||||
|
||||
Reference in New Issue
Block a user