[SCONS] Optimisation flags for msvc
authorNathan Letwory <nathan@letworyinteractive.com>
Thu, 22 Apr 2004 04:50:41 +0000 (04:50 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Thu, 22 Apr 2004 04:50:41 +0000 (04:50 +0000)
SConstruct
extern/qhull/SConscript
extern/solid/SConscript
source/gameengine/Ketsji/SConscript
source/gameengine/Physics/Sumo/SConscript
source/gameengine/Rasterizer/SConscript

index f29b73f39dcda35be1d03a74ec0fcec579b7c59c..78a068d7ae410010c3e4d591f527dd0640ef2a18 100644 (file)
@@ -284,7 +284,7 @@ elif sys.platform == 'win32':
     build_blender_static = 'false'
     build_blender_player = 'false'
     build_blender_plugin = 'false'
-    release_flags = ['/G6', '/GF']
+    release_flags = ['/Og', '/Ot', '/Ob1', '/Op', '/G6']
     debug_flags = ['/Zi', '/Fr${TARGET.base}.sbr']
     extra_flags = ['/EHsc', '/J', '/W3', '/Gd', '/MT']
     cxxflags = []
index 22a09a99345f012bee118d8dbf4c3dbd008d6336..1be051c4623e9e43354233f0638c3c03d2059fbb 100644 (file)
@@ -8,6 +8,8 @@ Import ('defines')
 Import ('user_options_dict')
 if sys.platform=='linux2' or sys.platform=='linux-i386':
        qhull_env.Append (CCFLAGS = ['-O2', '-ansi'])
+elif sys.platform=='win32':
+       qhull_env.Append (CCFLAGS = ['/O2'])
 elif sys.platform=='sunos':
        qhull_env.Append (CCFLAGS = ['Xc', '-v', '-fast'])
 else:
index 5e55b21efec6edc6e1503edd46c1149b67e7c165..0ea99337c05ca4098a3e73af823678a151bd8217 100644 (file)
@@ -11,8 +11,9 @@ cflags = []
 cxxflags = []
 
 if sys.platform=='win32':
-    defines += ['WIN32','NDEBUG', '_WINDOWS', '_LIB']
-    cflags += ['/MT', '/W3', '/GX', '/O2']
+       defines += ['WIN32','NDEBUG', '_WINDOWS', '_LIB']
+       #cflags += ['/MT', '/W3', '/GX', '/O2', '/Op']
+       cflags += ['/MT', '/W3', '/GX', '/Og', '/Ot', '/Ob1', '/Op', '/G6']
 elif sys.platform=='linux2' or sys.platform=='linux-i386':
     defines += ['NDEBUG']
     cflags += ['-O2']
index 8f8b868a8771dafed33206a403f913bf0425fbbb..3c880246338485ca2757e1e20be891f399a6a9a3 100644 (file)
@@ -103,7 +103,8 @@ ketsji_env.Append (CPPPATH = ['.',
                              ])
 
 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.Library (target='#'+user_options_dict['BUILD_DIR']+'/lib/KX_ketsji', source=source_files)
index dba05693c1e90153f1c1bb40a5453fb662eadbf8..126fb43e2da056b4c636292fd801332ebef1f920 100755 (executable)
@@ -19,6 +19,7 @@ phy_sumo_env.Append (CPPPATH = ['.',
 phy_sumo_env.Append (CPPPATH = user_options_dict['SOLID_INCLUDE'])
 
 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)
index 41cf80df144419efad644ab19838c355263cf59e..96252581601384e0418ace81b253eea734a52b77 100755 (executable)
@@ -1,3 +1,4 @@
+import sys
 Import ('user_options_dict')
 Import ('library_env')
 
@@ -19,4 +20,7 @@ ras_rasterizer_env.Append (CPPPATH=['.',
                                     '#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)