2004-05-16 13:07:20 +00:00
|
|
|
#!/usr/bin/python
|
2006-02-04 14:15:10 +00:00
|
|
|
Import ('env')
|
2009-09-21 03:16:26 +00:00
|
|
|
import os
|
2004-02-29 21:40:48 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
sources = 'creator.c'
|
2004-02-24 20:03:27 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
incs = '#/intern/guardedalloc ../blender/blenlib ../blender/blenkernel'
|
2007-12-27 22:16:54 +00:00
|
|
|
incs += ' ../blender/editors/include ../blender/blenloader ../blender/imbuf'
|
|
|
|
incs += ' ../blender/renderconverter ../blender/render/extern/include ../blender/windowmanager'
|
2009-03-20 03:32:56 +00:00
|
|
|
incs += ' ../blender/makesdna ../blender/makesrna ../kernel/gen_messaging'
|
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 += ' ../kernel/gen_system #/extern/glew/include ../blender/gpu'
|
2006-02-04 14:15:10 +00:00
|
|
|
incs += ' ' + env['BF_OPENGL_INC']
|
2004-02-24 20:03:27 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
defs = []
|
2008-10-22 11:28:10 +00:00
|
|
|
if env['WITH_BF_QUICKTIME']:
|
2009-04-20 15:06:46 +00:00
|
|
|
incs += ' ' + env['BF_QUICKTIME_INC']
|
|
|
|
defs.append('WITH_QUICKTIME')
|
2004-02-24 20:03:27 +00:00
|
|
|
|
2008-10-22 11:28:10 +00:00
|
|
|
if env['WITH_BF_BINRELOC']:
|
2009-04-20 15:06:46 +00:00
|
|
|
incs += ' ../../extern/binreloc/include'
|
|
|
|
defs.append('WITH_BINRELOC')
|
2008-01-18 15:10:17 +00:00
|
|
|
|
2008-10-22 11:28:10 +00:00
|
|
|
if env['WITH_BF_OPENEXR']:
|
2009-04-20 15:06:46 +00:00
|
|
|
defs.append('WITH_OPENEXR')
|
2008-03-28 14:55:49 +00:00
|
|
|
|
2008-10-19 06:12:11 +00:00
|
|
|
if not env['WITH_BF_SDL']:
|
|
|
|
defs.append('DISABLE_SDL')
|
|
|
|
|
2008-11-11 14:14:22 +00:00
|
|
|
if env['WITH_BF_PYTHON']:
|
2009-04-20 15:06:46 +00:00
|
|
|
incs += ' ../blender/python'
|
|
|
|
if env['BF_DEBUG']:
|
|
|
|
defs.append('_DEBUG')
|
2008-11-11 14:14:22 +00:00
|
|
|
else:
|
2009-04-20 15:06:46 +00:00
|
|
|
defs.append('DISABLE_PYTHON')
|
2004-02-24 20:03:27 +00:00
|
|
|
|
2009-09-21 03:16:26 +00:00
|
|
|
if env['WITH_BF_FHS']: # /usr -> /usr/share/blender/2.5
|
|
|
|
defs.append('BLENDERPATH=\\"' + os.path.join(env['BF_INSTALLDIR'], 'share', 'blender', env['BF_VERSION']) + '\\"')
|
|
|
|
|
2009-10-19 16:29:26 +00:00
|
|
|
if env['BF_BUILDINFO']:
|
|
|
|
defs.append('BUILD_DATE')
|
2010-01-10 16:29:53 +00:00
|
|
|
defs.append('NAN_BUILDINFO')
|
2010-04-14 17:15:33 +00:00
|
|
|
|
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
2009-09-21 03:16:26 +00:00
|
|
|
|
2010-04-15 10:28:32 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'linuxcross', 'win64-vc'):
|
|
|
|
incs += ' ' + env['BF_PTHREADS_INC']
|
|
|
|
|
2008-01-08 09:47:44 +00:00
|
|
|
env.BlenderLib ( libname = 'bf_creator', sources = Split(sources), includes = Split(incs), defines = defs, libtype='core', priority = 0 )
|