2004-05-16 13:07:20 +00:00
|
|
|
#!/usr/bin/python
|
2006-02-04 14:15:10 +00:00
|
|
|
Import ('env')
|
2004-02-29 21:40:48 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
sources = env.Glob('*.cpp') + env.Glob('Joystick/*.cpp')
|
2004-01-20 20:28:39 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs = '. #/source/kernel/gen_system #/intern/string'
|
|
|
|
incs += ' #/source/gameengine/Expressions #/intern/moto/include'
|
2009-06-08 20:08:19 +00:00
|
|
|
incs += ' #/source/gameengine/Rasterizer #/source/gameengine/SceneGraph'
|
2004-01-20 20:28:39 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
2004-02-21 15:13:15 +00:00
|
|
|
|
|
|
|
|
2008-09-21 05:38:28 +00:00
|
|
|
defs = ''
|
|
|
|
|
2008-11-11 14:14:22 +00:00
|
|
|
if env['WITH_BF_SDL']:
|
|
|
|
incs += ' ' + env['BF_SDL_INC']
|
|
|
|
else:
|
2008-09-21 05:38:28 +00:00
|
|
|
defs += ' DISABLE_SDL'
|
|
|
|
|
2009-02-15 23:26:00 +00:00
|
|
|
cxxflags = []
|
|
|
|
if env['OURPLATFORM']=='win32-vc':
|
|
|
|
cxxflags.append ('/GR')
|
|
|
|
cxxflags.append ('/O2')
|
|
|
|
|
2009-03-17 21:44:58 +00:00
|
|
|
env.BlenderLib ( 'bf_logic', sources, Split(incs), Split(defs), libtype=['core','player'], priority=[330, 100], cxx_compileflags=cxxflags )
|