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.
37 lines
1.3 KiB
Python
37 lines
1.3 KiB
Python
#!/usr/bin/python
|
|
import sys
|
|
|
|
Import ('env')
|
|
|
|
sources = env.Glob('*.cpp')
|
|
|
|
incs = '. #source/gameengine/Ketsji #source/gameengine/Expressions'
|
|
incs += ' #source/gameengine/GameLogic #source/gameengine/SceneGraph #source/gameengine/Rasterizer'
|
|
incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer'
|
|
incs += ' #source/gameengine/BlenderRoutines'
|
|
incs += ' #source/blender/editors/include #source/blender/blenlib #source/blender/blenkernel'
|
|
incs += ' #source/blender/makesdna #source/blender/imbuf #source/blender/python'
|
|
incs += ' #source/blender/gpu #source/kernel/gen_system #intern/string #intern/moto/include'
|
|
incs += ' #intern/guardedalloc #intern/SoundSystem'
|
|
incs += ' #extern/glew/include'
|
|
|
|
defs = []
|
|
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')
|
|
|
|
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
|
#incs += ' ' + env['BF_OPENGL_INC']
|
|
|
|
if env['WITH_BF_FFMPEG']:
|
|
defs.append('WITH_FFMPEG')
|
|
incs += ' ' + env['BF_FFMPEG_INC'] + ' ' + env['BF_PTHREADS_INC']
|
|
defs.append('__STDC_CONSTANT_MACROS')
|
|
|
|
env.BlenderLib ( 'bf_videotex', sources, Split(incs), defs, libtype=['core','player'], priority=[300, 72], cxx_compileflags = cxxflags )
|