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
|
|
|
|
2011-05-06 20:18:42 +00:00
|
|
|
incs = '. #/intern/string #intern/container'
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' #/source/gameengine/Expressions #/intern/moto/include'
|
2009-06-08 20:08:19 +00:00
|
|
|
incs += ' #/source/gameengine/Rasterizer #/source/gameengine/SceneGraph'
|
2012-04-09 11:03:58 +00:00
|
|
|
incs += ' #/source/blender/blenlib'
|
2004-01-20 20:28:39 +00:00
|
|
|
|
2009-07-16 19:41:28 +00:00
|
|
|
defs = []
|
2008-09-21 05:38:28 +00:00
|
|
|
|
2008-11-11 14:14:22 +00:00
|
|
|
if env['WITH_BF_SDL']:
|
2011-10-20 00:19:21 +00:00
|
|
|
defs.append('WITH_SDL')
|
2010-08-29 20:52:05 +00:00
|
|
|
incs += ' ' + env['BF_SDL_INC']
|
2008-09-21 05:38:28 +00:00
|
|
|
|
2009-09-29 21:42:40 +00:00
|
|
|
if env['WITH_BF_PYTHON']:
|
2010-08-29 20:52:05 +00:00
|
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
2010-10-31 04:11:39 +00:00
|
|
|
defs.append('WITH_PYTHON')
|
2009-09-29 21:42:40 +00:00
|
|
|
|
2009-07-16 19:41:28 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
2010-08-29 20:52:05 +00:00
|
|
|
if env['BF_DEBUG']:
|
|
|
|
defs.append('_DEBUG')
|
2009-02-15 23:26:00 +00:00
|
|
|
|
2010-10-08 20:39:56 +00:00
|
|
|
if env['WITH_BF_CXX_GUARDEDALLOC']:
|
|
|
|
defs.append('WITH_CXX_GUARDEDALLOC')
|
|
|
|
incs += ' #/intern/guardedalloc'
|
|
|
|
|
2010-11-18 11:42:05 +00:00
|
|
|
env.BlenderLib ( 'ge_logic', sources, Split(incs), defs, libtype=['core','player'], priority=[330,65], cxx_compileflags=env['BGE_CXXFLAGS'])
|