SCons:
[blender.git] / source / gameengine / GamePlayer / ghost / SConscript
index 4f1324b39388bbce39595774f715a795b79522c8..0785ce4bd0d543609e8a0e478fa14b944a6d6749 100644 (file)
@@ -45,12 +45,14 @@ incs = ['.',
 
 incs += Split(env['BF_PYTHON_INC'])
 incs += Split(env['BF_SOLID_INC'])
-cflags = []
+
+cxxflags = []
 if env['OURPLATFORM']=='win32-vc':
-    cflags = ['/GR']
+       cxxflags.append ('/GR')
+       cxxflags.append ('/O2')
 
 defs = ''
 if env['WITH_BF_FFMPEG']:
     defs += ' WITH_FFMPEG'
 
-env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = Split(defs), libtype='player',priority=0, compileflags=cflags)
+env.BlenderLib (libname='gp_ghost', sources=source_files, includes = incs, defines = Split(defs), libtype='player',priority=0, cxx_compileflags=cxxflags)