2004-08-04 22:00:41 +00:00
|
|
|
#!/usr/bin/env python
|
2006-02-04 14:15:10 +00:00
|
|
|
# $Id$
|
2008-04-16 22:40:48 +00:00
|
|
|
# ***** BEGIN GPL LICENSE BLOCK *****
|
2006-02-04 14:15:10 +00:00
|
|
|
#
|
|
|
|
# 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
|
2008-04-16 22:40:48 +00:00
|
|
|
# of the License, or (at your option) any later version.
|
2006-02-04 14:15:10 +00:00
|
|
|
#
|
|
|
|
# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
#
|
2006-02-25 14:53:27 +00:00
|
|
|
# The Original Code is Copyright (C) 2006, Blender Foundation
|
2006-02-04 14:15:10 +00:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
2006-02-25 14:53:27 +00:00
|
|
|
# The Original Code is: all of this file.
|
2006-02-04 14:15:10 +00:00
|
|
|
#
|
|
|
|
# Contributor(s): Nathan Letwory.
|
|
|
|
#
|
2008-04-16 22:40:48 +00:00
|
|
|
# ***** END GPL LICENSE BLOCK *****
|
2006-02-04 14:15:10 +00:00
|
|
|
#
|
|
|
|
# Main entry-point for the SCons building system
|
|
|
|
# Set up some custom actions and target/argument handling
|
|
|
|
# Then read all SConscripts and build
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2009-02-20 22:08:02 +00:00
|
|
|
import platform as pltfrm
|
|
|
|
|
2009-08-03 14:48:39 +00:00
|
|
|
# Need a better way to do this. Automagical maybe is not the best thing, maybe it is.
|
2009-02-20 22:08:02 +00:00
|
|
|
if pltfrm.architecture()[0] == '64bit':
|
2010-08-29 20:52:05 +00:00
|
|
|
bitness = 64
|
2009-02-20 22:08:02 +00:00
|
|
|
else:
|
2010-08-29 20:52:05 +00:00
|
|
|
bitness = 32
|
2009-02-20 22:08:02 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
import sys
|
|
|
|
import os
|
|
|
|
import os.path
|
|
|
|
import string
|
|
|
|
import shutil
|
|
|
|
import glob
|
2006-02-07 21:24:36 +00:00
|
|
|
import re
|
2008-04-08 17:01:11 +00:00
|
|
|
from tempfile import mkdtemp
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-07-19 09:02:27 +00:00
|
|
|
# store path to tools
|
|
|
|
toolpath=os.path.join(".", "build_files", "scons", "tools")
|
|
|
|
|
2010-07-12 18:26:35 +00:00
|
|
|
# needed for importing tools
|
2010-07-19 09:02:27 +00:00
|
|
|
sys.path.append(toolpath)
|
2010-07-12 18:26:35 +00:00
|
|
|
|
2010-07-14 16:38:09 +00:00
|
|
|
import Blender
|
|
|
|
import btools
|
|
|
|
import bcolors
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-10-30 23:55:07 +00:00
|
|
|
EnsureSConsVersion(1,0,0)
|
|
|
|
|
2010-07-14 16:38:09 +00:00
|
|
|
BlenderEnvironment = Blender.BlenderEnvironment
|
|
|
|
B = Blender
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-07-14 16:38:09 +00:00
|
|
|
VERSION = btools.VERSION # This is used in creating the local config directories
|
2010-07-05 07:06:19 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
### globals ###
|
|
|
|
platform = sys.platform
|
|
|
|
quickie = None
|
2006-03-17 16:38:39 +00:00
|
|
|
quickdebug = None
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
##### BEGIN SETUP #####
|
|
|
|
|
2008-12-23 16:07:24 +00:00
|
|
|
B.possible_types = ['core', 'player', 'intern', 'extern']
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2006-02-05 11:28:28 +00:00
|
|
|
B.binarykind = ['blender' , 'blenderplayer']
|
2006-02-04 14:15:10 +00:00
|
|
|
##################################
|
|
|
|
# target and argument validation #
|
|
|
|
##################################
|
|
|
|
# XX cheating for BF_FANCY, we check for BF_FANCY before args are validated
|
|
|
|
use_color = ARGUMENTS.get('BF_FANCY', '1')
|
|
|
|
if platform=='win32':
|
2010-08-29 20:52:05 +00:00
|
|
|
use_color = None
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
if not use_color=='1':
|
2010-08-29 20:52:05 +00:00
|
|
|
B.bc.disable()
|
|
|
|
|
2007-05-19 22:57:28 +00:00
|
|
|
#on defaut white Os X terminal, some colors are totally unlegible
|
|
|
|
if platform=='darwin':
|
2010-08-29 20:52:05 +00:00
|
|
|
B.bc.OKGREEN = '\033[34m'
|
|
|
|
B.bc.WARNING = '\033[36m'
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
# arguments
|
|
|
|
print B.bc.HEADER+'Command-line arguments'+B.bc.ENDC
|
|
|
|
B.arguments = btools.validate_arguments(ARGUMENTS, B.bc)
|
|
|
|
btools.print_arguments(B.arguments, B.bc)
|
|
|
|
|
|
|
|
# targets
|
|
|
|
print B.bc.HEADER+'Command-line targets'+B.bc.ENDC
|
|
|
|
B.targets = btools.validate_targets(COMMAND_LINE_TARGETS, B.bc)
|
|
|
|
btools.print_targets(B.targets, B.bc)
|
|
|
|
|
|
|
|
##########################
|
|
|
|
# setting up environment #
|
|
|
|
##########################
|
|
|
|
|
|
|
|
# handling cmd line arguments & config file
|
|
|
|
|
|
|
|
# first check cmdline for toolset and we create env to work on
|
|
|
|
quickie = B.arguments.get('BF_QUICK', None)
|
2006-03-17 16:38:39 +00:00
|
|
|
quickdebug = B.arguments.get('BF_QUICKDEBUG', None)
|
|
|
|
|
|
|
|
if quickdebug:
|
2010-08-29 20:52:05 +00:00
|
|
|
B.quickdebug=string.split(quickdebug, ',')
|
2006-03-17 16:38:39 +00:00
|
|
|
else:
|
2010-08-29 20:52:05 +00:00
|
|
|
B.quickdebug=[]
|
2006-10-18 05:45:47 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
if quickie:
|
2010-08-29 20:52:05 +00:00
|
|
|
B.quickie=string.split(quickie,',')
|
2004-08-04 22:00:41 +00:00
|
|
|
else:
|
2010-08-29 20:52:05 +00:00
|
|
|
B.quickie=[]
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
toolset = B.arguments.get('BF_TOOLSET', None)
|
|
|
|
if toolset:
|
2010-08-29 20:52:05 +00:00
|
|
|
print "Using " + toolset
|
|
|
|
if toolset=='mstoolkit':
|
|
|
|
env = BlenderEnvironment(ENV = os.environ)
|
|
|
|
env.Tool('mstoolkit', [toolpath])
|
|
|
|
else:
|
|
|
|
env = BlenderEnvironment(tools=[toolset], ENV = os.environ)
|
|
|
|
# xxx commented out, as was supressing warnings under mingw..
|
|
|
|
#if env:
|
|
|
|
# btools.SetupSpawn(env)
|
2004-07-18 19:02:56 +00:00
|
|
|
else:
|
2010-08-29 20:52:05 +00:00
|
|
|
if bitness==64 and platform=='win32':
|
|
|
|
env = BlenderEnvironment(ENV = os.environ, MSVS_ARCH='amd64')
|
|
|
|
else:
|
|
|
|
env = BlenderEnvironment(ENV = os.environ)
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
if not env:
|
2010-08-29 20:52:05 +00:00
|
|
|
print "Could not create a build environment"
|
|
|
|
Exit()
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2007-05-31 07:42:54 +00:00
|
|
|
|
2006-02-23 21:08:40 +00:00
|
|
|
cc = B.arguments.get('CC', None)
|
|
|
|
cxx = B.arguments.get('CXX', None)
|
|
|
|
if cc:
|
2010-08-29 20:52:05 +00:00
|
|
|
env['CC'] = cc
|
2006-02-23 21:08:40 +00:00
|
|
|
if cxx:
|
2010-08-29 20:52:05 +00:00
|
|
|
env['CXX'] = cxx
|
2006-02-23 21:08:40 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
if env['CC'] in ['cl', 'cl.exe'] and sys.platform=='win32':
|
2010-08-29 20:52:05 +00:00
|
|
|
if bitness == 64:
|
|
|
|
platform = 'win64-vc'
|
|
|
|
else:
|
|
|
|
platform = 'win32-vc'
|
2006-02-04 14:15:10 +00:00
|
|
|
elif env['CC'] in ['gcc'] and sys.platform=='win32':
|
2010-08-29 20:52:05 +00:00
|
|
|
platform = 'win32-mingw'
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2007-05-31 07:42:54 +00:00
|
|
|
env.SConscriptChdir(0)
|
2006-11-30 12:39:09 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
crossbuild = B.arguments.get('BF_CROSS', None)
|
2009-02-20 22:08:02 +00:00
|
|
|
if crossbuild and platform not in ('win32-vc', 'win64-vc'):
|
2010-08-29 20:52:05 +00:00
|
|
|
platform = 'linuxcross'
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
env['OURPLATFORM'] = platform
|
2004-01-04 21:11:59 +00:00
|
|
|
|
2010-07-12 18:26:35 +00:00
|
|
|
configfile = os.path.join("build_files", "scons", "config", platform + "-config.py")
|
2004-03-02 08:40:19 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
if os.path.exists(configfile):
|
2010-08-29 20:52:05 +00:00
|
|
|
print B.bc.OKGREEN + "Using config file: " + B.bc.ENDC + configfile
|
2004-01-04 21:11:59 +00:00
|
|
|
else:
|
2010-08-29 20:52:05 +00:00
|
|
|
print B.bc.FAIL + configfile + " doesn't exist" + B.bc.ENDC
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
if crossbuild and env['PLATFORM'] != 'win32':
|
2010-08-29 20:52:05 +00:00
|
|
|
print B.bc.HEADER+"Preparing for crossbuild"+B.bc.ENDC
|
|
|
|
env.Tool('crossmingw', [toolpath])
|
|
|
|
# todo: determine proper libs/includes etc.
|
|
|
|
# Needed for gui programs, console programs should do without it
|
2010-02-01 18:39:41 +00:00
|
|
|
|
2010-08-29 20:52:05 +00:00
|
|
|
# Now we don't need this option to have console window
|
|
|
|
# env.Append(LINKFLAGS=['-mwindows'])
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-04-27 20:17:14 +00:00
|
|
|
userconfig = B.arguments.get('BF_CONFIG', 'user-config.py')
|
2006-02-04 14:15:10 +00:00
|
|
|
# first read platform config. B.arguments will override
|
|
|
|
optfiles = [configfile]
|
2008-04-27 20:17:14 +00:00
|
|
|
if os.path.exists(userconfig):
|
2010-08-29 20:52:05 +00:00
|
|
|
print B.bc.OKGREEN + "Using user-config file: " + B.bc.ENDC + userconfig
|
|
|
|
optfiles += [userconfig]
|
2004-02-07 20:44:43 +00:00
|
|
|
else:
|
2010-08-29 20:52:05 +00:00
|
|
|
print B.bc.WARNING + userconfig + " not found, no user overrides" + B.bc.ENDC
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-05-23 21:20:13 +00:00
|
|
|
opts = btools.read_opts(env, optfiles, B.arguments)
|
2006-02-04 14:15:10 +00:00
|
|
|
opts.Update(env)
|
|
|
|
|
2007-12-20 17:52:57 +00:00
|
|
|
if not env['BF_FANCY']:
|
2010-08-29 20:52:05 +00:00
|
|
|
B.bc.disable()
|
2007-12-20 17:52:57 +00:00
|
|
|
|
2010-02-11 22:02:27 +00:00
|
|
|
|
|
|
|
# remove install dir so old and new files are not mixed.
|
2010-02-12 09:18:10 +00:00
|
|
|
# NOTE: only do the scripts directory for now, otherwise is too disruptive for developers
|
|
|
|
# TODO: perhaps we need an option (off by default) to not do this altogether...
|
2010-02-12 12:29:39 +00:00
|
|
|
if not env['WITHOUT_BF_INSTALL'] and not env['WITHOUT_BF_OVERWRITE_INSTALL']:
|
2010-08-29 20:52:05 +00:00
|
|
|
scriptsDir = os.path.join(env['BF_INSTALLDIR'], VERSION, 'scripts')
|
|
|
|
if os.path.isdir(scriptsDir):
|
|
|
|
print B.bc.OKGREEN + "Clearing installation directory%s: %s" % (B.bc.ENDC, os.path.abspath(scriptsDir))
|
|
|
|
shutil.rmtree(scriptsDir)
|
2010-02-11 22:02:27 +00:00
|
|
|
|
|
|
|
|
2008-10-30 23:55:07 +00:00
|
|
|
SetOption('num_jobs', int(env['BF_NUMJOBS']))
|
2010-02-11 22:02:27 +00:00
|
|
|
print B.bc.OKGREEN + "Build with parallel jobs%s: %s" % (B.bc.ENDC, GetOption('num_jobs'))
|
2010-06-05 11:56:55 +00:00
|
|
|
print B.bc.OKGREEN + "Build with debug symbols%s: %s" % (B.bc.ENDC, env['BF_DEBUG'])
|
2008-10-30 23:55:07 +00:00
|
|
|
|
2010-08-02 16:27:41 +00:00
|
|
|
if 'blenderlite' in B.targets:
|
2010-08-29 20:52:05 +00:00
|
|
|
target_env_defs = {}
|
|
|
|
target_env_defs['WITH_BF_GAMEENGINE'] = False
|
|
|
|
target_env_defs['WITH_BF_OPENAL'] = False
|
|
|
|
target_env_defs['WITH_BF_OPENEXR'] = False
|
|
|
|
target_env_defs['WITH_BF_OPENMP'] = False
|
|
|
|
target_env_defs['WITH_BF_ICONV'] = False
|
|
|
|
target_env_defs['WITH_BF_INTERNATIONAL'] = False
|
|
|
|
target_env_defs['WITH_BF_OPENJPEG'] = False
|
|
|
|
target_env_defs['WITH_BF_FFMPEG'] = False
|
|
|
|
target_env_defs['WITH_BF_QUICKTIME'] = False
|
|
|
|
target_env_defs['WITH_BF_REDCODE'] = False
|
|
|
|
target_env_defs['WITH_BF_DDS'] = False
|
|
|
|
target_env_defs['WITH_BF_CINEON'] = False
|
|
|
|
target_env_defs['WITH_BF_HDR'] = False
|
|
|
|
target_env_defs['WITH_BF_ZLIB'] = False
|
|
|
|
target_env_defs['WITH_BF_SDL'] = False
|
|
|
|
target_env_defs['WITH_BF_JPEG'] = False
|
|
|
|
target_env_defs['WITH_BF_PNG'] = False
|
|
|
|
target_env_defs['WITH_BF_BULLET'] = False
|
|
|
|
target_env_defs['WITH_BF_BINRELOC'] = False
|
|
|
|
target_env_defs['BF_BUILDINFO'] = False
|
|
|
|
target_env_defs['BF_NO_ELBEEM'] = True
|
|
|
|
target_env_defs['WITH_BF_PYTHON'] = False
|
|
|
|
|
|
|
|
# Merge blenderlite, let command line to override
|
|
|
|
for k,v in target_env_defs.iteritems():
|
|
|
|
if k not in B.arguments:
|
|
|
|
env[k] = v
|
2009-09-21 03:16:26 +00:00
|
|
|
|
|
|
|
|
2008-01-29 21:01:12 +00:00
|
|
|
if env['WITH_BF_OPENMP'] == 1:
|
2010-08-29 20:52:05 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win64-vc'):
|
|
|
|
env['CCFLAGS'].append('/openmp')
|
|
|
|
env['CPPFLAGS'].append('/openmp')
|
|
|
|
env['CXXFLAGS'].append('/openmp')
|
|
|
|
else:
|
|
|
|
if env['CC'].endswith('icc'): # to be able to handle CC=/opt/bla/icc case
|
|
|
|
env.Append(LINKFLAGS=['-openmp', '-static-intel'])
|
|
|
|
env['CCFLAGS'].append('-openmp')
|
|
|
|
env['CPPFLAGS'].append('-openmp')
|
|
|
|
env['CXXFLAGS'].append('-openmp')
|
|
|
|
else:
|
|
|
|
env.Append(CCFLAGS=['-fopenmp'])
|
|
|
|
env.Append(CPPFLAGS=['-fopenmp'])
|
|
|
|
env.Append(CXXFLAGS=['-fopenmp'])
|
2008-01-29 21:01:12 +00:00
|
|
|
|
2009-10-29 18:06:49 +00:00
|
|
|
if env['WITH_GHOST_COCOA'] == True:
|
2010-08-29 20:52:05 +00:00
|
|
|
env.Append(CFLAGS=['-DGHOST_COCOA'])
|
|
|
|
env.Append(CXXFLAGS=['-DGHOST_COCOA'])
|
|
|
|
env.Append(CPPFLAGS=['-DGHOST_COCOA'])
|
2009-11-18 15:54:25 +00:00
|
|
|
|
|
|
|
if env['USE_QTKIT'] == True:
|
2010-08-29 20:52:05 +00:00
|
|
|
env.Append(CFLAGS=['-DUSE_QTKIT'])
|
|
|
|
env.Append(CXXFLAGS=['-DUSE_QTKIT'])
|
|
|
|
env.Append(CPPFLAGS=['-DUSE_QTKIT'])
|
2009-10-29 18:06:49 +00:00
|
|
|
|
2006-03-17 16:38:39 +00:00
|
|
|
#check for additional debug libnames
|
|
|
|
|
|
|
|
if env.has_key('BF_DEBUG_LIBS'):
|
2010-08-29 20:52:05 +00:00
|
|
|
B.quickdebug += env['BF_DEBUG_LIBS']
|
2006-03-17 16:38:39 +00:00
|
|
|
|
|
|
|
printdebug = B.arguments.get('BF_LISTDEBUG', 0)
|
|
|
|
|
|
|
|
if len(B.quickdebug) > 0 and printdebug != 0:
|
2010-08-29 20:52:05 +00:00
|
|
|
print B.bc.OKGREEN + "Buildings these libs with debug symbols:" + B.bc.ENDC
|
|
|
|
for l in B.quickdebug:
|
|
|
|
print "\t" + l
|
2006-03-17 16:38:39 +00:00
|
|
|
|
2008-09-18 03:05:02 +00:00
|
|
|
# remove stdc++ from LLIBS if we are building a statc linked CXXFLAGS
|
|
|
|
if env['WITH_BF_STATICCXX']:
|
2010-08-29 20:52:05 +00:00
|
|
|
if 'stdc++' in env['LLIBS']:
|
|
|
|
env['LLIBS'].remove('stdc++')
|
|
|
|
else:
|
|
|
|
print '\tcould not remove stdc++ library from LLIBS, WITH_BF_STATICCXX may not work for your platform'
|
2008-09-18 03:05:02 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
# check target for blenderplayer. Set WITH_BF_PLAYER if found on cmdline
|
|
|
|
if 'blenderplayer' in B.targets:
|
2010-08-29 20:52:05 +00:00
|
|
|
env['WITH_BF_PLAYER'] = True
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2006-02-04 15:10:59 +00:00
|
|
|
if 'blendernogame' in B.targets:
|
2010-08-29 20:52:05 +00:00
|
|
|
env['WITH_BF_GAMEENGINE'] = False
|
2006-02-04 15:10:59 +00:00
|
|
|
|
2010-02-11 22:02:27 +00:00
|
|
|
# disable elbeem (fluidsim) compilation?
|
|
|
|
if env['BF_NO_ELBEEM'] == 1:
|
2010-08-29 20:52:05 +00:00
|
|
|
env['CPPFLAGS'].append('-DDISABLE_ELBEEM')
|
|
|
|
env['CXXFLAGS'].append('-DDISABLE_ELBEEM')
|
|
|
|
env['CCFLAGS'].append('-DDISABLE_ELBEEM')
|
2010-02-11 22:02:27 +00:00
|
|
|
|
2009-02-20 22:08:02 +00:00
|
|
|
if env['WITH_BF_SDL'] == False and env['OURPLATFORM'] in ('win32-vc', 'win32-ming', 'win64-vc'):
|
2010-08-29 20:52:05 +00:00
|
|
|
env['PLATFORM_LINKFLAGS'].remove('/ENTRY:mainCRTStartup')
|
|
|
|
env['PLATFORM_LINKFLAGS'].append('/ENTRY:main')
|
2008-12-07 13:22:50 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
# lastly we check for root_build_dir ( we should not do before, otherwise we might do wrong builddir
|
|
|
|
B.root_build_dir = env['BF_BUILDDIR']
|
2010-08-02 16:27:41 +00:00
|
|
|
B.doc_build_dir = os.path.join(env['BF_INSTALLDIR'], 'doc')
|
2006-02-04 14:15:10 +00:00
|
|
|
if not B.root_build_dir[-1]==os.sep:
|
2010-08-29 20:52:05 +00:00
|
|
|
B.root_build_dir += os.sep
|
2008-10-19 22:01:46 +00:00
|
|
|
if not B.doc_build_dir[-1]==os.sep:
|
2010-08-29 20:52:05 +00:00
|
|
|
B.doc_build_dir += os.sep
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
# We do a shortcut for clean when no quicklist is given: just delete
|
|
|
|
# builddir without reading in SConscripts
|
|
|
|
do_clean = None
|
|
|
|
if 'clean' in B.targets:
|
2010-08-29 20:52:05 +00:00
|
|
|
do_clean = True
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
if not quickie and do_clean:
|
2010-08-29 20:52:05 +00:00
|
|
|
if os.path.exists(B.doc_build_dir):
|
|
|
|
print B.bc.HEADER+'Cleaning doc dir...'+B.bc.ENDC
|
|
|
|
dirs = os.listdir(B.doc_build_dir)
|
|
|
|
for entry in dirs:
|
|
|
|
if os.path.isdir(B.doc_build_dir + entry) == 1:
|
|
|
|
print "clean dir %s"%(B.doc_build_dir+entry)
|
|
|
|
shutil.rmtree(B.doc_build_dir+entry)
|
|
|
|
else: # remove file
|
|
|
|
print "remove file %s"%(B.doc_build_dir+entry)
|
|
|
|
os.remove(B.root_build_dir+entry)
|
|
|
|
if os.path.exists(B.root_build_dir):
|
|
|
|
print B.bc.HEADER+'Cleaning build dir...'+B.bc.ENDC
|
|
|
|
dirs = os.listdir(B.root_build_dir)
|
|
|
|
for entry in dirs:
|
|
|
|
if os.path.isdir(B.root_build_dir + entry) == 1:
|
|
|
|
print "clean dir %s"%(B.root_build_dir+entry)
|
|
|
|
shutil.rmtree(B.root_build_dir+entry)
|
|
|
|
else: # remove file
|
|
|
|
print "remove file %s"%(B.root_build_dir+entry)
|
|
|
|
os.remove(B.root_build_dir+entry)
|
|
|
|
for confile in ['extern/ffmpeg/config.mak', 'extern/x264/config.mak',
|
|
|
|
'extern/xvidcore/build/generic/platform.inc', 'extern/ffmpeg/include']:
|
|
|
|
if os.path.exists(confile):
|
|
|
|
print "clean file %s"%confile
|
|
|
|
if os.path.isdir(confile):
|
|
|
|
for root, dirs, files in os.walk(confile):
|
|
|
|
for name in files:
|
|
|
|
os.remove(os.path.join(root, name))
|
|
|
|
else:
|
|
|
|
os.remove(confile)
|
|
|
|
print B.bc.OKGREEN+'...done'+B.bc.ENDC
|
|
|
|
else:
|
|
|
|
print B.bc.HEADER+'Already Clean, nothing to do.'+B.bc.ENDC
|
|
|
|
Exit()
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
if not os.path.isdir ( B.root_build_dir):
|
2010-08-29 20:52:05 +00:00
|
|
|
os.makedirs ( B.root_build_dir )
|
|
|
|
os.makedirs ( B.root_build_dir + 'source' )
|
|
|
|
os.makedirs ( B.root_build_dir + 'intern' )
|
|
|
|
os.makedirs ( B.root_build_dir + 'extern' )
|
|
|
|
os.makedirs ( B.root_build_dir + 'lib' )
|
|
|
|
os.makedirs ( B.root_build_dir + 'bin' )
|
2010-08-02 16:27:41 +00:00
|
|
|
# # Docs not working with epy anymore
|
|
|
|
# if not os.path.isdir(B.doc_build_dir) and env['WITH_BF_DOCS']:
|
2010-08-29 20:52:05 +00:00
|
|
|
# os.makedirs ( B.doc_build_dir )
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
Help(opts.GenerateHelpText(env))
|
|
|
|
|
|
|
|
# default is new quieter output, but if you need to see the
|
|
|
|
# commands, do 'scons BF_QUIET=0'
|
|
|
|
bf_quietoutput = B.arguments.get('BF_QUIET', '1')
|
2008-03-19 17:23:14 +00:00
|
|
|
if env['BF_QUIET']:
|
2010-08-29 20:52:05 +00:00
|
|
|
B.set_quiet_output(env)
|
2004-02-07 20:44:43 +00:00
|
|
|
else:
|
2010-08-29 20:52:05 +00:00
|
|
|
if toolset=='msvc':
|
|
|
|
B.msvc_hack(env)
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-02-11 22:02:27 +00:00
|
|
|
print B.bc.HEADER+'Building in: ' + B.bc.ENDC + os.path.abspath(B.root_build_dir)
|
2006-02-04 14:15:10 +00:00
|
|
|
env.SConsignFile(B.root_build_dir+'scons-signatures')
|
|
|
|
B.init_lib_dict()
|
|
|
|
|
|
|
|
##### END SETUP ##########
|
|
|
|
|
|
|
|
Export('env')
|
|
|
|
|
|
|
|
BuildDir(B.root_build_dir+'/intern', 'intern', duplicate=0)
|
|
|
|
SConscript(B.root_build_dir+'/intern/SConscript')
|
|
|
|
BuildDir(B.root_build_dir+'/extern', 'extern', duplicate=0)
|
|
|
|
SConscript(B.root_build_dir+'/extern/SConscript')
|
|
|
|
BuildDir(B.root_build_dir+'/source', 'source', duplicate=0)
|
|
|
|
SConscript(B.root_build_dir+'/source/SConscript')
|
|
|
|
|
|
|
|
# now that we have read all SConscripts, we know what
|
|
|
|
# libraries will be built. Create list of
|
|
|
|
# libraries to give as objects to linking phase
|
|
|
|
mainlist = []
|
|
|
|
for tp in B.possible_types:
|
2010-08-29 20:52:05 +00:00
|
|
|
if not tp == 'player':
|
|
|
|
mainlist += B.create_blender_liblist(env, tp)
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
if B.arguments.get('BF_PRIORITYLIST', '0')=='1':
|
2010-08-29 20:52:05 +00:00
|
|
|
B.propose_priorities()
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2006-03-10 20:47:34 +00:00
|
|
|
dobj = B.buildinfo(env, "dynamic") + B.resources
|
2006-02-04 14:15:10 +00:00
|
|
|
thestatlibs, thelibincs = B.setup_staticlibs(env)
|
|
|
|
thesyslibs = B.setup_syslibs(env)
|
|
|
|
|
2008-10-19 21:25:17 +00:00
|
|
|
if 'blender' in B.targets or not env['WITH_BF_NOBLENDER']:
|
2010-08-29 20:52:05 +00:00
|
|
|
env.BlenderProg(B.root_build_dir, "blender", mainlist + thestatlibs + dobj, thesyslibs, [B.root_build_dir+'/lib'] + thelibincs, 'blender')
|
2006-02-04 14:15:10 +00:00
|
|
|
if env['WITH_BF_PLAYER']:
|
2010-08-29 20:52:05 +00:00
|
|
|
playerlist = B.create_blender_liblist(env, 'player')
|
|
|
|
playerlist += B.create_blender_liblist(env, 'intern')
|
|
|
|
playerlist += B.create_blender_liblist(env, 'extern')
|
|
|
|
env.BlenderProg(B.root_build_dir, "blenderplayer", playerlist, thestatlibs + dobj + thesyslibs, [B.root_build_dir+'/lib'] + thelibincs, 'blenderplayer')
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
##### Now define some targets
|
|
|
|
|
|
|
|
|
|
|
|
#------------ INSTALL
|
|
|
|
|
2007-03-29 04:28:29 +00:00
|
|
|
#-- binaries
|
|
|
|
blenderinstall = []
|
|
|
|
if env['OURPLATFORM']=='darwin':
|
2010-08-29 20:52:05 +00:00
|
|
|
for prg in B.program_list:
|
|
|
|
bundle = '%s.app' % prg[0]
|
|
|
|
bundledir = os.path.dirname(bundle)
|
|
|
|
for dp, dn, df in os.walk(bundle):
|
|
|
|
if '.svn' in dn:
|
|
|
|
dn.remove('.svn')
|
|
|
|
if '_svn' in dn:
|
|
|
|
dn.remove('_svn')
|
|
|
|
dir=env['BF_INSTALLDIR']+dp[len(bundledir):]
|
|
|
|
source=[dp+os.sep+f for f in df]
|
|
|
|
blenderinstall.append(env.Install(dir=dir,source=source))
|
2007-03-29 04:28:29 +00:00
|
|
|
else:
|
2010-08-29 20:52:05 +00:00
|
|
|
blenderinstall = env.Install(dir=env['BF_INSTALLDIR'], source=B.program_list)
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-07-05 07:06:19 +00:00
|
|
|
#-- local path = config files in install dir: installdir\VERSION
|
|
|
|
#- dont do config and scripts for darwin, it is already in the bundle
|
2006-02-04 14:15:10 +00:00
|
|
|
dotblendlist = []
|
2010-07-04 15:35:23 +00:00
|
|
|
datafileslist = []
|
|
|
|
datafilestargetlist = []
|
2006-02-04 14:15:10 +00:00
|
|
|
dottargetlist = []
|
2006-05-15 16:56:32 +00:00
|
|
|
scriptinstall = []
|
2008-03-22 01:39:11 +00:00
|
|
|
|
|
|
|
if env['OURPLATFORM']!='darwin':
|
2010-08-29 20:52:05 +00:00
|
|
|
for dp, dn, df in os.walk('bin/.blender'):
|
|
|
|
if '.svn' in dn:
|
|
|
|
dn.remove('.svn')
|
|
|
|
if '_svn' in dn:
|
|
|
|
dn.remove('_svn')
|
|
|
|
|
|
|
|
for f in df:
|
|
|
|
if not env['WITH_BF_INTERNATIONAL']:
|
|
|
|
if 'locale' in dp:
|
|
|
|
continue
|
|
|
|
if f == '.Blanguages':
|
|
|
|
continue
|
|
|
|
if not env['WITH_BF_FREETYPE']:
|
|
|
|
if f.endswith('.ttf'):
|
|
|
|
continue
|
|
|
|
|
|
|
|
if 'locale' in dp:
|
|
|
|
datafileslist.append(os.path.join(dp,f))
|
|
|
|
dir= os.path.join(*([env['BF_INSTALLDIR']] + [VERSION] + ['datafiles'] + dp.split(os.sep)[1:])) # skip bin
|
|
|
|
datafilestargetlist.append(dir + os.sep + f)
|
|
|
|
|
|
|
|
else:
|
|
|
|
dotblendlist.append(os.path.join(dp, f))
|
|
|
|
dir= os.path.join(*([env['BF_INSTALLDIR']] + [VERSION] + ['config'] + dp.split(os.sep)[1:])) # skip bin
|
|
|
|
dottargetlist.append(dir + os.sep + f)
|
|
|
|
|
|
|
|
dotblenderinstall = []
|
|
|
|
for targetdir,srcfile in zip(dottargetlist, dotblendlist):
|
|
|
|
td, tf = os.path.split(targetdir)
|
|
|
|
dotblenderinstall.append(env.Install(dir=td, source=srcfile))
|
|
|
|
for targetdir,srcfile in zip(datafilestargetlist, datafileslist):
|
|
|
|
td, tf = os.path.split(targetdir)
|
|
|
|
dotblenderinstall.append(env.Install(dir=td, source=srcfile))
|
|
|
|
|
|
|
|
if env['WITH_BF_PYTHON']:
|
|
|
|
#-- local/VERSION/scripts
|
|
|
|
scriptpaths=['release/scripts']
|
|
|
|
for scriptpath in scriptpaths:
|
|
|
|
for dp, dn, df in os.walk(scriptpath):
|
|
|
|
if '.svn' in dn:
|
|
|
|
dn.remove('.svn')
|
|
|
|
if '_svn' in dn:
|
|
|
|
dn.remove('_svn')
|
|
|
|
|
|
|
|
dir = os.path.join(env['BF_INSTALLDIR'], VERSION)
|
|
|
|
dir += os.sep + os.path.basename(scriptpath) + dp[len(scriptpath):]
|
|
|
|
|
|
|
|
source=[os.path.join(dp, f) for f in df if f[-3:]!='pyc']
|
|
|
|
scriptinstall.append(env.Install(dir=dir,source=source))
|
2009-04-11 02:18:24 +00:00
|
|
|
|
2008-09-19 21:00:45 +00:00
|
|
|
#-- icons
|
|
|
|
if env['OURPLATFORM']=='linux2':
|
2010-08-29 20:52:05 +00:00
|
|
|
iconlist = []
|
|
|
|
icontargetlist = []
|
|
|
|
|
|
|
|
for tp, tn, tf in os.walk('release/freedesktop/icons'):
|
|
|
|
if '.svn' in tn:
|
|
|
|
tn.remove('.svn')
|
|
|
|
if '_svn' in tn:
|
|
|
|
tn.remove('_svn')
|
|
|
|
for f in tf:
|
|
|
|
iconlist.append(os.path.join(tp, f))
|
|
|
|
icontargetlist.append( os.path.join(*([env['BF_INSTALLDIR']] + tp.split(os.sep)[2:] + [f])) )
|
|
|
|
|
|
|
|
iconinstall = []
|
|
|
|
for targetdir,srcfile in zip(icontargetlist, iconlist):
|
|
|
|
td, tf = os.path.split(targetdir)
|
|
|
|
iconinstall.append(env.Install(dir=td, source=srcfile))
|
2008-09-19 21:00:45 +00:00
|
|
|
|
2008-12-14 17:32:24 +00:00
|
|
|
# dlls for linuxcross
|
|
|
|
# TODO - add more libs, for now this lets blenderlite run
|
|
|
|
if env['OURPLATFORM']=='linuxcross':
|
2010-08-29 20:52:05 +00:00
|
|
|
dir=env['BF_INSTALLDIR']
|
|
|
|
source = []
|
2010-02-01 18:39:41 +00:00
|
|
|
|
2010-08-29 20:52:05 +00:00
|
|
|
if env['WITH_BF_OPENMP']:
|
|
|
|
source += ['../lib/windows/pthreads/lib/pthreadGC2.dll']
|
2010-02-01 18:39:41 +00:00
|
|
|
|
2010-08-29 20:52:05 +00:00
|
|
|
scriptinstall.append(env.Install(dir=dir, source=source))
|
2008-12-14 17:32:24 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
#-- plugins
|
|
|
|
pluglist = []
|
|
|
|
plugtargetlist = []
|
|
|
|
for tp, tn, tf in os.walk('release/plugins'):
|
2010-08-29 20:52:05 +00:00
|
|
|
if '.svn' in tn:
|
|
|
|
tn.remove('.svn')
|
|
|
|
if '_svn' in tn:
|
|
|
|
tn.remove('_svn')
|
|
|
|
df = tp[8:] # remove 'release/'
|
|
|
|
for f in tf:
|
|
|
|
pluglist.append(os.path.join(tp, f))
|
|
|
|
plugtargetlist.append( os.path.join(env['BF_INSTALLDIR'], df, f) )
|
2009-09-21 03:16:26 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-05-01 13:54:25 +00:00
|
|
|
# header files for plugins
|
|
|
|
pluglist.append('source/blender/blenpluginapi/documentation.h')
|
2010-08-02 16:27:41 +00:00
|
|
|
plugtargetlist.append(os.path.join(env['BF_INSTALLDIR'], 'plugins', 'include', 'documentation.h'))
|
2008-05-01 13:54:25 +00:00
|
|
|
pluglist.append('source/blender/blenpluginapi/externdef.h')
|
2010-08-02 16:27:41 +00:00
|
|
|
plugtargetlist.append(os.path.join(env['BF_INSTALLDIR'], 'plugins', 'include', 'externdef.h'))
|
2008-05-01 13:54:25 +00:00
|
|
|
pluglist.append('source/blender/blenpluginapi/floatpatch.h')
|
2010-08-02 16:27:41 +00:00
|
|
|
plugtargetlist.append(os.path.join(env['BF_INSTALLDIR'], 'plugins', 'include', 'floatpatch.h'))
|
2008-05-01 13:54:25 +00:00
|
|
|
pluglist.append('source/blender/blenpluginapi/iff.h')
|
2010-08-02 16:27:41 +00:00
|
|
|
plugtargetlist.append(os.path.join(env['BF_INSTALLDIR'], 'plugins', 'include', 'iff.h'))
|
2008-05-01 13:54:25 +00:00
|
|
|
pluglist.append('source/blender/blenpluginapi/plugin.h')
|
2010-08-02 16:27:41 +00:00
|
|
|
plugtargetlist.append(os.path.join(env['BF_INSTALLDIR'], 'plugins', 'include', 'plugin.h'))
|
2008-05-01 13:54:25 +00:00
|
|
|
pluglist.append('source/blender/blenpluginapi/util.h')
|
2010-08-02 16:27:41 +00:00
|
|
|
plugtargetlist.append(os.path.join(env['BF_INSTALLDIR'], 'plugins', 'include', 'util.h'))
|
2008-05-01 14:22:21 +00:00
|
|
|
pluglist.append('source/blender/blenpluginapi/plugin.DEF')
|
2010-08-02 16:27:41 +00:00
|
|
|
plugtargetlist.append(os.path.join(env['BF_INSTALLDIR'], 'plugins', 'include', 'plugin.def'))
|
2008-05-01 13:54:25 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
plugininstall = []
|
|
|
|
for targetdir,srcfile in zip(plugtargetlist, pluglist):
|
2010-08-29 20:52:05 +00:00
|
|
|
td, tf = os.path.split(targetdir)
|
|
|
|
plugininstall.append(env.Install(dir=td, source=srcfile))
|
2006-02-04 14:15:10 +00:00
|
|
|
|
|
|
|
textlist = []
|
|
|
|
texttargetlist = []
|
|
|
|
for tp, tn, tf in os.walk('release/text'):
|
2010-08-29 20:52:05 +00:00
|
|
|
if '.svn' in tn:
|
|
|
|
tn.remove('.svn')
|
|
|
|
if '_svn' in tn:
|
|
|
|
tn.remove('_svn')
|
|
|
|
for f in tf:
|
|
|
|
textlist.append(tp+os.sep+f)
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-08-02 16:27:41 +00:00
|
|
|
textinstall = env.Install(dir=env['BF_INSTALLDIR'], source=textlist)
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2008-03-22 01:39:11 +00:00
|
|
|
if env['OURPLATFORM']=='darwin':
|
2010-08-29 20:52:05 +00:00
|
|
|
allinstall = [blenderinstall, plugininstall, textinstall]
|
2008-09-19 21:00:45 +00:00
|
|
|
elif env['OURPLATFORM']=='linux2':
|
2010-08-29 20:52:05 +00:00
|
|
|
allinstall = [blenderinstall, dotblenderinstall, scriptinstall, plugininstall, textinstall, iconinstall]
|
2008-03-22 01:39:11 +00:00
|
|
|
else:
|
2010-08-29 20:52:05 +00:00
|
|
|
allinstall = [blenderinstall, dotblenderinstall, scriptinstall, plugininstall, textinstall]
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2010-02-01 18:39:41 +00:00
|
|
|
if env['OURPLATFORM'] in ('win32-vc', 'win32-mingw', 'win64-vc', 'linuxcross'):
|
2010-08-29 20:52:05 +00:00
|
|
|
dllsources = []
|
|
|
|
|
|
|
|
if not env['OURPLATFORM'] in ('win32-mingw', 'win64-vc', 'linuxcross'):
|
|
|
|
# For MinGW and linuxcross static linking will be used
|
|
|
|
dllsources += ['${LCGDIR}/gettext/lib/gnu_gettext.dll']
|
|
|
|
|
|
|
|
#currently win64-vc doesn't appear to have libpng.dll
|
|
|
|
if env['OURPLATFORM'] != 'win64-vc':
|
|
|
|
dllsources += ['${BF_PNG_LIBPATH}/libpng.dll']
|
|
|
|
|
|
|
|
dllsources += ['${BF_ZLIB_LIBPATH}/zlib.dll']
|
|
|
|
# Used when linking to libtiff was dynamic
|
|
|
|
# keep it here until compilation on all platform would be ok
|
|
|
|
# dllsources += ['${BF_TIFF_LIBPATH}/${BF_TIFF_LIB}.dll']
|
|
|
|
|
|
|
|
if env['OURPLATFORM'] != 'linuxcross':
|
|
|
|
# pthreads library is already added
|
|
|
|
dllsources += ['${BF_PTHREADS_LIBPATH}/${BF_PTHREADS_LIB}.dll']
|
|
|
|
|
|
|
|
if env['WITH_BF_SDL']:
|
|
|
|
if env['OURPLATFORM'] == 'win64-vc':
|
|
|
|
pass # we link statically already to SDL on win64
|
|
|
|
else:
|
|
|
|
dllsources.append('${BF_SDL_LIBPATH}/SDL.dll')
|
|
|
|
|
|
|
|
if env['WITH_BF_PYTHON']:
|
|
|
|
if env['BF_DEBUG']:
|
|
|
|
dllsources.append('${BF_PYTHON_LIBPATH}/${BF_PYTHON_DLL}_d.dll')
|
|
|
|
else:
|
|
|
|
dllsources.append('${BF_PYTHON_LIBPATH}/${BF_PYTHON_DLL}.dll')
|
|
|
|
|
|
|
|
if env['WITH_BF_ICONV']:
|
|
|
|
if env['OURPLATFORM'] == 'win64-vc':
|
|
|
|
pass # we link statically to iconv on win64
|
|
|
|
elif not env['OURPLATFORM'] in ('win32-mingw', 'linuxcross'):
|
|
|
|
#gettext for MinGW and cross-compilation is compiled staticly
|
|
|
|
dllsources += ['${BF_ICONV_LIBPATH}/iconv.dll']
|
|
|
|
|
|
|
|
if env['WITH_BF_OPENAL']:
|
|
|
|
dllsources.append('${LCGDIR}/openal/lib/OpenAL32.dll')
|
|
|
|
dllsources.append('${LCGDIR}/openal/lib/wrap_oal.dll')
|
|
|
|
|
|
|
|
if env['WITH_BF_SNDFILE']:
|
|
|
|
dllsources.append('${LCGDIR}/sndfile/lib/libsndfile-1.dll')
|
|
|
|
|
|
|
|
if env['WITH_BF_FFMPEG']:
|
|
|
|
dllsources += ['${BF_FFMPEG_LIBPATH}/avcodec-52.dll',
|
|
|
|
'${BF_FFMPEG_LIBPATH}/avformat-52.dll',
|
|
|
|
'${BF_FFMPEG_LIBPATH}/avdevice-52.dll',
|
|
|
|
'${BF_FFMPEG_LIBPATH}/avutil-50.dll',
|
|
|
|
'${BF_FFMPEG_LIBPATH}/swscale-0.dll']
|
|
|
|
windlls = env.Install(dir=env['BF_INSTALLDIR'], source = dllsources)
|
|
|
|
allinstall += windlls
|
2006-02-04 14:15:10 +00:00
|
|
|
|
2006-02-05 17:50:19 +00:00
|
|
|
installtarget = env.Alias('install', allinstall)
|
2006-02-04 14:15:10 +00:00
|
|
|
bininstalltarget = env.Alias('install-bin', blenderinstall)
|
|
|
|
|
2007-05-31 11:15:47 +00:00
|
|
|
nsisaction = env.Action(btools.NSIS_Installer, btools.NSIS_print)
|
|
|
|
nsiscmd = env.Command('nsisinstaller', None, nsisaction)
|
|
|
|
nsisalias = env.Alias('nsis', nsiscmd)
|
|
|
|
|
2008-10-19 21:25:17 +00:00
|
|
|
if 'blender' in B.targets:
|
2010-08-29 20:52:05 +00:00
|
|
|
blenderexe= env.Alias('blender', B.program_list)
|
|
|
|
Depends(blenderexe,installtarget)
|
2008-10-19 21:25:17 +00:00
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
if env['WITH_BF_PLAYER']:
|
2010-08-29 20:52:05 +00:00
|
|
|
blenderplayer = env.Alias('blenderplayer', B.program_list)
|
|
|
|
Depends(blenderplayer,installtarget)
|
2006-02-04 15:10:59 +00:00
|
|
|
|
|
|
|
if not env['WITH_BF_GAMEENGINE']:
|
2010-08-29 20:52:05 +00:00
|
|
|
blendernogame = env.Alias('blendernogame', B.program_list)
|
|
|
|
Depends(blendernogame,installtarget)
|
2006-02-07 22:41:17 +00:00
|
|
|
|
2008-09-16 06:31:55 +00:00
|
|
|
if 'blenderlite' in B.targets:
|
2010-08-29 20:52:05 +00:00
|
|
|
blenderlite = env.Alias('blenderlite', B.program_list)
|
|
|
|
Depends(blenderlite,installtarget)
|
2008-09-16 06:31:55 +00:00
|
|
|
|
2007-05-31 11:15:47 +00:00
|
|
|
Depends(nsiscmd, allinstall)
|
|
|
|
|
2006-02-04 14:15:10 +00:00
|
|
|
Default(B.program_list)
|
2007-08-14 20:55:59 +00:00
|
|
|
|
|
|
|
if not env['WITHOUT_BF_INSTALL']:
|
2010-08-29 20:52:05 +00:00
|
|
|
Default(installtarget)
|