forked from bartvdbraak/blender
[SCONS] Optimisation flags for msvc
This commit is contained in:
parent
0d0ab24e4a
commit
892720ffad
@ -284,7 +284,7 @@ elif sys.platform == 'win32':
|
|||||||
build_blender_static = 'false'
|
build_blender_static = 'false'
|
||||||
build_blender_player = 'false'
|
build_blender_player = 'false'
|
||||||
build_blender_plugin = 'false'
|
build_blender_plugin = 'false'
|
||||||
release_flags = ['/G6', '/GF']
|
release_flags = ['/Og', '/Ot', '/Ob1', '/Op', '/G6']
|
||||||
debug_flags = ['/Zi', '/Fr${TARGET.base}.sbr']
|
debug_flags = ['/Zi', '/Fr${TARGET.base}.sbr']
|
||||||
extra_flags = ['/EHsc', '/J', '/W3', '/Gd', '/MT']
|
extra_flags = ['/EHsc', '/J', '/W3', '/Gd', '/MT']
|
||||||
cxxflags = []
|
cxxflags = []
|
||||||
|
2
extern/qhull/SConscript
vendored
2
extern/qhull/SConscript
vendored
@ -8,6 +8,8 @@ Import ('defines')
|
|||||||
Import ('user_options_dict')
|
Import ('user_options_dict')
|
||||||
if sys.platform=='linux2' or sys.platform=='linux-i386':
|
if sys.platform=='linux2' or sys.platform=='linux-i386':
|
||||||
qhull_env.Append (CCFLAGS = ['-O2', '-ansi'])
|
qhull_env.Append (CCFLAGS = ['-O2', '-ansi'])
|
||||||
|
elif sys.platform=='win32':
|
||||||
|
qhull_env.Append (CCFLAGS = ['/O2'])
|
||||||
elif sys.platform=='sunos':
|
elif sys.platform=='sunos':
|
||||||
qhull_env.Append (CCFLAGS = ['Xc', '-v', '-fast'])
|
qhull_env.Append (CCFLAGS = ['Xc', '-v', '-fast'])
|
||||||
else:
|
else:
|
||||||
|
3
extern/solid/SConscript
vendored
3
extern/solid/SConscript
vendored
@ -12,7 +12,8 @@ cxxflags = []
|
|||||||
|
|
||||||
if sys.platform=='win32':
|
if sys.platform=='win32':
|
||||||
defines += ['WIN32','NDEBUG', '_WINDOWS', '_LIB']
|
defines += ['WIN32','NDEBUG', '_WINDOWS', '_LIB']
|
||||||
cflags += ['/MT', '/W3', '/GX', '/O2']
|
#cflags += ['/MT', '/W3', '/GX', '/O2', '/Op']
|
||||||
|
cflags += ['/MT', '/W3', '/GX', '/Og', '/Ot', '/Ob1', '/Op', '/G6']
|
||||||
elif sys.platform=='linux2' or sys.platform=='linux-i386':
|
elif sys.platform=='linux2' or sys.platform=='linux-i386':
|
||||||
defines += ['NDEBUG']
|
defines += ['NDEBUG']
|
||||||
cflags += ['-O2']
|
cflags += ['-O2']
|
||||||
|
@ -104,6 +104,7 @@ ketsji_env.Append (CPPPATH = ['.',
|
|||||||
|
|
||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
ketsji_env.Append (CXXFLAGS = ['/GR'])
|
ketsji_env.Append (CXXFLAGS = ['/GR'])
|
||||||
|
ketsji_env.Append ( CCFLAGS =['/Ox'])
|
||||||
ketsji_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
|
ketsji_env.Append (CPPPATH = user_options_dict['PYTHON_INCLUDE'])
|
||||||
|
|
||||||
ketsji_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/KX_ketsji', source=source_files)
|
ketsji_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/KX_ketsji', source=source_files)
|
||||||
|
@ -20,5 +20,6 @@ phy_sumo_env.Append (CPPPATH = user_options_dict['SOLID_INCLUDE'])
|
|||||||
|
|
||||||
if sys.platform=='win32':
|
if sys.platform=='win32':
|
||||||
phy_sumo_env.Append (CXXFLAGS = ['/GR'])
|
phy_sumo_env.Append (CXXFLAGS = ['/GR'])
|
||||||
|
phy_sumo_env.Append ( CCFLAGS =['/O1'])
|
||||||
|
|
||||||
phy_sumo_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/PHY_Sumo', source=source_files)
|
phy_sumo_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/PHY_Sumo', source=source_files)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import sys
|
||||||
Import ('user_options_dict')
|
Import ('user_options_dict')
|
||||||
Import ('library_env')
|
Import ('library_env')
|
||||||
|
|
||||||
@ -19,4 +20,7 @@ ras_rasterizer_env.Append (CPPPATH=['.',
|
|||||||
'#intern/moto/include'
|
'#intern/moto/include'
|
||||||
])
|
])
|
||||||
|
|
||||||
|
if sys.platform=='win32':
|
||||||
|
ras_rasterizer_env.Append ( CCFLAGS =['/Ox'])
|
||||||
|
|
||||||
ras_rasterizer_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/RAS_rasterizer', source=source_files)
|
ras_rasterizer_env.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/RAS_rasterizer', source=source_files)
|
||||||
|
Loading…
Reference in New Issue
Block a user