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.
32 lines
996 B
Python
32 lines
996 B
Python
#!/usr/bin/python
|
|
Import ('env')
|
|
|
|
sources = 'CcdPhysicsEnvironment.cpp CcdPhysicsController.cpp CcdGraphicController.cpp'
|
|
|
|
incs = '. ../common'
|
|
incs += ' #source/kernel/gen_system'
|
|
incs += ' #intern/string'
|
|
incs += ' #intern/moto/include'
|
|
incs += ' #extern/glew/include'
|
|
incs += ' #source/gameengine/Rasterizer'
|
|
incs += ' #source/gameengine/Ketsji'
|
|
incs += ' #source/gameengine/Expressions'
|
|
incs += ' #source/gameengine/GameLogic'
|
|
incs += ' #source/gameengine/SceneGraph'
|
|
incs += ' #source/blender/makesdna'
|
|
incs += ' #source/blender/blenkernel'
|
|
incs += ' #source/blender/blenlib'
|
|
incs += ' #intern/SoundSystem'
|
|
incs += ' #intern/guardedalloc'
|
|
|
|
incs += ' ' + env['BF_BULLET_INC']
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
|
|
|
cxxflags = []
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
|
cxxflags.append ('/GR')
|
|
cxxflags.append ('/O2')
|
|
cxxflags.append ('/EHsc')
|
|
|
|
env.BlenderLib ( 'bf_bullet', Split(sources), Split(incs), [], libtype=['core','player'], priority=[350,80], cxx_compileflags=cxxflags )
|