forked from bartvdbraak/blender
2e854ec7cf
* 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.
29 lines
745 B
Python
29 lines
745 B
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = env.Glob('*.cpp') + env.Glob('Joystick/*.cpp')
|
|
|
|
incs = '. #/source/kernel/gen_system #/intern/string'
|
|
incs += ' #/source/gameengine/Expressions #/intern/moto/include'
|
|
incs += ' #/source/gameengine/Rasterizer #/source/gameengine/SceneGraph'
|
|
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
|
|
|
|
|
defs = []
|
|
|
|
if env['WITH_BF_SDL']:
|
|
incs += ' ' + env['BF_SDL_INC']
|
|
else:
|
|
defs.append('DISABLE_SDL')
|
|
|
|
cxxflags = []
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
|
cxxflags.append ('/GR')
|
|
cxxflags.append ('/O2')
|
|
cxxflags.append ('/EHsc')
|
|
if env['BF_DEBUG']:
|
|
defs.append('_DEBUG')
|
|
|
|
env.BlenderLib ( 'bf_logic', sources, Split(incs), defs, libtype=['core','player'], priority=[330, 100], cxx_compileflags=cxxflags )
|