2004-05-16 13:07:20 +00:00
|
|
|
#!/usr/bin/python
|
2004-03-22 22:02:18 +00:00
|
|
|
import sys
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
Import ('env')
|
|
|
|
|
|
|
|
sources = env.Glob('*.cpp')
|
|
|
|
|
|
|
|
incs = '. #source/kernel/gen_system #intern/string #intern/guardedalloc'
|
|
|
|
incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer #intern/bmfont'
|
|
|
|
incs += ' #intern/SoundSystem #intern/SoundSystem/include #intern/SoundSystem/openal'
|
|
|
|
incs += ' #intern/SoundSystem/dummy #intern/SoundSystem/intern #source/gameengine/Converter'
|
|
|
|
incs += ' #source/gameengine/BlenderRoutines #source/blender/imbuf #intern/moto/include'
|
|
|
|
incs += ' #source/gameengine/Ketsji #source/gameengine/Ketsji/KXNetwork #source/blender/blenlib'
|
|
|
|
incs += ' #source/blender/blenkernel #source/blender #source/blender/include'
|
|
|
|
incs += ' #source/blender/makesdna #source/blender/python #source/gameengine/Rasterizer'
|
|
|
|
incs += ' #source/gameengine/GameLogic #source/gameengine/Expressions #source/gameengine/Network'
|
|
|
|
incs += ' #source/gameengine/SceneGraph #source/gameengine/Physics/common #source/gameengine/Physics/Bullet'
|
|
|
|
incs += ' #source/gameengine/Physics/BlOde #source/gameengine/Physics/Dummy'
|
|
|
|
incs += ' #source/gameengine/Physics/Sumo #source/gameengine/Physics/Sumo/include'
|
|
|
|
incs += ' #source/gameengine/Physics/Sumo/Fuzzics/include #source/gameengine/Network/LoopBackNetwork'
|
|
|
|
incs += ' #source/blender/misc #source/blender/blenloader'
|
|
|
|
|
2006-02-07 21:24:36 +00:00
|
|
|
cflags = []
|
|
|
|
if env['OURPLATFORM'] == 'win32-vc':
|
|
|
|
cflags.append('/GR')
|
|
|
|
cflags.append('/Ox')
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-04-16 17:40:59 +00:00
|
|
|
if env['WITH_BF_GLEXT'] == 1:
|
|
|
|
env['CPPFLAGS'].append('-DWITH_GLEXT')
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' ' + env['BF_SOLID_INC']
|
|
|
|
incs += ' ' + env['BF_PYTHON_INC']
|
|
|
|
incs += ' ' + env['BF_SDL_INC']
|
|
|
|
incs += ' ' + env['BF_BULLET_INC']
|
2006-06-05 15:52:26 +00:00
|
|
|
incs += ' ' + env['BF_OPENGL_INC']
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2006-02-07 21:24:36 +00:00
|
|
|
env.BlenderLib ( 'bf_ketsji', sources, Split(incs), [], libtype=['game','player'], priority=[25, 72], compileflags = cflags )
|