2012-12-17 08:01:43 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#
|
|
|
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the GNU General Public License
|
|
|
|
# as published by the Free Software Foundation; either version 2
|
|
|
|
# of the License, or (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
#
|
|
|
|
# The Original Code is Copyright (C) 2006, Blender Foundation
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# The Original Code is: all of this file.
|
|
|
|
#
|
|
|
|
# Contributor(s): Nathan Letwory.
|
|
|
|
#
|
|
|
|
# ***** END GPL LICENSE BLOCK *****
|
|
|
|
|
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')
|
2009-02-25 12:07:51 +00:00
|
|
|
defs = []
|
2004-01-20 20:28:39 +00:00
|
|
|
|
2011-05-06 20:18:42 +00:00
|
|
|
incs = '. #intern/string #intern/guardedalloc #intern/container'
|
2009-05-05 23:10:32 +00:00
|
|
|
incs += ' #source/gameengine/Rasterizer/RAS_OpenGLRasterizer'
|
2009-08-10 19:22:50 +00:00
|
|
|
incs += ' #intern/audaspace/intern #source/gameengine/Converter'
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' #source/gameengine/BlenderRoutines #source/blender/imbuf'
|
|
|
|
incs += ' #intern/moto/include #source/gameengine/Ketsji #source/gameengine/Ketsji/KXNetwork'
|
|
|
|
incs += ' #source/blender/blenlib #source/blender/blenkernel #source/blender'
|
2007-12-29 19:04:45 +00:00
|
|
|
incs += ' #source/blender/editors/include #source/blender/makesdna #source/gameengine/Rasterizer'
|
2012-11-14 01:41:24 +00:00
|
|
|
incs += ' #source/gameengine/GameLogic'
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' #source/gameengine/Expressions #source/gameengine/Network #source/gameengine/SceneGraph'
|
2009-09-28 15:49:26 +00:00
|
|
|
incs += ' #source/gameengine/Physics/common #source/gameengine/Physics/Bullet'
|
2009-02-25 12:07:51 +00:00
|
|
|
incs += ' #source/gameengine/Physics/Dummy'
|
|
|
|
incs += ' #source/gameengine/Network/LoopBackNetwork'
|
Merge of first part of changes from the apricot branch, especially
the features that are needed to run the game. Compile tested with
scons, make, but not cmake, that seems to have an issue not related
to these changes. The changes include:
* GLSL support in the viewport and game engine, enable in the game
menu in textured draw mode.
* Synced and merged part of the duplicated blender and gameengine/
gameplayer drawing code.
* Further refactoring of game engine drawing code, especially mesh
storage changed a lot.
* Optimizations in game engine armatures to avoid recomputations.
* A python function to get the framerate estimate in game.
* An option take object color into account in materials.
* An option to restrict shadow casters to a lamp's layers.
* Increase from 10 to 18 texture slots for materials, lamps, word.
An extra texture slot shows up once the last slot is used.
* Memory limit for undo, not enabled by default yet because it
needs the .B.blend to be changed.
* Multiple undo for image painting.
* An offset for dupligroups, so not all objects in a group have to
be at the origin.
2008-09-04 20:51:28 +00:00
|
|
|
incs += ' #source/blender/misc #source/blender/blenloader #source/blender/gpu'
|
2008-01-01 19:20:49 +00:00
|
|
|
incs += ' #source/blender/windowmanager'
|
2009-06-16 14:21:58 +00:00
|
|
|
incs += ' #source/blender/makesrna'
|
2009-09-24 21:22:24 +00:00
|
|
|
incs += ' #source/blender/ikplugin'
|
2010-09-01 21:43:22 +00:00
|
|
|
incs += ' #extern/recastnavigation/Detour/Include'
|
2011-10-23 17:52:20 +00:00
|
|
|
incs += ' #extern/Eigen3'
|
2004-01-20 20:28:39 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' ' + env['BF_BULLET_INC']
|
2012-11-05 15:23:09 +00:00
|
|
|
incs += ' ' + env['BF_BOOST_INC']
|
2004-01-20 20:28:39 +00:00
|
|
|
|
2009-09-28 15:49:26 +00:00
|
|
|
if env['BF_DEBUG']:
|
2012-04-24 12:57:58 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-mingw', 'win32-vc', 'win64-vc', 'win64-mingw'):
|
2010-08-29 20:52:05 +00:00
|
|
|
defs.append('_DEBUG')
|
|
|
|
|
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-28 15:49:26 +00:00
|
|
|
|
2010-10-08 20:39:56 +00:00
|
|
|
if env['WITH_BF_CXX_GUARDEDALLOC']:
|
|
|
|
defs.append('WITH_CXX_GUARDEDALLOC')
|
|
|
|
|
2010-10-10 07:01:56 +00:00
|
|
|
if env['WITH_BF_BULLET']:
|
2013-01-23 07:26:39 +00:00
|
|
|
defs.append('WITH_BULLET')
|
2010-10-10 07:01:56 +00:00
|
|
|
|
2012-04-28 22:59:55 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc', 'win64-mingw'):
|
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
|
|
|
|
2010-11-18 11:42:05 +00:00
|
|
|
env.BlenderLib ( 'ge_converter', sources, Split(incs), defs, libtype=['core','player'], priority=[305,40], cxx_compileflags=env['BGE_CXXFLAGS'])
|