2004-08-04 22:00:41 +00:00
|
|
|
#!/usr/bin/env python
|
2004-01-04 21:11:59 +00:00
|
|
|
import string
|
|
|
|
import os
|
2004-02-24 20:03:27 +00:00
|
|
|
import time
|
2004-01-04 21:11:59 +00:00
|
|
|
import sys
|
|
|
|
from distutils import sysconfig
|
2004-10-20 20:17:42 +00:00
|
|
|
from tools.scons.bs import *
|
2004-09-25 20:44:57 +00:00
|
|
|
|
|
|
|
bs_globals.arguments = ARGUMENTS
|
2005-03-30 12:13:02 +00:00
|
|
|
bs_globals.targets = COMMAND_LINE_TARGETS
|
|
|
|
|
|
|
|
print 'targets = ',bs_globals.targets
|
|
|
|
print 'arguments = ', bs_globals.arguments
|
2005-08-12 21:41:22 +00:00
|
|
|
print os.getcwd()
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2004-07-18 19:02:56 +00:00
|
|
|
appname = ''
|
|
|
|
playername = ''
|
2004-08-04 22:00:41 +00:00
|
|
|
config_guess = ''
|
2004-07-18 19:02:56 +00:00
|
|
|
|
2004-09-25 20:44:57 +00:00
|
|
|
bs_config.checkPyVersion()
|
2004-07-14 17:26:04 +00:00
|
|
|
|
2004-07-13 17:01:58 +00:00
|
|
|
if sys.platform != 'win32':
|
2004-09-25 20:44:57 +00:00
|
|
|
#~ sys.stdout = os.popen("tee build.log", "w")
|
|
|
|
#~ sys.stderr = sys.stdout
|
2004-08-04 22:00:41 +00:00
|
|
|
# guess at the platform, used to maintain the tarball naming scheme
|
|
|
|
config_guess = os.popen("SRCHOME=source/ source/tools/guess/guessconfig").read()[:-1]
|
|
|
|
else:
|
|
|
|
config_guess = "windows"
|
2005-08-12 21:41:22 +00:00
|
|
|
|
|
|
|
#the above check is not enough for darwin. we way want to build for darwin/X11
|
|
|
|
#more, now even for Os X, we need to check and take in account arch
|
|
|
|
#(PPC, x86, universal binaries)
|
2004-07-18 19:02:56 +00:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
appname = 'blender'
|
|
|
|
playername = 'blenderplayer'
|
|
|
|
else:
|
|
|
|
appname = 'blender$PROGSUFFIX'
|
|
|
|
playername = 'blenderplayer$PROGSUFFIX'
|
2004-07-13 17:01:58 +00:00
|
|
|
|
2004-02-07 20:44:43 +00:00
|
|
|
# Build directory.
|
2004-09-25 20:44:57 +00:00
|
|
|
# root_build_dir = '..' + os.sep + 'build' + os.sep + sys.platform + os.sep
|
|
|
|
|
|
|
|
bs_config.parseOpts()
|
2004-03-09 20:02:38 +00:00
|
|
|
|
2004-04-04 13:57:28 +00:00
|
|
|
# Create the build directory. SCons does this automatically, but since we
|
|
|
|
# don't want to put scons-generated .sconsign files in the source tree, but in
|
|
|
|
# the root_build_dir, we have to create that dir ourselves before SCons tries
|
|
|
|
# to access/create the file containing .sconsign data.
|
2005-08-12 21:41:22 +00:00
|
|
|
# we need to create the top level hierarchy too (at least on Os X)
|
2004-09-25 20:44:57 +00:00
|
|
|
if os.path.isdir (bs_globals.root_build_dir) == 0:
|
2004-09-26 10:56:38 +00:00
|
|
|
os.makedirs (bs_globals.root_build_dir)
|
2005-08-12 21:41:22 +00:00
|
|
|
os.makedirs (bs_globals.root_build_dir+os.sep+'extern')
|
|
|
|
os.makedirs (bs_globals.root_build_dir+os.sep+'intern')
|
|
|
|
os.makedirs (bs_globals.root_build_dir+os.sep+'source')
|
2004-04-04 13:57:28 +00:00
|
|
|
|
2004-02-07 20:44:43 +00:00
|
|
|
# Blender version.
|
2005-10-11 14:04:57 +00:00
|
|
|
version='2.40-alpha1'
|
|
|
|
shortversion = '240alpha1' # for wininst target -> nsis installer creation
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2005-05-06 13:37:18 +00:00
|
|
|
sdl_env = Environment (ENV = os.environ)
|
|
|
|
freetype_env = Environment (ENV = os.environ)
|
|
|
|
env = Environment (ENV = os.environ)
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2004-03-07 20:27:27 +00:00
|
|
|
if sys.platform == 'linux2' or sys.platform == 'linux-i386':
|
2005-05-06 13:37:18 +00:00
|
|
|
use_international = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_gameengine = 'true'
|
|
|
|
use_openal = 'false'
|
|
|
|
use_fmod = 'false'
|
|
|
|
use_quicktime = 'false'
|
2006-01-09 02:18:11 +00:00
|
|
|
use_openexr = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_sumo = 'true'
|
|
|
|
use_ode = 'false'
|
2005-10-23 17:55:19 +00:00
|
|
|
use_bullet = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_buildinfo = 'true'
|
2005-10-12 11:55:56 +00:00
|
|
|
use_fluidsim = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
build_blender_dynamic = 'true'
|
|
|
|
build_blender_static = 'false'
|
2006-01-09 02:18:11 +00:00
|
|
|
build_blender_player = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
build_blender_plugin = 'false'
|
|
|
|
release_flags = ['-O2']
|
|
|
|
debug_flags = ['-O2', '-g']
|
|
|
|
extra_flags = ['-pipe', '-funsigned-char']
|
|
|
|
cxxflags = []
|
|
|
|
defines = []
|
|
|
|
warn_flags = ['-Wall', '-W']
|
|
|
|
window_system = 'X11'
|
|
|
|
platform_libs = ['m', 'util', 'stdc++']
|
|
|
|
platform_libpath = []
|
|
|
|
platform_linkflags = ['-pthread']
|
|
|
|
extra_includes = []
|
|
|
|
# z library information
|
|
|
|
z_lib = ['z']
|
|
|
|
z_libpath = ['/usr/lib']
|
|
|
|
z_include = ['/usr/include']
|
|
|
|
# png library information
|
|
|
|
png_lib = ['png']
|
|
|
|
png_libpath = ['/usr/lib']
|
|
|
|
png_include = ['/usr/include']
|
2006-01-09 02:18:11 +00:00
|
|
|
# OpenEXR library information
|
|
|
|
if use_openexr == 'true':
|
|
|
|
defines += ['WITH_OPENEXR']
|
|
|
|
openexr_lib = ['Iex', 'Half', 'IlmImf', 'Imath']
|
|
|
|
openexr_libpath = ['/usr/lib']
|
|
|
|
openexr_include = ['/usr/include/OpenEXR']
|
2004-09-26 10:56:38 +00:00
|
|
|
# jpeg library information
|
|
|
|
jpeg_lib = ['jpeg']
|
|
|
|
jpeg_libpath = ['/usr/lib']
|
|
|
|
jpeg_include = ['/usr/include']
|
2005-11-23 14:28:40 +00:00
|
|
|
#tiff library information
|
2005-11-23 14:31:47 +00:00
|
|
|
tiff_lib = ['tiff']
|
2005-11-23 14:28:40 +00:00
|
|
|
tiff_libpath = ['/usr/lib']
|
|
|
|
tiff_include = ['/usr/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
# OpenGL library information
|
|
|
|
opengl_lib = ['GL', 'GLU']
|
|
|
|
opengl_static = ['/usr/lib/libGL.a', '/usr/lib/libGLU.a']
|
|
|
|
opengl_libpath = ['/usr/lib', '/usr/X11R6/lib']
|
2005-02-15 13:06:08 +00:00
|
|
|
opengl_include = ['/usr/include', '/usr/X11R6/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
# SDL library information
|
|
|
|
sdl_env.ParseConfig ('sdl-config --cflags --libs')
|
|
|
|
sdl_cflags = sdl_env.Dictionary()['CCFLAGS']
|
|
|
|
sdl_include = sdl_env.Dictionary()['CPPPATH']
|
|
|
|
sdl_libpath = sdl_env.Dictionary()['LIBPATH']
|
|
|
|
sdl_lib = sdl_env.Dictionary()['LIBS']
|
|
|
|
# SOLID library information
|
2005-05-06 13:37:18 +00:00
|
|
|
solid_lib = []
|
|
|
|
solid_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
solid_include = ['#extern/solid']
|
2005-05-06 13:37:18 +00:00
|
|
|
qhull_lib = []
|
|
|
|
qhull_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
qhull_include = ['#extern/qhull/include']
|
2005-08-02 12:40:52 +00:00
|
|
|
# Bullet library information
|
|
|
|
bullet_lib = []
|
|
|
|
bullet_libpath = []
|
|
|
|
bullet_include = ['#extern/bullet','#extern/bullet/LinearMath','#extern/bullet/Bullet','#extern/bullet/BulletDynamics']
|
2004-09-26 10:56:38 +00:00
|
|
|
# ODE library information
|
|
|
|
ode_lib = ['ode']
|
|
|
|
ode_libpath = ['#../lib/linux-glibc2.2.5-i386/ode/lib']
|
|
|
|
ode_include = ['#../lib/linux-glibc2.2.5-i386/ode/include']
|
|
|
|
# Python library information
|
|
|
|
python_lib = ['python%d.%d' % sys.version_info[0:2]]
|
|
|
|
python_libpath = [sysconfig.get_python_lib (0, 1) + '/config']
|
|
|
|
python_include = [sysconfig.get_python_inc ()]
|
|
|
|
python_linkflags = Split (sysconfig.get_config_var('LINKFORSHARED'))
|
|
|
|
# International support information
|
2005-05-06 13:37:18 +00:00
|
|
|
ftgl_lib = []
|
|
|
|
ftgl_libpath = []
|
|
|
|
ftgl_include = ['#extern/bFTGL/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
freetype_env.ParseConfig ('pkg-config --cflags --libs freetype2 2>/dev/null || freetype-config --cflags --libs 2>/dev/null')
|
|
|
|
freetype_lib = freetype_env.Dictionary()['LIBS']
|
|
|
|
freetype_libpath = freetype_env.Dictionary()['LIBPATH']
|
|
|
|
freetype_include = freetype_env.Dictionary()['CPPPATH']
|
|
|
|
gettext_lib = []
|
|
|
|
gettext_libpath = []
|
|
|
|
gettext_include = []
|
|
|
|
# OpenAL library information
|
|
|
|
openal_lib = ['openal']
|
|
|
|
openal_libpath = ['/usr/lib']
|
|
|
|
openal_include = ['/usr/include']
|
2004-01-04 21:11:59 +00:00
|
|
|
|
|
|
|
elif sys.platform == 'darwin':
|
2004-09-26 10:56:38 +00:00
|
|
|
use_international = 'true'
|
2006-01-09 02:18:11 +00:00
|
|
|
use_gameengine = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_openal = 'true'
|
|
|
|
use_fmod = 'false'
|
2005-03-14 14:56:40 +00:00
|
|
|
use_openal = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_quicktime = 'true'
|
2006-01-09 02:18:11 +00:00
|
|
|
use_openexr = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_precomp = 'true'
|
|
|
|
use_sumo = 'true'
|
|
|
|
use_ode = 'false'
|
2005-10-23 17:55:19 +00:00
|
|
|
use_bullet = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_buildinfo = 'true'
|
2005-10-12 11:55:56 +00:00
|
|
|
use_fluidsim = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
build_blender_dynamic = 'true'
|
|
|
|
build_blender_static = 'false'
|
2006-01-09 02:18:11 +00:00
|
|
|
build_blender_player = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
build_blender_plugin = 'false'
|
|
|
|
# TODO: replace darwin-6.1-powerpc with the actual directiory on the
|
|
|
|
# build machine
|
|
|
|
# darwin-6.1 is the name of cvs precomp folder
|
|
|
|
# a symbolic link named darwin-X.Y-powerpc must be manually done
|
|
|
|
#for now. X-Y is darwin kernel rev number
|
|
|
|
darwin_precomp = '#../lib/darwin-6.1-powerpc/'
|
|
|
|
fink_path = '/sw/'
|
|
|
|
# TODO : try -mpowerpc -mpowerpc-gopt -mpowerpc-gfxopt optims
|
|
|
|
# doing actual profiling
|
2005-03-30 12:13:02 +00:00
|
|
|
extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-ffast-math', '-mpowerpc', '-mtune=G4']
|
2004-09-26 10:56:38 +00:00
|
|
|
|
|
|
|
# , '-malign-natural'] malign is causing problems with jpeg lib but worth a 1-2% speedup
|
|
|
|
#'-force_cpusubtype_ALL', '-mpowerpc-gpopt',
|
|
|
|
cxxflags = []
|
|
|
|
defines = ['_THREAD_SAFE' ]
|
|
|
|
if use_quicktime == 'true':
|
|
|
|
defines += ['WITH_QUICKTIME']
|
|
|
|
warn_flags = ['-Wall'] # , '-W'
|
2004-11-14 14:38:03 +00:00
|
|
|
release_flags = ['-O2']
|
2004-09-26 10:56:38 +00:00
|
|
|
debug_flags = ['-g']
|
|
|
|
window_system = 'CARBON'
|
|
|
|
# z library information
|
|
|
|
z_lib = ['z']
|
|
|
|
z_libpath = []
|
|
|
|
z_include = []
|
|
|
|
# TODO : add a flag to allow each lib to be build from fink or precomp
|
|
|
|
# without having to have to specify the path manually in config.opts.
|
|
|
|
# png library information
|
|
|
|
png_lib = ['libpng']
|
|
|
|
png_libpath = [darwin_precomp + 'png/lib']
|
|
|
|
png_include = [darwin_precomp + 'png/include']
|
2006-01-09 02:18:11 +00:00
|
|
|
# OpenEXR library information
|
|
|
|
if use_openexr == 'true':
|
|
|
|
defines += ['WITH_OPENEXR']
|
|
|
|
openexr_lib = ['Iex', 'Half', 'IlmImf', 'Imath']
|
|
|
|
openexr_libpath = ['/usr/lib']
|
|
|
|
openexr_include = ['/usr/include/OpenEXR']
|
2004-09-26 10:56:38 +00:00
|
|
|
# jpeg library information
|
|
|
|
jpeg_lib = ['libjpeg']
|
|
|
|
jpeg_libpath = [darwin_precomp + 'jpeg/lib']
|
|
|
|
jpeg_include = [darwin_precomp + 'jpeg/include']
|
2005-11-23 13:44:58 +00:00
|
|
|
# TIFF library information
|
|
|
|
tiff_lib = ['libtiff']
|
|
|
|
tiff_libpath = [darwin_precomp + 'tiff/lib']
|
|
|
|
tiff_include = [darwin_precomp + 'tiff/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
# OpenGL library information
|
|
|
|
opengl_lib = ['GL', 'GLU']
|
|
|
|
opengl_static = []
|
|
|
|
opengl_libpath = []
|
|
|
|
opengl_include = []
|
|
|
|
# SDL specific stuff.
|
2005-01-02 16:35:48 +00:00
|
|
|
#sdl_env.ParseConfig ('sdl-config --cflags --libs')
|
2004-09-26 10:56:38 +00:00
|
|
|
# Want to use precompiled libraries?
|
|
|
|
if use_precomp == 'true':
|
|
|
|
sdl_include = [darwin_precomp + 'sdl/include']
|
|
|
|
sdl_libpath = [darwin_precomp + 'sdl/lib']
|
|
|
|
sdl_lib = ['libSDL.a']
|
2005-01-02 16:35:48 +00:00
|
|
|
sdl_cflags = [ '-I' + darwin_precomp + 'sdl/include' ]
|
|
|
|
sdl_env.Append (CCFLAGS = sdl_cflags )
|
|
|
|
sdl_env.Append (CPPPATH = [darwin_precomp + 'sdl/include'] )
|
|
|
|
|
2004-09-26 10:56:38 +00:00
|
|
|
platform_libs = ['stdc++']
|
|
|
|
extra_includes = ['/sw/include']
|
|
|
|
platform_libpath = ['/System/Library/Frameworks/OpenGL.framework/Libraries']
|
|
|
|
platform_linkflags = []
|
|
|
|
# SOLID library information
|
2004-11-07 21:34:17 +00:00
|
|
|
solid_lib = []
|
|
|
|
solid_libpath = []
|
|
|
|
solid_include = ['#/extern/solid']
|
|
|
|
qhull_lib = []
|
|
|
|
qhull_libpath = []
|
|
|
|
qhull_include = ['#/extern/qhull/include']
|
2005-08-02 12:40:52 +00:00
|
|
|
# Bullet library information
|
|
|
|
bullet_lib = []
|
|
|
|
bullet_libpath = []
|
|
|
|
bullet_include = ['#extern/bullet','#extern/bullet/LinearMath','#extern/bullet/Bullet','#extern/bullet/BulletDynamics']
|
2004-09-26 10:56:38 +00:00
|
|
|
# ODE library information
|
|
|
|
ode_lib = ['libode']
|
|
|
|
ode_libpath = [darwin_precomp + 'ode/lib']
|
|
|
|
ode_include = [darwin_precomp + 'ode/include/ode']
|
|
|
|
# Python variables.
|
|
|
|
# TODO : fill vars differently if we are on 10.2 or 10.3
|
|
|
|
# python_lib = ['python%d.%d' % sys.version_info[0:2]]
|
|
|
|
# python_libpath = [sysconfig.get_python_lib (0, 1) + '/config']
|
|
|
|
# python_include = [sysconfig.get_python_inc ()]
|
|
|
|
# python_linkflags = Split (sysconfig.get_config_var('LINKFORSHARED'))
|
|
|
|
python_lib = []
|
|
|
|
python_libpath = ['/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/config']
|
|
|
|
python_include = ['/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3']
|
|
|
|
python_linkflags = ['-u', '__dummy', '-u', '_PyMac_Error',
|
|
|
|
'-framework', 'System',
|
|
|
|
'-framework', 'Python',
|
|
|
|
'-framework', 'CoreServices',
|
|
|
|
'-framework', 'Foundation',
|
2005-02-02 22:13:23 +00:00
|
|
|
'-framework', 'OpenGL',
|
|
|
|
'-framework', 'IOKit' ,
|
|
|
|
'-framework', 'AppKit']
|
2004-09-26 10:56:38 +00:00
|
|
|
# International stuff
|
2005-08-04 16:05:28 +00:00
|
|
|
ftgl_lib = ['libftgl']
|
|
|
|
ftgl_libpath = [darwin_precomp + 'ftgl/lib']
|
2005-05-06 13:37:18 +00:00
|
|
|
ftgl_include = ['#extern/bFTGL/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
freetype_lib = ['libfreetype']
|
|
|
|
freetype_libpath = [darwin_precomp + 'freetype/lib']
|
|
|
|
freetype_include = [darwin_precomp + 'freetype/include']
|
|
|
|
gettext_lib = ['libintl']
|
|
|
|
gettext_libpath = [darwin_precomp + 'gettext/lib']
|
|
|
|
gettext_include = [darwin_precomp + 'gettext/include']
|
|
|
|
# OpenAL library information
|
|
|
|
openal_lib = ['libopenal']
|
|
|
|
openal_libpath = [darwin_precomp + 'openal/lib']
|
|
|
|
openal_include = [darwin_precomp + 'openal/include']
|
2004-01-04 21:11:59 +00:00
|
|
|
|
|
|
|
elif sys.platform == 'cygwin':
|
2004-09-26 10:56:38 +00:00
|
|
|
use_international = 'false'
|
|
|
|
use_gameengine = 'false'
|
|
|
|
use_openal = 'false'
|
|
|
|
use_fmod = 'false'
|
|
|
|
use_quicktime = 'false'
|
2006-01-09 02:18:11 +00:00
|
|
|
use_openexr = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_sumo = 'false'
|
|
|
|
use_ode = 'false'
|
2005-08-02 12:40:52 +00:00
|
|
|
use_bullet = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_buildinfo = 'false'
|
2005-10-12 11:55:56 +00:00
|
|
|
use_fluidsim = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
build_blender_dynamic = 'true'
|
|
|
|
build_blender_static = 'false'
|
|
|
|
build_blender_player = 'false'
|
|
|
|
build_blender_plugin = 'false'
|
|
|
|
release_flags = ['-O2']
|
|
|
|
debug_flags = ['-O2', '-g']
|
|
|
|
extra_flags = ['-pipe', '-mno-cygwin', '-mwindows', '-funsigned-char']
|
|
|
|
cxxflags = []
|
|
|
|
defines = ['FREE_WINDOWS']
|
|
|
|
warn_flags = ['-Wall', '-Wno-char-subscripts']
|
|
|
|
platform_libs = ['png', 'jpeg', 'netapi32',
|
|
|
|
'opengl32', 'glu32', 'winmm',
|
|
|
|
'mingw32']
|
|
|
|
platform_libpath = ['/usr/lib/w32api', '/lib/w32api']
|
|
|
|
platform_linkflags = ['-mwindows', '-mno-cygwin', '-mconsole']
|
|
|
|
window_system = 'WIN32'
|
|
|
|
extra_includes = []
|
|
|
|
# z library information
|
|
|
|
z_lib = ['z']
|
|
|
|
z_libpath = ['#../lib/windows/zlib/lib']
|
|
|
|
z_include = ['#../lib/windows/zlib/include']
|
|
|
|
# png library information
|
|
|
|
png_lib = ['png']
|
|
|
|
png_libpath = ['#../lib/windows/png/lib']
|
|
|
|
png_include = ['#../lib/windows/png/include']
|
2006-01-09 02:18:11 +00:00
|
|
|
# OpenEXR library information
|
|
|
|
if use_openexr == 'true':
|
|
|
|
defines += ['WITH_OPENEXR']
|
|
|
|
openexr_lib = ['Iex', 'Half', 'IlmImf', 'Imath']
|
|
|
|
openexr_libpath = ['/usr/lib']
|
|
|
|
openexr_include = ['/usr/include/OpenEXR']
|
2004-09-26 10:56:38 +00:00
|
|
|
# jpeg library information
|
|
|
|
jpeg_lib = ['jpeg']
|
|
|
|
jpeg_libpath = ['#../lib/windows/jpeg/lib']
|
|
|
|
jpeg_include = ['#../lib/windows/jpeg/include']
|
|
|
|
# OpenGL library information
|
|
|
|
opengl_lib = ['opengl32', 'glu32']
|
|
|
|
opengl_static = []
|
|
|
|
opengl_libpath = []
|
|
|
|
opengl_include = []
|
|
|
|
# SDL specific stuff.
|
|
|
|
sdl_include = ['#../lib/windows/sdl/include']
|
|
|
|
sdl_libpath = ['#../lib/windows/sdl/lib']
|
|
|
|
sdl_lib = ['SDL']
|
|
|
|
sdl_cflags = []
|
|
|
|
#sdl_cflags = '-DWIN32'
|
|
|
|
# SOLID library information
|
2005-05-06 13:37:18 +00:00
|
|
|
solid_lib = []
|
|
|
|
solid_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
solid_include = ['#extern/solid']
|
2005-05-06 13:37:18 +00:00
|
|
|
qhull_lib = []
|
|
|
|
qhull_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
qhull_include = ['#extern/qhull/include']
|
2005-08-02 12:40:52 +00:00
|
|
|
# Bullet library information
|
|
|
|
bullet_lib = []
|
|
|
|
bullet_libpath = []
|
|
|
|
bullet_include = ['#extern/bullet','#extern/bullet/LinearMath','#extern/bullet/Bullet','#extern/bullet/BulletDynamics']
|
2004-09-26 10:56:38 +00:00
|
|
|
# ODE library information
|
|
|
|
ode_lib = ['ode']
|
|
|
|
ode_libpath = ['#../lib/windows/gcc/ode/lib']
|
|
|
|
ode_include = ['#../lib/windows/gcc/ode/include']
|
|
|
|
# Python library information
|
|
|
|
python_include = ['#../lib/windows/python/include/python2.2']
|
|
|
|
python_libpath = ['#../lib/windows/python/lib']
|
|
|
|
python_lib = ['python22']
|
|
|
|
python_linkflags = []
|
|
|
|
# International stuff
|
2005-05-06 13:37:18 +00:00
|
|
|
ftgl_lib = []
|
|
|
|
ftgl_libpath = []
|
|
|
|
ftgl_include = ['#extern/bFTGL/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
freetype_lib = ['freetype']
|
|
|
|
freetype_libpath = ['#../lib/windows/gcc/freetype/lib']
|
|
|
|
freetype_include = ['#../lib/windows/gcc/freetype/include']
|
|
|
|
gettext_lib = []
|
|
|
|
gettext_libpath = []
|
|
|
|
gettext_include = []
|
|
|
|
# OpenAL library information
|
|
|
|
openal_lib = []
|
|
|
|
openal_libpath = []
|
|
|
|
openal_include = []
|
2004-01-04 21:11:59 +00:00
|
|
|
|
|
|
|
elif sys.platform == 'win32':
|
2004-09-26 10:56:38 +00:00
|
|
|
use_international = 'true'
|
|
|
|
use_gameengine = 'true'
|
|
|
|
use_openal = 'true'
|
|
|
|
use_fmod = 'false'
|
|
|
|
use_quicktime = 'true'
|
2006-01-09 02:18:11 +00:00
|
|
|
use_openexr = 'false'
|
2005-10-28 04:48:01 +00:00
|
|
|
use_bullet = 'true'
|
2005-08-02 18:54:11 +00:00
|
|
|
use_sumo = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_ode = 'false'
|
|
|
|
use_buildinfo = 'true'
|
2005-10-12 11:55:56 +00:00
|
|
|
use_fluidsim = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
build_blender_dynamic = 'true'
|
|
|
|
build_blender_static = 'false'
|
|
|
|
build_blender_player = 'true'
|
|
|
|
build_blender_plugin = 'false'
|
|
|
|
release_flags = ['/Og', '/Ot', '/Ob1', '/Op', '/G6']
|
|
|
|
debug_flags = ['/Zi', '/Fr${TARGET.base}.sbr']
|
|
|
|
extra_flags = ['/EHsc', '/J', '/W3', '/Gd', '/MT']
|
|
|
|
cxxflags = []
|
|
|
|
defines = ['WIN32', '_CONSOLE']
|
2005-10-28 04:48:01 +00:00
|
|
|
if use_quicktime == 'true':
|
|
|
|
defines += ['WITH_QUICKTIME']
|
2004-09-26 10:56:38 +00:00
|
|
|
defines += ['_LIB', 'USE_OPENAL']
|
|
|
|
defines += ['FTGL_LIBRARY_STATIC']
|
|
|
|
warn_flags = []
|
|
|
|
platform_libs = [ 'qtmlClient', 'soundsystem',
|
|
|
|
'ws2_32', 'dxguid', 'vfw32', 'winmm',
|
|
|
|
'iconv', 'kernel32', 'user32', 'gdi32',
|
2006-01-09 02:18:11 +00:00
|
|
|
'comdlg32', 'advapi32', 'shell32',
|
2005-10-08 22:40:58 +00:00
|
|
|
'ole32', 'oleaut32', 'uuid',
|
2004-09-26 10:56:38 +00:00
|
|
|
'libcmt', 'libc']
|
|
|
|
platform_libpath = ['#../lib/windows/iconv/lib',
|
|
|
|
'#../lib/windows/QTDevWin/Libraries']
|
|
|
|
platform_linkflags = [
|
|
|
|
'/SUBSYSTEM:CONSOLE',
|
|
|
|
'/MACHINE:IX86',
|
|
|
|
'/ENTRY:mainCRTStartup',
|
|
|
|
'/INCREMENTAL:NO',
|
|
|
|
'/NODEFAULTLIB:"msvcprt.lib"',
|
|
|
|
'/NODEFAULTLIB:"glut32.lib"',
|
|
|
|
'/NODEFAULTLIB:"libcd.lib"',
|
|
|
|
#'/NODEFAULTLIB:"libc.lib"',
|
|
|
|
'/NODEFAULTLIB:"libcpd.lib"',
|
|
|
|
'/NODEFAULTLIB:"libcp.lib"',
|
|
|
|
'/NODEFAULTLIB:"libcmtd.lib"',
|
|
|
|
]
|
|
|
|
window_system = 'WIN32'
|
|
|
|
extra_includes = []
|
|
|
|
if use_quicktime == 'true':
|
|
|
|
extra_includes += ['#../lib/windows/QTDevWin/CIncludes']
|
|
|
|
# z library information
|
2005-07-28 18:50:39 +00:00
|
|
|
z_lib = ['zlib']
|
2004-09-26 10:56:38 +00:00
|
|
|
z_libpath = ['#../lib/windows/zlib/lib']
|
|
|
|
z_include = ['#../lib/windows/zlib/include']
|
|
|
|
# png library information
|
|
|
|
png_lib = ['libpng_st']
|
|
|
|
png_libpath = ['#../lib/windows/png/lib']
|
|
|
|
png_include = ['#../lib/windows/png/include']
|
2006-01-09 02:18:11 +00:00
|
|
|
# OpenEXR library information
|
|
|
|
if use_openexr == 'true':
|
|
|
|
defines += ['WITH_OPENEXR']
|
|
|
|
openexr_lib = ['Iex', 'Half', 'IlmImf', 'Imath']
|
|
|
|
openexr_libpath = ['/usr/lib']
|
|
|
|
openexr_include = ['/usr/include/OpenEXR']
|
2004-09-26 10:56:38 +00:00
|
|
|
# jpeg library information
|
|
|
|
jpeg_lib = ['libjpeg']
|
|
|
|
jpeg_libpath = ['#../lib/windows/jpeg/lib']
|
|
|
|
jpeg_include = ['#../lib/windows/jpeg/include']
|
2005-11-23 14:53:51 +00:00
|
|
|
# Tiff Library information
|
|
|
|
tiff_lib = ['libtiff']
|
|
|
|
tiff_libpath = ['#../lib/windows/tiff/lib']
|
|
|
|
tiff_include = ['#../lib/windows/tiff/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
# OpenGL library information
|
|
|
|
opengl_lib = ['opengl32', 'glu32']
|
|
|
|
opengl_static = []
|
|
|
|
opengl_libpath = []
|
|
|
|
opengl_include = ['/usr/include']
|
|
|
|
# SDL library information
|
|
|
|
sdl_include = ['#../lib/windows/sdl/include']
|
|
|
|
sdl_libpath = ['#../lib/windows/sdl/lib']
|
|
|
|
sdl_lib = ['SDL']
|
|
|
|
sdl_cflags = []
|
|
|
|
window_system = 'WIN32'
|
|
|
|
# SOLID library information
|
|
|
|
solid_lib = ['extern/solid']
|
|
|
|
solid_libpath = ['#../lib/windows/solid/lib']
|
|
|
|
solid_include = ['#extern/solid']
|
|
|
|
qhull_lib = ['qhull']
|
|
|
|
qhull_libpath = ['#../lib/windows/qhull/lib']
|
|
|
|
qhull_include = ['#extern/qhull/include']
|
2005-08-01 21:19:41 +00:00
|
|
|
# Bullet library information
|
|
|
|
bullet_lib = []
|
|
|
|
bullet_libpath = []
|
|
|
|
bullet_include = ['#extern/bullet','#extern/bullet/LinearMath','#extern/bullet/Bullet','#extern/bullet/BulletDynamics']
|
2004-09-26 10:56:38 +00:00
|
|
|
# ODE library information
|
|
|
|
ode_lib = [] # TODO
|
|
|
|
ode_libpath = ['#../lib/windows/ode/lib']
|
|
|
|
ode_include = ['#../lib/windows/ode/include']
|
|
|
|
# Python lib name
|
2005-10-28 04:48:01 +00:00
|
|
|
python_include = ['#../lib/windows/python/include/python2.4']
|
2004-09-26 10:56:38 +00:00
|
|
|
python_libpath = ['#../lib/windows/python/lib']
|
2005-10-28 04:48:01 +00:00
|
|
|
python_lib = ['python24']
|
2004-09-26 10:56:38 +00:00
|
|
|
python_linkflags = []
|
|
|
|
# International stuff
|
2005-05-06 13:37:18 +00:00
|
|
|
ftgl_lib = []
|
|
|
|
ftgl_libpath = []
|
|
|
|
ftgl_include = ['#extern/bFTGL/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
freetype_lib = ['freetype2ST']
|
|
|
|
freetype_libpath = ['#../lib/windows/freetype/lib']
|
|
|
|
freetype_include = ['#../lib/windows/freetype/include']
|
|
|
|
gettext_lib = ['gnu_gettext']
|
|
|
|
gettext_libpath = ['#../lib/windows/gettext/lib']
|
|
|
|
gettext_include = ['#../lib/windows/gettext/include']
|
|
|
|
# OpenAL library information
|
|
|
|
openal_lib = ['openal_static']
|
|
|
|
openal_libpath = ['#../lib/windows/openal/lib']
|
|
|
|
openal_include = ['#../lib/windows/openal/include']
|
2004-01-04 21:11:59 +00:00
|
|
|
|
|
|
|
elif string.find (sys.platform, 'sunos') != -1:
|
2004-09-26 10:56:38 +00:00
|
|
|
use_international = 'true'
|
|
|
|
use_gameengine = 'false'
|
|
|
|
use_openal = 'false'
|
|
|
|
use_fmod = 'false'
|
|
|
|
use_quicktime = 'false'
|
2006-01-09 02:18:11 +00:00
|
|
|
use_openexr = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_sumo = 'false'
|
|
|
|
use_ode = 'false'
|
2005-08-02 12:40:52 +00:00
|
|
|
use_bullet = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_buildinfo = 'false'
|
2005-10-12 11:55:56 +00:00
|
|
|
use_fluidsim = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
build_blender_dynamic = 'true'
|
|
|
|
build_blender_static = 'false'
|
|
|
|
build_blender_player = 'false'
|
|
|
|
build_blender_plugin = 'false'
|
|
|
|
release_flags = ['-O2']
|
|
|
|
debug_flags = ['-O2', '-g']
|
|
|
|
extra_flags = ['-pipe', '-fPIC', '-funsigned-char', '-DSUN_OGL_NO_VERTEX_MACROS']
|
|
|
|
cxxflags = []
|
|
|
|
defines = []
|
|
|
|
warn_flags = ['-Wall', '-W']
|
|
|
|
window_system = 'X11'
|
|
|
|
platform_libs = ['stdc++', 'dl', 'm']
|
|
|
|
platform_libpath = []
|
|
|
|
platform_linkflags = []
|
|
|
|
extra_includes = []
|
|
|
|
# z library information
|
|
|
|
z_lib = ['z']
|
|
|
|
z_libpath = []
|
|
|
|
z_include = []
|
|
|
|
# png library information
|
|
|
|
png_lib = ['png']
|
|
|
|
png_libpath = []
|
|
|
|
png_include = []
|
2006-01-09 02:18:11 +00:00
|
|
|
# OpenEXR library information
|
|
|
|
if use_openexr == 'true':
|
|
|
|
defines += ['WITH_OPENEXR']
|
|
|
|
openexr_lib = ['Iex', 'Half', 'IlmImf', 'Imath']
|
|
|
|
openexr_libpath = ['/usr/lib']
|
|
|
|
openexr_include = ['/usr/include/OpenEXR']
|
2004-09-26 10:56:38 +00:00
|
|
|
# jpeg library information
|
|
|
|
jpeg_lib = ['jpeg']
|
|
|
|
jpeg_libpath = []
|
|
|
|
jpeg_include = []
|
|
|
|
# OpenGL library information
|
|
|
|
opengl_lib = ['GL', 'GLU', 'X11']
|
|
|
|
opengl_static = []
|
|
|
|
opengl_libpath = ['/usr/openwin/include']
|
|
|
|
opengl_include = ['/usr/openwin/lib']
|
|
|
|
# SDL library information
|
|
|
|
sdl_env.ParseConfig ('sdl-config --cflags --libs')
|
|
|
|
sdl_cflags = sdl_env.Dictionary()['CCFLAGS']
|
|
|
|
sdl_include = sdl_env.Dictionary()['CPPPATH']
|
|
|
|
sdl_libpath = sdl_env.Dictionary()['LIBPATH']
|
|
|
|
sdl_lib = sdl_env.Dictionary()['LIBS']
|
|
|
|
# SOLID library information
|
2005-05-06 13:37:18 +00:00
|
|
|
solid_lib = []
|
|
|
|
solid_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
solid_include = ['#extern/solid']
|
2005-05-06 13:37:18 +00:00
|
|
|
qhull_lib = []
|
|
|
|
qhull_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
qhull_include = ['#extern/qhull/include']
|
|
|
|
# ODE library information
|
2005-05-06 13:37:18 +00:00
|
|
|
ode_lib = []
|
|
|
|
ode_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
ode_include = ['#extern/ode/dist/include/ode']
|
2005-08-02 12:40:52 +00:00
|
|
|
# Bullet library information
|
|
|
|
bullet_lib = []
|
|
|
|
bullet_libpath = []
|
|
|
|
bullet_include = ['#extern/bullet','#extern/bullet/LinearMath','#extern/bullet/Bullet','#extern/bullet/BulletDynamics']
|
2004-09-26 10:56:38 +00:00
|
|
|
# Python variables.
|
|
|
|
python_lib = ['python%d.%d' % sys.version_info[0:2]]
|
|
|
|
python_libpath = [sysconfig.get_python_lib (0, 1) + '/config']
|
|
|
|
python_include = [sysconfig.get_python_inc ()]
|
|
|
|
python_linkflags = []
|
|
|
|
# International support information
|
2005-05-06 13:37:18 +00:00
|
|
|
ftgl_lib = []
|
|
|
|
ftgl_libpath = []
|
|
|
|
ftgl_include = ['#extern/bFTGL/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
freetype_lib = ['freetype']
|
|
|
|
freetype_libpath = ['#../lib/solaris-2.8-sparc/freetype/lib']
|
|
|
|
freetype_include = ['#../lib/solaris-2.8-sparc/freetype/include']
|
|
|
|
gettext_lib = []
|
|
|
|
gettext_libpath = []
|
|
|
|
gettext_include = []
|
|
|
|
# OpenAL library information
|
|
|
|
openal_lib = []
|
|
|
|
openal_libpath = []
|
|
|
|
openal_include = []
|
2004-01-04 21:11:59 +00:00
|
|
|
|
|
|
|
elif string.find (sys.platform, 'irix') != -1:
|
2004-09-26 10:56:38 +00:00
|
|
|
use_international = 'false'
|
|
|
|
use_gameengine = 'false'
|
|
|
|
use_openal = 'false'
|
|
|
|
use_fmod = 'false'
|
|
|
|
use_quicktime = 'false'
|
2006-01-09 02:18:11 +00:00
|
|
|
use_openexr = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_sumo = 'false'
|
|
|
|
use_ode = 'false'
|
2005-08-02 12:40:52 +00:00
|
|
|
use_bullet = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_buildinfo = 'false'
|
2005-10-12 11:55:56 +00:00
|
|
|
use_fluidsim = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
build_blender_dynamic = 'true'
|
|
|
|
build_blender_static = 'false'
|
|
|
|
build_blender_player = 'false'
|
|
|
|
build_blender_plugin = 'false'
|
|
|
|
irix_precomp = '#../lib/irix-6.5-mips'
|
|
|
|
extra_flags = ['-n32', '-mips3', '-Xcpluscomm']
|
|
|
|
cxxflags = ['-n32', '-mips3', '-Xcpluscomm', '-LANG:std']
|
|
|
|
cxxflags += ['-LANG:libc_in_namespace_std=off']
|
|
|
|
|
|
|
|
window_system = 'X11'
|
|
|
|
release_flags = ['-O2', '-OPT:Olimit=0']
|
|
|
|
debug_flags = ['-O2', '-g']
|
|
|
|
defines = []
|
|
|
|
warn_flags = ['-fullwarn', '-woff', '1001,1110,1201,1209,1355,1424,1681,3201']
|
|
|
|
platform_libs = ['movieGL', 'Xmu', 'Xext', 'X11',
|
|
|
|
'c', 'm', 'dmedia', 'cl', 'audio',
|
|
|
|
'Cio', 'pthread']
|
|
|
|
platform_libpath = ['/usr/lib32/mips3',
|
|
|
|
'/lib/freeware/lib32',
|
|
|
|
'/usr/lib32']
|
|
|
|
platform_linkflags = ['-mips3', '-n32']
|
|
|
|
extra_includes = ['/usr/freeware/include',
|
|
|
|
'/usr/include']
|
|
|
|
# z library information
|
|
|
|
z_lib = ['z']
|
|
|
|
z_libpath = []
|
|
|
|
z_include = []
|
|
|
|
# png library information
|
|
|
|
png_lib = ['png']
|
|
|
|
png_libpath = [irix_precomp + '/png/lib']
|
|
|
|
png_include = [irix_precomp + '/png/include']
|
2006-01-09 02:18:11 +00:00
|
|
|
# OpenEXR library information
|
|
|
|
if use_openexr == 'true':
|
|
|
|
defines += ['WITH_OPENEXR']
|
|
|
|
openexr_lib = ['Iex', 'Half', 'IlmImf', 'Imath']
|
|
|
|
openexr_libpath = ['/usr/lib']
|
|
|
|
openexr_include = ['/usr/include/OpenEXR']
|
2004-09-26 10:56:38 +00:00
|
|
|
# jpeg library information
|
|
|
|
jpeg_lib = ['jpeg']
|
|
|
|
jpeg_libpath = [irix_precomp + '/jpeg/lib']
|
|
|
|
jpeg_include = [irix_precomp + '/jpeg/include']
|
|
|
|
# OpenGL library information
|
|
|
|
opengl_lib = ['GL', 'GLU']
|
|
|
|
opengl_static = []
|
|
|
|
opengl_libpath = []
|
|
|
|
opengl_include = []
|
|
|
|
# SDL library information
|
|
|
|
sdl_cflags = []
|
|
|
|
sdl_include = [irix_precomp + '/sdl/include/SDL']
|
|
|
|
sdl_libpath = [irix_precomp + '/sdl/lib']
|
|
|
|
sdl_lib = ['SDL', 'libSDL.a']
|
|
|
|
# SOLID library information
|
2005-05-06 13:37:18 +00:00
|
|
|
solid_lib = []
|
|
|
|
solid_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
solid_include = [irix_precomp + '/solid/include']
|
2005-05-06 13:37:18 +00:00
|
|
|
qhull_lib = []
|
|
|
|
qhull_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
qhull_include = ['#extern/qhull/include']
|
2005-08-02 12:40:52 +00:00
|
|
|
# Bullet library information
|
|
|
|
bullet_lib = []
|
|
|
|
bullet_libpath = []
|
|
|
|
bullet_include = ['#extern/bullet','#extern/bullet/LinearMath','#extern/bullet/Bullet','#extern/bullet/BulletDynamics']
|
2004-09-26 10:56:38 +00:00
|
|
|
# ODE library information
|
2005-05-06 13:37:18 +00:00
|
|
|
ode_lib = []
|
|
|
|
ode_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
ode_include = [irix_precomp + '/ode/include']
|
|
|
|
# Python library information
|
|
|
|
python_libpath = [irix_precomp + '/python/lib/python2.2/config']
|
|
|
|
python_include = [irix_precomp + '/python/include/python2.2']
|
|
|
|
python_lib = ['python2.2']
|
|
|
|
python_linkflags = []
|
|
|
|
# International support information
|
2005-05-06 13:37:18 +00:00
|
|
|
ftgl_lib = []
|
|
|
|
ftgl_libpath = []
|
|
|
|
ftgl_include = ['#extern/bFTGL/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
freetype_lib = ['freetype']
|
|
|
|
freetype_libpath = [irix_precomp + '/freetype/lib']
|
|
|
|
freetype_include = [irix_precomp + '/freetype/include']
|
|
|
|
gettext_lib = []
|
|
|
|
gettext_libpath = []
|
|
|
|
gettext_include = []
|
|
|
|
# OpenAL library information
|
|
|
|
openal_lib = []
|
|
|
|
openal_libpath = []
|
|
|
|
openal_include = []
|
2004-01-04 21:11:59 +00:00
|
|
|
|
|
|
|
elif string.find (sys.platform, 'hp-ux') != -1:
|
2004-09-26 10:56:38 +00:00
|
|
|
window_system = 'X11'
|
|
|
|
defines = []
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2004-03-02 08:40:19 +00:00
|
|
|
elif sys.platform=='openbsd3':
|
2004-09-26 10:56:38 +00:00
|
|
|
print "Building for OpenBSD 3.x"
|
|
|
|
use_international = 'false'
|
|
|
|
use_gameengine = 'false'
|
|
|
|
use_openal = 'false'
|
|
|
|
use_fmod = 'false'
|
|
|
|
use_quicktime = 'false'
|
2006-01-09 02:18:11 +00:00
|
|
|
use_openexr = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_sumo = 'false'
|
|
|
|
use_ode = 'false'
|
2005-08-02 12:40:52 +00:00
|
|
|
use_bullet = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_buildinfo = 'true'
|
2005-10-12 11:55:56 +00:00
|
|
|
use_fluidsim = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
build_blender_dynamic = 'true'
|
|
|
|
build_blender_static = 'false'
|
|
|
|
build_blender_player = 'false'
|
|
|
|
build_blender_plugin = 'false'
|
|
|
|
release_flags = ['-O2']
|
|
|
|
debug_flags = ['-O2', '-g']
|
|
|
|
extra_flags = ['-pipe', '-fPIC', '-funsigned-char']
|
|
|
|
cxxflags = []
|
|
|
|
defines = []
|
|
|
|
warn_flags = ['-Wall','-W']
|
|
|
|
window_system = 'X11'
|
|
|
|
platform_libs = ['m', 'stdc++', 'pthread', 'util']
|
|
|
|
platform_libpath = []
|
|
|
|
platform_linkflags = []
|
|
|
|
extra_includes = []
|
|
|
|
z_lib = ['z']
|
|
|
|
z_libpath = ['/usr/lib']
|
|
|
|
z_include = ['/usr/include']
|
|
|
|
# png library information
|
|
|
|
png_lib = ['png']
|
|
|
|
png_libpath = ['/usr/local/lib']
|
2005-05-29 12:06:53 +00:00
|
|
|
png_include = ['/usr/local/include/libpng']
|
2006-01-09 02:18:11 +00:00
|
|
|
# OpenEXR library information
|
|
|
|
if use_openexr == 'true':
|
|
|
|
defines += ['WITH_OPENEXR']
|
|
|
|
openexr_lib = ['Iex', 'Half', 'IlmImf', 'Imath']
|
|
|
|
openexr_libpath = ['/usr/lib']
|
|
|
|
openexr_include = ['/usr/include/OpenEXR']
|
2004-09-26 10:56:38 +00:00
|
|
|
# jpeg library information
|
|
|
|
jpeg_lib = ['jpeg']
|
|
|
|
jpeg_libpath = ['/usr/local/lib']
|
|
|
|
jpeg_include = ['/usr/local/include']
|
|
|
|
# OpenGL library information
|
|
|
|
opengl_lib = ['GL', 'GLU']
|
|
|
|
opengl_static = ['/usr/lib/libGL.a', '/usr/lib/libGLU.a']
|
|
|
|
opengl_libpath = ['/usr/lib', '/usr/X11R6/lib']
|
|
|
|
opengl_include = ['/usr/X11R6/include/']
|
|
|
|
# SDL library information
|
|
|
|
sdl_env.ParseConfig ('sdl-config --cflags --libs')
|
|
|
|
sdl_cflags = sdl_env.Dictionary()['CCFLAGS']
|
|
|
|
sdl_include = sdl_env.Dictionary()['CPPPATH']
|
|
|
|
sdl_libpath = sdl_env.Dictionary()['LIBPATH']
|
|
|
|
sdl_lib = sdl_env.Dictionary()['LIBS']
|
|
|
|
# SOLID library information
|
2005-05-06 13:37:18 +00:00
|
|
|
solid_lib = []
|
|
|
|
solid_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
solid_include = ['#extern/solid']
|
2005-05-06 13:37:18 +00:00
|
|
|
qhull_lib = []
|
|
|
|
qhull_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
qhull_include = ['#extern/qhull/include']
|
2005-08-02 12:40:52 +00:00
|
|
|
# Bullet library information
|
|
|
|
bullet_lib = []
|
|
|
|
bullet_libpath = []
|
|
|
|
bullet_include = ['#extern/bullet','#extern/bullet/LinearMath','#extern/bullet/Bullet','#extern/bullet/BulletDynamics']
|
2004-09-26 10:56:38 +00:00
|
|
|
# ODE library information
|
|
|
|
ode_lib = ['ode']
|
|
|
|
ode_libpath = ['#../lib/linux-glibc2.2.5-i386/ode/lib']
|
|
|
|
ode_include = ['#../lib/linux-glibc2.2.5-i386/ode/include']
|
|
|
|
# Python library information
|
|
|
|
python_lib = ['python%d.%d' % sys.version_info[0:2]]
|
|
|
|
python_libpath = [sysconfig.get_python_lib (0, 1) + '/config']
|
|
|
|
python_include = [sysconfig.get_python_inc ()]
|
|
|
|
python_linkflags = []
|
|
|
|
# International support information
|
2005-05-06 13:37:18 +00:00
|
|
|
ftgl_lib = []
|
|
|
|
ftgl_libpath = []
|
|
|
|
ftgl_include = ['#extern/bFTGL/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
freetype_env.ParseConfig('pkg-config --cflags --libs freetype2')
|
|
|
|
freetype_lib = freetype_env.Dictionary()['LIBS']
|
|
|
|
freetype_libpath = freetype_env.Dictionary()['LIBPATH']
|
|
|
|
freetype_include = freetype_env.Dictionary()['CPPPATH']
|
|
|
|
gettext_lib = []
|
|
|
|
gettext_libpath = []
|
|
|
|
gettext_include = []
|
|
|
|
# OpenAL library information
|
|
|
|
openal_lib = ['openal']
|
|
|
|
openal_libpath = ['/usr/lib']
|
|
|
|
openal_include = ['/usr/include']
|
|
|
|
|
2004-08-15 18:09:37 +00:00
|
|
|
elif sys.platform=='freebsd4' or sys.platform=='freebsd5':
|
2004-09-26 10:56:38 +00:00
|
|
|
print "Building for FreeBSD"
|
|
|
|
use_international = 'false'
|
|
|
|
use_gameengine = 'false'
|
|
|
|
use_openal = 'false'
|
|
|
|
use_fmod = 'false'
|
|
|
|
use_quicktime = 'false'
|
2006-01-09 02:18:11 +00:00
|
|
|
use_openexr = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_sumo = 'false'
|
|
|
|
use_ode = 'false'
|
2005-08-02 12:40:52 +00:00
|
|
|
use_bullet = 'false'
|
2004-09-26 10:56:38 +00:00
|
|
|
use_buildinfo = 'true'
|
2005-10-12 11:55:56 +00:00
|
|
|
use_fluidsim = 'true'
|
2004-09-26 10:56:38 +00:00
|
|
|
build_blender_dynamic = 'true'
|
|
|
|
build_blender_static = 'false'
|
|
|
|
build_blender_player = 'false'
|
|
|
|
build_blender_plugin = 'false'
|
|
|
|
release_flags = ['-O2']
|
|
|
|
debug_flags = ['-O2', '-g']
|
|
|
|
extra_flags = ['-pipe', '-fPIC', '-funsigned-char']
|
|
|
|
cxxflags = []
|
|
|
|
defines = []
|
|
|
|
warn_flags = ['-Wall','-W']
|
|
|
|
window_system = 'X11'
|
|
|
|
platform_libs = ['m', 'stdc++', 'util']
|
|
|
|
platform_libpath = []
|
|
|
|
platform_linkflags = ['-pthread']
|
|
|
|
extra_includes = []
|
|
|
|
z_lib = ['z']
|
|
|
|
z_libpath = ['/usr/lib']
|
|
|
|
z_include = ['/usr/include']
|
|
|
|
# png library information
|
|
|
|
png_lib = ['png']
|
|
|
|
png_libpath = ['/usr/local/lib']
|
|
|
|
png_include = ['/usr/local/include']
|
2006-01-09 02:18:11 +00:00
|
|
|
# OpenEXR library information
|
|
|
|
if use_openexr == 'true':
|
|
|
|
defines += ['WITH_OPENEXR']
|
|
|
|
openexr_lib = ['Iex', 'Half', 'IlmImf', 'Imath']
|
|
|
|
openexr_libpath = ['/usr/lib']
|
|
|
|
openexr_include = ['/usr/include/OpenEXR']
|
2004-09-26 10:56:38 +00:00
|
|
|
# jpeg library information
|
|
|
|
jpeg_lib = ['jpeg']
|
|
|
|
jpeg_libpath = ['/usr/local/lib']
|
|
|
|
jpeg_include = ['/usr/local/include']
|
|
|
|
# OpenGL library information
|
|
|
|
opengl_lib = ['GL', 'GLU']
|
|
|
|
opengl_static = ['/usr/lib/libGL.a', '/usr/lib/libGLU.a']
|
|
|
|
opengl_libpath = ['/usr/lib', '/usr/X11R6/lib']
|
|
|
|
opengl_include = ['/usr/X11R6/include/']
|
|
|
|
# SDL library information
|
|
|
|
sdl_env.ParseConfig ('sdl11-config --cflags --libs')
|
|
|
|
sdl_cflags = sdl_env.Dictionary()['CCFLAGS']
|
|
|
|
sdl_include = sdl_env.Dictionary()['CPPPATH']
|
|
|
|
sdl_libpath = ['/usr/local/include/SDL11']
|
|
|
|
sdl_lib = sdl_env.Dictionary()['LIBS']
|
|
|
|
# SOLID library information
|
2005-05-06 13:37:18 +00:00
|
|
|
solid_lib = []
|
|
|
|
solid_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
solid_include = ['#extern/solid']
|
2005-05-06 13:37:18 +00:00
|
|
|
qhull_lib = []
|
|
|
|
qhull_libpath = []
|
2004-09-26 10:56:38 +00:00
|
|
|
qhull_include = ['#extern/qhull/include']
|
2005-08-02 12:40:52 +00:00
|
|
|
# Bullet library information
|
|
|
|
bullet_lib = []
|
|
|
|
bullet_libpath = []
|
|
|
|
bullet_include = ['#extern/bullet','#extern/bullet/LinearMath','#extern/bullet/Bullet','#extern/bullet/BulletDynamics']
|
2004-09-26 10:56:38 +00:00
|
|
|
# ODE library information
|
|
|
|
ode_lib = ['ode']
|
|
|
|
ode_libpath = ['#../lib/linux-glibc2.2.5-i386/ode/lib']
|
|
|
|
ode_include = ['#../lib/linux-glibc2.2.5-i386/ode/include']
|
|
|
|
# Python library information
|
|
|
|
python_lib = ['python%d.%d' % sys.version_info[0:2]]
|
|
|
|
python_libpath = [sysconfig.get_python_lib (0, 1) + '/config']
|
|
|
|
python_include = [sysconfig.get_python_inc ()]
|
|
|
|
python_linkflags = []
|
|
|
|
# International support information
|
2005-05-06 13:37:18 +00:00
|
|
|
ftgl_lib = []
|
|
|
|
ftgl_libpath = []
|
|
|
|
ftgl_include = ['#extern/bFTGL/include']
|
2004-09-26 10:56:38 +00:00
|
|
|
freetype_env.ParseConfig('pkg-config --cflags --libs freetype2')
|
|
|
|
freetype_lib = freetype_env.Dictionary()['LIBS']
|
|
|
|
freetype_libpath = freetype_env.Dictionary()['LIBPATH']
|
|
|
|
freetype_include = freetype_env.Dictionary()['CPPPATH']
|
|
|
|
gettext_lib = []
|
|
|
|
gettext_libpath = []
|
|
|
|
gettext_include = []
|
|
|
|
# OpenAL library information
|
|
|
|
openal_lib = ['openal']
|
|
|
|
openal_libpath = ['/usr/lib']
|
|
|
|
openal_include = ['/usr/include']
|
2004-03-02 08:40:19 +00:00
|
|
|
|
2004-01-04 21:11:59 +00:00
|
|
|
else:
|
2004-09-26 10:56:38 +00:00
|
|
|
print "Unknown platform %s"%sys.platform
|
|
|
|
exit
|
2004-01-04 21:11:59 +00:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# End of platform specific section
|
|
|
|
#-----------------------------------------------------------------------------
|
2004-01-20 20:28:39 +00:00
|
|
|
|
2004-02-07 20:44:43 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# User configurable options to be saved in a config file.
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Checking for an existing config file - use that one if it exists,
|
|
|
|
# otherwise create one.
|
2004-06-04 12:58:46 +00:00
|
|
|
my_defines = []
|
|
|
|
my_ccflags = []
|
|
|
|
my_cxxflags = []
|
|
|
|
my_ldflags = []
|
2004-09-25 20:44:57 +00:00
|
|
|
if os.path.exists (bs_globals.config_file):
|
2004-09-26 10:56:38 +00:00
|
|
|
print "Using config file: " + bs_globals.config_file
|
2004-02-07 20:44:43 +00:00
|
|
|
else:
|
2004-09-26 10:56:38 +00:00
|
|
|
print "Creating new config file: " + bs_globals.config_file
|
|
|
|
env_dict = env.Dictionary()
|
|
|
|
config=open (bs_globals.config_file, 'w')
|
|
|
|
config.write ("# Configuration file containing user definable options.\n")
|
|
|
|
config.write ("VERSION = %r\n"%(version))
|
|
|
|
config.write ("BUILD_BINARY = 'release'\n")
|
|
|
|
config.write ("USE_BUILDINFO = %r\n"%(use_buildinfo))
|
|
|
|
config.write ("BUILD_BLENDER_DYNAMIC = %r\n"%(build_blender_dynamic))
|
|
|
|
config.write ("BUILD_BLENDER_STATIC = %r\n"%(build_blender_static))
|
|
|
|
config.write ("BUILD_BLENDER_PLAYER = %r\n"%(build_blender_player))
|
|
|
|
config.write ("BUILD_BLENDER_PLUGIN = %r\n"%(build_blender_plugin))
|
|
|
|
config.write ("BUILD_DIR = %r\n"%(bs_globals.root_build_dir))
|
|
|
|
|
|
|
|
config.write ("\n# Extra compiler flags can be defined here.\n")
|
|
|
|
config.write ("DEFINES = %s\n"%(my_defines))
|
|
|
|
config.write ("CCFLAGS = %s\n"%(my_ccflags))
|
|
|
|
config.write ("CXXFLAGS = %s\n"%(my_cxxflags))
|
|
|
|
config.write ("LDFLAGS = %s\n"%(my_ldflags))
|
2004-06-04 12:58:46 +00:00
|
|
|
|
2004-09-26 10:56:38 +00:00
|
|
|
config.write ("USE_INTERNATIONAL = %r\n"%(use_international))
|
|
|
|
config.write ("BUILD_GAMEENGINE = %r\n"%(use_gameengine))
|
|
|
|
if use_ode == 'true':
|
|
|
|
config.write ("USE_PHYSICS = 'ode'\n")
|
2005-10-28 04:48:01 +00:00
|
|
|
elif (use_bullet == 'true') and (use_sumo == 'false'):
|
2005-08-01 21:19:41 +00:00
|
|
|
config.write("USE_PHYSICS = 'bullet'\n")
|
2004-09-26 10:56:38 +00:00
|
|
|
else:
|
|
|
|
config.write ("USE_PHYSICS = 'solid'\n")
|
|
|
|
config.write ("USE_OPENAL = %r\n"%(use_openal))
|
|
|
|
config.write ("USE_FMOD = %r\n"%(use_fmod))
|
|
|
|
config.write ("USE_QUICKTIME = %r\n"%(use_quicktime))
|
2006-01-09 02:18:11 +00:00
|
|
|
config.write ("USE_OPENEXR = %r\n"%(use_openexr))
|
2005-10-10 06:59:47 +00:00
|
|
|
config.write ("USE_FLUIDSIM = %r\n"%(use_fluidsim))
|
2004-09-26 10:56:38 +00:00
|
|
|
config.write ("\n# Compiler information.\n")
|
|
|
|
config.write ("HOST_CC = %r\n"%(env_dict['CC']))
|
|
|
|
config.write ("HOST_CXX = %r\n"%(env_dict['CXX']))
|
|
|
|
config.write ("TARGET_CC = %r\n"%(env_dict['CC']))
|
|
|
|
config.write ("TARGET_CXX = %r\n"%(env_dict['CXX']))
|
|
|
|
config.write ("TARGET_AR = %r\n"%(env_dict['AR']))
|
|
|
|
config.write ("PATH = %r\n"%(os.environ['PATH']))
|
|
|
|
config.write ("\n# External library information.\n")
|
|
|
|
config.write ("PLATFORM_LIBS = %r\n"%(platform_libs))
|
|
|
|
config.write ("PLATFORM_LIBPATH = %r\n"%(platform_libpath))
|
|
|
|
config.write ("PLATFORM_LINKFLAGS = %r\n"%(platform_linkflags))
|
|
|
|
config.write ("PYTHON_INCLUDE = %r\n"%(python_include))
|
|
|
|
config.write ("PYTHON_LIBPATH = %r\n"%(python_libpath))
|
|
|
|
config.write ("PYTHON_LIBRARY = %r\n"%(python_lib))
|
|
|
|
config.write ("PYTHON_LINKFLAGS = %r\n"%(python_linkflags))
|
|
|
|
config.write ("SDL_CFLAGS = %r\n"%(sdl_cflags))
|
|
|
|
config.write ("SDL_INCLUDE = %r\n"%(sdl_include))
|
|
|
|
config.write ("SDL_LIBPATH = %r\n"%(sdl_libpath))
|
|
|
|
config.write ("SDL_LIBRARY = %r\n"%(sdl_lib))
|
|
|
|
config.write ("Z_INCLUDE = %r\n"%(z_include))
|
|
|
|
config.write ("Z_LIBPATH = %r\n"%(z_libpath))
|
|
|
|
config.write ("Z_LIBRARY = %r\n"%(z_lib))
|
|
|
|
config.write ("PNG_INCLUDE = %r\n"%(png_include))
|
|
|
|
config.write ("PNG_LIBPATH = %r\n"%(png_libpath))
|
|
|
|
config.write ("PNG_LIBRARY = %r\n"%(png_lib))
|
2006-01-09 02:18:11 +00:00
|
|
|
config.write ("OPENEXR_INCLUDE = %r\n"%(openexr_include))
|
|
|
|
config.write ("OPENEXR_LIBPATH = %r\n"%(openexr_libpath))
|
|
|
|
config.write ("OPENEXR_LIBRARY = %r\n"%(openexr_lib))
|
2004-09-26 10:56:38 +00:00
|
|
|
config.write ("JPEG_INCLUDE = %r\n"%(jpeg_include))
|
|
|
|
config.write ("JPEG_LIBPATH = %r\n"%(jpeg_libpath))
|
|
|
|
config.write ("JPEG_LIBRARY = %r\n"%(jpeg_lib))
|
2005-11-23 13:44:58 +00:00
|
|
|
config.write ("TIFF_INCLUDE = %r\n"%(tiff_include))
|
|
|
|
config.write ("TIFF_LIBPATH = %r\n"%(tiff_libpath))
|
|
|
|
config.write ("TIFF_LIBRARY = %r\n"%(tiff_lib))
|
2004-09-26 10:56:38 +00:00
|
|
|
config.write ("OPENGL_INCLUDE = %r\n"%(opengl_include))
|
|
|
|
config.write ("OPENGL_LIBPATH = %r\n"%(opengl_libpath))
|
|
|
|
config.write ("OPENGL_LIBRARY = %r\n"%(opengl_lib))
|
|
|
|
config.write ("OPENGL_STATIC = %r\n"%(opengl_static))
|
|
|
|
config.write ("\n# The following information is only necessary when you've enabled support for\n")
|
|
|
|
config.write ("# the game engine.\n")
|
|
|
|
config.write ("SOLID_INCLUDE = %r\n"%(solid_include))
|
|
|
|
config.write ("SOLID_LIBPATH = %r\n"%(solid_libpath))
|
|
|
|
config.write ("SOLID_LIBRARY = %r\n"%(solid_lib))
|
|
|
|
config.write ("QHULL_INCLUDE = %r\n"%(qhull_include))
|
|
|
|
config.write ("QHULL_LIBPATH = %r\n"%(qhull_libpath))
|
|
|
|
config.write ("QHULL_LIBRARY = %r\n"%(qhull_lib))
|
|
|
|
config.write ("ODE_INCLUDE = %r\n"%(ode_include))
|
|
|
|
config.write ("ODE_LIBPATH = %r\n"%(ode_libpath))
|
|
|
|
config.write ("ODE_LIBRARY = %r\n"%(ode_lib))
|
2005-08-01 21:19:41 +00:00
|
|
|
config.write ("BULLET_INCLUDE = %r\n"%(bullet_include))
|
|
|
|
config.write ("BULLET_LIBPATH = %r\n"%(bullet_libpath))
|
|
|
|
config.write ("BULLET_LIBRARY = %r\n"%(bullet_lib))
|
2004-09-26 10:56:38 +00:00
|
|
|
config.write ("OPENAL_INCLUDE = %r\n"%(openal_include))
|
|
|
|
config.write ("OPENAL_LIBPATH = %r\n"%(openal_libpath))
|
|
|
|
config.write ("OPENAL_LIBRARY = %r\n"%(openal_lib))
|
|
|
|
config.write ("\n# The following information is only necessary when building with\n")
|
|
|
|
config.write ("# internationalization support.\n");
|
|
|
|
config.write ("FTGL_INCLUDE = %r\n"%(ftgl_include))
|
|
|
|
config.write ("FTGL_LIBPATH = %r\n"%(ftgl_libpath))
|
|
|
|
config.write ("FTGL_LIBRARY = %r\n"%(ftgl_lib))
|
|
|
|
config.write ("FREETYPE_INCLUDE = %r\n"%(freetype_include))
|
|
|
|
config.write ("FREETYPE_LIBPATH = %r\n"%(freetype_libpath))
|
|
|
|
config.write ("FREETYPE_LIBRARY = %r\n"%(freetype_lib))
|
|
|
|
config.write ("GETTEXT_INCLUDE = %r\n"%(gettext_include))
|
|
|
|
config.write ("GETTEXT_LIBPATH = %r\n"%(gettext_libpath))
|
|
|
|
config.write ("GETTEXT_LIBRARY = %r\n"%(gettext_lib))
|
|
|
|
config.close ()
|
2004-02-07 20:44:43 +00:00
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Read the options from the config file and update the various necessary flags
|
|
|
|
#-----------------------------------------------------------------------------
|
2004-02-21 15:13:15 +00:00
|
|
|
list_opts = []
|
2004-09-25 20:44:57 +00:00
|
|
|
user_options = Options (bs_globals.config_file)
|
2005-05-06 13:37:18 +00:00
|
|
|
user_options_env = Environment (ENV = os.environ, options = user_options)
|
2004-02-07 20:44:43 +00:00
|
|
|
user_options.AddOptions (
|
2004-09-26 10:56:38 +00:00
|
|
|
('VERSION', 'Blender version', version),
|
|
|
|
(EnumOption ('BUILD_BINARY', 'release',
|
|
|
|
'Select a release or debug binary.',
|
|
|
|
allowed_values = ('release', 'debug'))),
|
|
|
|
(BoolOption ('USE_BUILDINFO',
|
|
|
|
'Set to 1 if you want to add build information.',
|
|
|
|
'false')),
|
|
|
|
(BoolOption ('BUILD_BLENDER_DYNAMIC',
|
|
|
|
'Set to 1 if you want to build blender with hardware accellerated OpenGL support.',
|
|
|
|
'true')),
|
|
|
|
(BoolOption ('BUILD_BLENDER_STATIC',
|
|
|
|
'Set to 1 if you want to build blender with software OpenGL support.',
|
|
|
|
'false')),
|
|
|
|
(BoolOption ('BUILD_BLENDER_PLAYER',
|
|
|
|
'Set to 1 if you want to build the blender player.',
|
|
|
|
'false')),
|
|
|
|
(BoolOption ('BUILD_BLENDER_PLUGIN',
|
|
|
|
'Set to 1 if you want to build the blender plugin.',
|
|
|
|
'false')),
|
|
|
|
('BUILD_DIR', 'Target directory for intermediate files.',
|
|
|
|
bs_globals.root_build_dir),
|
|
|
|
(BoolOption ('USE_INTERNATIONAL',
|
|
|
|
'Set to 1 to have international support.',
|
|
|
|
'false')),
|
|
|
|
(EnumOption ('USE_PHYSICS', 'solid',
|
|
|
|
'Select which physics engine to use.',
|
2005-08-01 21:19:41 +00:00
|
|
|
allowed_values = ('ode', 'solid', 'bullet'))),
|
2004-09-26 10:56:38 +00:00
|
|
|
(BoolOption ('BUILD_GAMEENGINE',
|
|
|
|
'Set to 1 to build blender with game engine support.',
|
|
|
|
'false')),
|
|
|
|
(BoolOption ('USE_OPENAL',
|
|
|
|
'Set to 1 to build the game engine with OpenAL support.',
|
|
|
|
'false')),
|
|
|
|
(BoolOption ('USE_FMOD',
|
|
|
|
'Set to 1 to build the game engine with FMod support.',
|
|
|
|
'false')),
|
|
|
|
(BoolOption ('USE_QUICKTIME',
|
|
|
|
'Set to 1 to add support for QuickTime.',
|
|
|
|
'false')),
|
2006-01-09 02:18:11 +00:00
|
|
|
(BoolOption ('USE_OPENEXR',
|
|
|
|
'Set to 1 to add support for OpenEXR.',
|
|
|
|
'false')),
|
2005-10-10 06:59:47 +00:00
|
|
|
(BoolOption ('USE_FLUIDSIM', # NT test new
|
|
|
|
'Set to 0 to disable compilation of fluid simulation library El\'Beem.',
|
|
|
|
'true')),
|
2004-09-26 10:56:38 +00:00
|
|
|
('HOST_CC', 'C compiler for the host platfor. This is the same as target platform when not cross compiling.'),
|
|
|
|
('HOST_CXX', 'C++ compiler for the host platform. This is the same as target platform when not cross compiling.'),
|
|
|
|
('TARGET_CC', 'C compiler for the target platform.'),
|
|
|
|
('TARGET_CXX', 'C++ compiler for the target platform.'),
|
|
|
|
('TARGET_AR', 'Linker command for linking libraries.'),
|
|
|
|
('PATH', 'Standard search path'),
|
|
|
|
('PLATFORM_LIBS', 'Platform specific libraries.'),
|
|
|
|
('PLATFORM_LIBPATH', 'Platform specific library link path.'),
|
|
|
|
('PLATFORM_LINKFLAGS', 'Platform specific linkflags'),
|
|
|
|
('PYTHON_INCLUDE', 'Include directory for Python header files.'),
|
|
|
|
('PYTHON_LIBPATH', 'Library path where the Python lib is located.'),
|
|
|
|
('PYTHON_LIBRARY', 'Python library name.'),
|
|
|
|
('PYTHON_LINKFLAGS', 'Python specific linkflags.'),
|
|
|
|
('SDL_CFLAGS', 'Necessary CFLAGS when using sdl functionality.'),
|
|
|
|
('SDL_INCLUDE', 'Include directory for SDL header files.'),
|
|
|
|
('SDL_LIBPATH', 'Library path where the SDL library is located.'),
|
|
|
|
('SDL_LIBRARY', 'SDL library name.'),
|
|
|
|
('Z_INCLUDE', 'Include directory for zlib header files.'),
|
|
|
|
('Z_LIBPATH', 'Library path where the zlib library is located.'),
|
|
|
|
('Z_LIBRARY', 'Z library name.'),
|
|
|
|
('PNG_INCLUDE', 'Include directory for png header files.'),
|
|
|
|
('PNG_LIBPATH', 'Library path where the png library is located.'),
|
|
|
|
('PNG_LIBRARY', 'png library name.'),
|
2006-01-09 02:18:11 +00:00
|
|
|
('OPENEXR_INCLUDE', 'Include directory for OpenEXR header files.'),
|
|
|
|
('OPENEXR_LIBPATH', 'Library path where the OpenEXR libraries are located.'),
|
|
|
|
('OPENEXR_LIBRARY', 'OpenEXR library names.'),
|
2004-09-26 10:56:38 +00:00
|
|
|
('JPEG_INCLUDE', 'Include directory for jpeg header files.'),
|
|
|
|
('JPEG_LIBPATH', 'Library path where the jpeg library is located.'),
|
|
|
|
('JPEG_LIBRARY', 'jpeg library name.'),
|
2005-11-23 13:44:58 +00:00
|
|
|
('TIFF_INCLUDE', 'Include directory for TIFF header files.'),
|
|
|
|
('TIFF_LIBPATH', 'Library path where the TIFF library is located.'),
|
|
|
|
('TIFF_LIBRARY', 'TIFF library name.'),
|
2004-09-26 10:56:38 +00:00
|
|
|
('OPENGL_INCLUDE', 'Include directory for OpenGL header files.'),
|
|
|
|
('OPENGL_LIBPATH', 'Library path where the OpenGL libraries are located.'),
|
|
|
|
('OPENGL_LIBRARY', 'OpenGL library names.'),
|
|
|
|
('OPENGL_STATIC', 'Linker flags for static linking of Open GL.'),
|
|
|
|
('SOLID_INCLUDE', 'Include directory for SOLID header files.'),
|
|
|
|
('SOLID_LIBPATH', 'Library path where the SOLID library is located.'),
|
|
|
|
('SOLID_LIBRARY', 'SOLID library name.'),
|
|
|
|
('QHULL_INCLUDE', 'Include directory for QHULL header files.'),
|
|
|
|
('QHULL_LIBPATH', 'Library path where the QHULL library is located.'),
|
|
|
|
('QHULL_LIBRARY', 'QHULL library name.'),
|
|
|
|
('ODE_INCLUDE', 'Include directory for ODE header files.'),
|
|
|
|
('ODE_LIBPATH', 'Library path where the ODE library is located.'),
|
|
|
|
('ODE_LIBRARY', 'ODE library name.'),
|
2005-08-01 21:19:41 +00:00
|
|
|
('BULLET_INCLUDE', 'Include directory for BULLET header files.'),
|
|
|
|
('BULLET_LIBPATH', 'Library path where the BULLET library is located.'),
|
|
|
|
('BULLET_LIBRARY', 'BULLET library name'),
|
2004-09-26 10:56:38 +00:00
|
|
|
('OPENAL_INCLUDE', 'Include directory for OpenAL header files.'),
|
|
|
|
('OPENAL_LIBPATH', 'Library path where the OpenAL library is located.'),
|
|
|
|
('OPENAL_LIBRARY', 'OpenAL library name.'),
|
|
|
|
('FTGL_INCLUDE', 'Include directory for ftgl header files.'),
|
|
|
|
('FTGL_LIBPATH', 'Library path where the ftgl library is located.'),
|
|
|
|
('FTGL_LIBRARY', 'ftgl library name.'),
|
|
|
|
('FREETYPE_INCLUDE', 'Include directory for freetype2 header files.'),
|
|
|
|
('FREETYPE_LIBPATH', 'Library path where the freetype2 library is located.'),
|
|
|
|
('FREETYPE_LIBRARY', 'Freetype2 library name.'),
|
|
|
|
('GETTEXT_INCLUDE', 'Include directory for gettext header files.'),
|
|
|
|
('GETTEXT_LIBPATH', 'Library path where the gettext library is located.'),
|
|
|
|
('GETTEXT_LIBRARY', 'gettext library name.'),
|
|
|
|
('DEFINES', 'Extra Preprocessor defines.'),
|
|
|
|
('CCFLAGS', 'Extra C Compiler flags.'),
|
|
|
|
('CXXFLAGS','Extra C++ Compiler flags.'),
|
|
|
|
('LDFLAGS', 'Extra Linker flags.')
|
|
|
|
)
|
2004-02-07 20:44:43 +00:00
|
|
|
user_options.Update (user_options_env)
|
2004-02-15 19:25:32 +00:00
|
|
|
user_options_dict = user_options_env.Dictionary()
|
2004-09-25 20:44:57 +00:00
|
|
|
Help(user_options.GenerateHelpText(user_options_env))
|
|
|
|
bs_globals.root_build_dir = user_options_dict['BUILD_DIR']
|
|
|
|
# SET MODULE VARS #
|
2005-05-06 13:37:18 +00:00
|
|
|
init_env = Environment(ENV = os.environ)
|
2004-09-25 20:44:57 +00:00
|
|
|
|
|
|
|
bs_globals.user_options_dict = user_options_dict
|
|
|
|
bs_globals.init_env = init_env
|
|
|
|
bs_globals.version = version
|
|
|
|
bs_globals.shortversion = shortversion
|
|
|
|
bs_globals.appname = appname
|
|
|
|
bs_globals.playername = playername
|
|
|
|
bs_globals.config_guess = config_guess
|
|
|
|
# END SET MODULE VARS #
|
2004-02-07 20:44:43 +00:00
|
|
|
|
2004-02-15 19:25:32 +00:00
|
|
|
if user_options_dict['BUILD_GAMEENGINE'] == 1:
|
2004-09-26 10:56:38 +00:00
|
|
|
defines += ['GAMEBLENDER=1']
|
2005-10-23 17:55:19 +00:00
|
|
|
defines += ['USE_BULLET']
|
2004-09-26 10:56:38 +00:00
|
|
|
if user_options_dict['USE_PHYSICS'] == 'ode':
|
|
|
|
defines += ['USE_ODE']
|
|
|
|
else:
|
|
|
|
defines += ['USE_SUMO_SOLID']
|
2004-02-07 20:44:43 +00:00
|
|
|
else:
|
2004-09-26 10:56:38 +00:00
|
|
|
defines += ['GAMEBLENDER=0']
|
2004-02-07 20:44:43 +00:00
|
|
|
|
2004-02-15 19:25:32 +00:00
|
|
|
if user_options_dict['BUILD_BINARY'] == 'release':
|
2004-09-26 10:56:38 +00:00
|
|
|
cflags = extra_flags + release_flags + warn_flags
|
|
|
|
defines += ['NDEBUG']
|
2004-02-07 20:44:43 +00:00
|
|
|
else:
|
2004-09-26 10:56:38 +00:00
|
|
|
cflags = extra_flags + debug_flags + warn_flags
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
platform_linkflags = ['/DEBUG','/PDB:blender.pdb'] + platform_linkflags
|
2004-02-18 14:35:36 +00:00
|
|
|
|
2004-06-04 12:58:46 +00:00
|
|
|
defines += user_options_dict['DEFINES']
|
|
|
|
cflags += user_options_dict['CCFLAGS']
|
|
|
|
cxxflags += user_options_dict['CXXFLAGS']
|
2004-09-25 20:44:57 +00:00
|
|
|
platform_linkflags += user_options_dict['LDFLAGS']
|
|
|
|
|
|
|
|
user_options_dict['PLATFORM_LINKFLAGS'] = platform_linkflags
|
2004-06-04 12:58:46 +00:00
|
|
|
|
2005-10-10 06:59:47 +00:00
|
|
|
if user_options_dict['USE_FLUIDSIM'] == 0: # NT test new
|
|
|
|
use_fluidsim='false';
|
|
|
|
|
2004-02-29 21:40:48 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Generic library generation environment. This one is the basis for each
|
|
|
|
# library.
|
|
|
|
#-----------------------------------------------------------------------------
|
2004-03-17 13:18:03 +00:00
|
|
|
library_env = env.Copy ()
|
2004-02-29 21:40:48 +00:00
|
|
|
library_env.Replace (CC = user_options_dict['TARGET_CC'])
|
|
|
|
library_env.Replace (CXX = user_options_dict['TARGET_CXX'])
|
|
|
|
library_env.Replace (PATH = user_options_dict['PATH'])
|
|
|
|
library_env.Replace (AR = user_options_dict['TARGET_AR'])
|
|
|
|
library_env.Append (CCFLAGS = cflags)
|
|
|
|
library_env.Append (CXXFLAGS = cxxflags)
|
|
|
|
library_env.Append (CPPDEFINES = defines)
|
2004-09-25 20:44:57 +00:00
|
|
|
library_env.SConsignFile (bs_globals.root_build_dir+'scons-signatures')
|
2004-02-29 21:40:48 +00:00
|
|
|
|
2004-01-20 20:28:39 +00:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Settings to be exported to other SConscript files
|
|
|
|
#-----------------------------------------------------------------------------
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2004-09-25 20:44:57 +00:00
|
|
|
if bs_globals.enable_clean==0: # only read SConscripts when not cleaning, this to cut overhead
|
2004-07-14 20:55:17 +00:00
|
|
|
Export ('cflags')
|
|
|
|
Export ('defines')
|
|
|
|
Export ('window_system')
|
|
|
|
Export ('extra_includes')
|
|
|
|
Export ('user_options_dict')
|
|
|
|
Export ('library_env')
|
Biiig commit! Thanks to 2-3 weeks of cvs freeze...
Render:
- New; support for dual CPU render (SDL thread)
Currently only works with alternating scanlines, but gives excellent
performance. For both normal render as unified implemented.
Note the "mutex" locks on z-transp buffer render and imbuf loads.
- This has been made possible by major cleanups in render code, especially
getting rid of globals (example Tin Tr Tg Tb Ta for textures) or struct
OSA or using Materials or Texture data to write to.
- Made normal render fully 4x32 floats too, and removed all old optimizes
with chars or shorts.
- Made normal render and unified render use same code for sky and halo
render, giving equal (and better) results for halo render. Old render
now also uses PostProcess options (brightness, mul, gamma)
- Added option ("FBuf") in F10 Output Panel, this keeps a 4x32 bits buffer
after render. Using PostProcess menu you will note an immediate re-
display of image too (32 bits RGBA)
- Added "Hue" and "Saturation" sliders to PostProcess options
- Render module is still not having a "nice" API, but amount of dependencies
went down a lot. Next todo: remove abusive "previewrender" code.
The last main global in Render (struct Render) now can be re-used for fully
controlling a render, to allow multiple "instances" of render to open.
- Renderwindow now displays a smal bar on top with the stats, and keeps the
stats after render too. Including "spare" page support.
Not only easier visible that way, but also to remove the awkward code that
was drawing stats in the Info header (extreme slow on some ATIs too)
- Cleaned up blendef.h and BKE_utildefines.h, these two had overlapping
defines.
- I might have forgotten stuff... and will write a nice doc on the architecture!
2004-12-27 19:28:52 +00:00
|
|
|
Export ('sdl_env')
|
2005-10-10 06:59:47 +00:00
|
|
|
Export ('use_fluidsim') # NT test
|
2004-07-14 20:55:17 +00:00
|
|
|
|
2004-09-25 20:44:57 +00:00
|
|
|
BuildDir (bs_globals.root_build_dir+'/extern', 'extern', duplicate=0)
|
|
|
|
SConscript (bs_globals.root_build_dir+'extern/SConscript')
|
|
|
|
BuildDir (bs_globals.root_build_dir+'/intern', 'intern', duplicate=0)
|
|
|
|
SConscript (bs_globals.root_build_dir+'intern/SConscript')
|
|
|
|
BuildDir (bs_globals.root_build_dir+'/source', 'source', duplicate=0)
|
|
|
|
SConscript (bs_globals.root_build_dir+'source/SConscript')
|
2004-07-14 20:55:17 +00:00
|
|
|
|
2004-09-25 20:44:57 +00:00
|
|
|
libpath = (['#'+bs_globals.root_build_dir+'/lib'])
|
2004-07-14 20:55:17 +00:00
|
|
|
|
|
|
|
link_env = library_env.Copy ()
|
|
|
|
link_env.Append (LIBPATH=libpath)
|
2004-06-04 12:58:46 +00:00
|
|
|
|
|
|
|
def buildinfo(env, build_type):
|
|
|
|
"""
|
|
|
|
Generate a buildinfo object
|
|
|
|
"""
|
|
|
|
build_date = time.strftime ("%Y-%m-%d")
|
|
|
|
build_time = time.strftime ("%H:%M:%S")
|
|
|
|
obj = []
|
|
|
|
if user_options_dict['USE_BUILDINFO'] == 1:
|
|
|
|
if sys.platform=='win32':
|
|
|
|
build_info_file = open("source/creator/winbuildinfo.h", 'w')
|
|
|
|
build_info_file.write("char *build_date=\"%s\";\n"%build_date)
|
|
|
|
build_info_file.write("char *build_time=\"%s\";\n"%build_time)
|
|
|
|
build_info_file.write("char *build_platform=\"win32\";\n")
|
2004-11-14 20:37:32 +00:00
|
|
|
build_info_file.write("char *build_type=\"dynamic\";\n")
|
2004-06-04 12:58:46 +00:00
|
|
|
build_info_file.close()
|
|
|
|
env.Append (CPPDEFINES = ['NAN_BUILDINFO', 'BUILD_DATE'])
|
|
|
|
else:
|
|
|
|
env.Append (CPPDEFINES = ['BUILD_TIME=\'"%s"\''%(build_time),
|
|
|
|
'BUILD_DATE=\'"%s"\''%(build_date),
|
|
|
|
'BUILD_TYPE=\'"dynamic"\'',
|
|
|
|
'NAN_BUILDINFO',
|
|
|
|
'BUILD_PLATFORM=\'"%s"\''%(sys.platform)])
|
2004-09-25 20:44:57 +00:00
|
|
|
obj = [env.Object (bs_globals.root_build_dir+'source/creator/%s_buildinfo'%build_type,
|
|
|
|
[bs_globals.root_build_dir+'source/creator/buildinfo.c'])]
|
2004-06-04 12:58:46 +00:00
|
|
|
return obj
|
2004-07-14 14:10:39 +00:00
|
|
|
|
2004-09-25 20:44:57 +00:00
|
|
|
if bs_globals.enable_clean == 0:
|
2004-07-14 20:55:17 +00:00
|
|
|
if user_options_dict['BUILD_BLENDER_DYNAMIC'] == 1:
|
|
|
|
dy_blender = link_env.Copy ()
|
|
|
|
if sys.platform=='win32':
|
2004-09-25 20:44:57 +00:00
|
|
|
bs_libs.winblenderres(dy_blender)
|
|
|
|
bs_libs.blender_libs(dy_blender)
|
|
|
|
bs_libs.common_libs(dy_blender)
|
|
|
|
bs_libs.international_libs(dy_blender)
|
|
|
|
bs_libs.ketsji_libs(dy_blender)
|
|
|
|
bs_libs.system_libs(dy_blender)
|
2004-07-14 20:55:17 +00:00
|
|
|
dy_blender.Append (LIBS=user_options_dict['OPENGL_LIBRARY'])
|
|
|
|
dy_blender.Append (LIBPATH=user_options_dict['OPENGL_LIBPATH'])
|
|
|
|
dy_blender.Append (CPPPATH=user_options_dict['OPENGL_INCLUDE'])
|
|
|
|
d_obj = buildinfo(dy_blender, "dynamic")
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
dy_blender.Program (target='blender',
|
|
|
|
source=d_obj + ['source/icons/winblender.res'])
|
|
|
|
else:
|
|
|
|
if sys.platform == 'cygwin':
|
|
|
|
dy_blender.Replace (CC='g++')
|
|
|
|
dy_blender.Program (target='blender', source=d_obj)
|
|
|
|
|
|
|
|
if user_options_dict['BUILD_BLENDER_STATIC'] == 1:
|
|
|
|
st_blender = link_env.Copy ()
|
|
|
|
if sys.platform=='win32':
|
2004-09-25 20:44:57 +00:00
|
|
|
bs_libs.winblenderres(st_blender)
|
|
|
|
bs_libs.blender_libs(st_blender)
|
|
|
|
bs_libs.common_libs(st_blender)
|
|
|
|
bs_libs.international_libs(st_blender)
|
|
|
|
bs_libs.ketsji_libs(st_blender)
|
|
|
|
bs_libs.system_libs(st_blender)
|
2004-07-14 20:55:17 +00:00
|
|
|
# The next line is to make sure that the LINKFLAGS are appended at the end
|
|
|
|
# of the link command. This 'trick' is needed because the GL and GLU static
|
|
|
|
# libraries need to be at the end of the command.
|
|
|
|
st_blender.Replace(LINKCOM="$LINK -o $TARGET $SOURCES $_LIBDIRFLAGS $_LIBFLAGS $LINKFLAGS")
|
|
|
|
s_obj = buildinfo(st_blender, "static")
|
|
|
|
st_blender.Append (LINKFLAGS=user_options_dict['OPENGL_STATIC'])
|
|
|
|
st_blender.Append (CPPPATH=user_options_dict['OPENGL_INCLUDE'])
|
|
|
|
st_blender.Prepend (LIBPATH=['/usr/lib/opengl/xfree/lib'])
|
|
|
|
st_blender.Program (target='blenderstatic', source=s_obj)
|
|
|
|
|
2004-06-04 12:58:46 +00:00
|
|
|
if sys.platform=='win32':
|
|
|
|
if user_options_dict['BUILD_BINARY']=='debug':
|
2005-05-06 13:37:18 +00:00
|
|
|
browser = Environment(ENV = os.environ)
|
2004-09-25 20:44:57 +00:00
|
|
|
browser_tmp = bs_globals.root_build_dir+'bscmake.tmp'
|
2004-07-14 20:55:17 +00:00
|
|
|
browser.Command ('blender.bsc', 'blender$PROGSUFFIX',
|
2004-09-25 20:44:57 +00:00
|
|
|
['dir /b/s '+bs_globals.root_build_dir+'*.sbr >'+browser_tmp,
|
2004-07-14 20:55:17 +00:00
|
|
|
'bscmake /nologo /n /oblender.bsc @'+browser_tmp,
|
|
|
|
'del '+browser_tmp])
|
|
|
|
|
|
|
|
if user_options_dict['BUILD_BLENDER_PLAYER'] == 1 and user_options_dict['BUILD_GAMEENGINE'] == 1:
|
|
|
|
player_blender = link_env.Copy()
|
2004-09-25 20:44:57 +00:00
|
|
|
bs_libs.player_libs(player_blender)
|
|
|
|
bs_libs.common_libs(player_blender)
|
|
|
|
bs_libs.international_libs(player_blender)
|
|
|
|
bs_libs.ketsji_libs(player_blender)
|
|
|
|
bs_libs.player_libs2(player_blender)
|
|
|
|
bs_libs.system_libs(player_blender)
|
2004-07-14 20:55:17 +00:00
|
|
|
player_blender.Append (LIBS=user_options_dict['OPENGL_LIBRARY'])
|
|
|
|
player_blender.Append (LIBPATH=user_options_dict['OPENGL_LIBPATH'])
|
|
|
|
player_blender.Append (CPPPATH=user_options_dict['OPENGL_INCLUDE'])
|
|
|
|
d_obj = buildinfo(player_blender, "player")
|
|
|
|
if sys.platform == 'win32':
|
|
|
|
player_blender.Program (target='blenderplayer',
|
|
|
|
source=d_obj + ['source/icons/winblender.res'])
|
|
|
|
else:
|
|
|
|
if sys.platform == 'cygwin':
|
|
|
|
player_blender.Replace (CC='g++')
|
|
|
|
player_blender.Program (target='blenderplayer', source=d_obj)
|
|
|
|
if sys.platform=='win32':
|
|
|
|
if user_options_dict['BUILD_BINARY']=='debug':
|
2005-05-06 13:37:18 +00:00
|
|
|
browser = Environment(ENV = os.environ)
|
2004-09-25 20:44:57 +00:00
|
|
|
browser_tmp = bs_globals.root_build_dir+'bscmake.tmp'
|
2004-07-14 20:55:17 +00:00
|
|
|
browser.Command ('blenderplayer.bsc', 'blenderplayer$PROGSUFFIX',
|
2004-09-25 20:44:57 +00:00
|
|
|
['dir /b/s '+bs_globals.root_build_dir+'*.sbr >'+browser_tmp,
|
2004-07-14 20:55:17 +00:00
|
|
|
'bscmake /nologo /n /oblenderplayer.bsc @'+browser_tmp,
|
|
|
|
'del '+browser_tmp])
|
2004-07-13 17:01:58 +00:00
|
|
|
|
2004-09-25 20:44:57 +00:00
|
|
|
release_target = env.Alias("release", bs_arc.BlenderRelease(appname))
|
|
|
|
default_target = env.Alias("default", bs_default.BlenderDefault(appname))
|
|
|
|
wininst_target = env.Alias("winist", bs_nsis.BlenderNSIS(appname))
|
|
|
|
if bs_globals.docopy == 1:
|
|
|
|
bincopy_target = env.Alias("bincopy", bs_bincopy.BlenderCopy(appname))
|
2004-07-18 19:02:56 +00:00
|
|
|
|
2004-07-15 08:26:17 +00:00
|
|
|
else: # only clean target to prevent any building
|
2004-09-25 20:44:57 +00:00
|
|
|
clean_target = env.Alias("clean", bs_clean.DoClean(bs_globals.root_build_dir))
|
2004-07-14 20:55:17 +00:00
|
|
|
Default("clean")
|
2004-07-14 06:09:29 +00:00
|
|
|
|
2004-09-25 20:44:57 +00:00
|
|
|
if bs_globals.enable_clean == 0: # only set up dependencies when not cleaning
|
2004-07-18 19:02:56 +00:00
|
|
|
if sys.platform == 'darwin':
|
|
|
|
Default("release")
|
|
|
|
else:
|
|
|
|
Default("default")
|
2004-07-13 17:01:58 +00:00
|
|
|
|
2004-07-14 20:55:17 +00:00
|
|
|
if sys.platform == 'win32':
|
|
|
|
if user_options_dict['BUILD_BLENDER_PLAYER'] == 1:
|
2004-07-18 19:02:56 +00:00
|
|
|
env.Depends(wininst_target, playername)
|
|
|
|
env.Depends(wininst_target, appname)
|
2004-07-14 20:55:17 +00:00
|
|
|
|
2004-07-14 14:10:39 +00:00
|
|
|
if user_options_dict['BUILD_BLENDER_PLAYER'] == 1:
|
2004-07-18 19:02:56 +00:00
|
|
|
env.Depends(release_target, playername)
|
|
|
|
env.Depends(default_target, playername)
|
2004-09-25 20:44:57 +00:00
|
|
|
if bs_globals.docopy == 1:
|
|
|
|
env.Depends(bincopy_target, playername)
|
|
|
|
env.Depends(release_target, appname)
|
2004-07-18 19:02:56 +00:00
|
|
|
env.Depends(default_target, appname)
|
2004-09-25 20:44:57 +00:00
|
|
|
if bs_globals.docopy == 1:
|
|
|
|
env.Depends(bincopy_target, appname)
|