From 2e854ec7cfcb0a8aa78aaf58f7f4c3e79baae0e3 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Thu, 16 Jul 2009 19:41:28 +0000 Subject: SCons * ensure all SConscripts are ready for win64-vc (where necessary). * ensure we have proper _DEBUG flag for Python when we're doing a debug build. * some cleaning up of linking etc. * ensure /EHsc is there for game engine modules. --- source/gameengine/Ketsji/SConscript | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'source/gameengine/Ketsji/SConscript') diff --git a/source/gameengine/Ketsji/SConscript b/source/gameengine/Ketsji/SConscript index b09267b79ff..1edffe0e587 100644 --- a/source/gameengine/Ketsji/SConscript +++ b/source/gameengine/Ketsji/SConscript @@ -4,7 +4,7 @@ import sys Import ('env') sources = env.Glob('*.cpp') -defs = '' +defs = [] incs = '. #source/blender/python/generic' # Only for Mathutils! and bpy_internal_import.h, be very careful @@ -28,11 +28,14 @@ incs += ' ' + env['BF_OPENGL_INC'] if env['WITH_BF_SDL']: incs += ' ' + env['BF_SDL_INC'] else: - defs += ' DISABLE_SDL' + defs.append('DISABLE_SDL') cxxflags = [] -if env['OURPLATFORM']=='win32-vc': +if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'): cxxflags.append ('/GR') cxxflags.append ('/O2') + cxxflags.append ('/EHsc') + if env['BF_DEBUG']: + defs.append('_DEBUG') # for Python -env.BlenderLib ( 'bf_ketsji', sources, Split(incs), Split(defs), libtype=['core','player'], priority=[320, 60], cxx_compileflags = cxxflags ) +env.BlenderLib ( 'bf_ketsji', sources, Split(incs), defs, libtype=['core','player'], priority=[320, 60], cxx_compileflags = cxxflags ) -- cgit v1.2.3