diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2006-03-17 19:38:39 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2006-03-17 19:38:39 +0300 |
commit | b92c2197ece542afe72b301d069dc80cfff401cd (patch) | |
tree | 1b40220cfb1ab0c8c1f5809f383c83262cab8e14 /SConstruct | |
parent | 73da80e7570148a2c70d12d2f0fc353e7c5386d1 (diff) |
==SCons==
* Applied patch #4012 by Joseph Eagar. The patch provides a way to quickly assign a list
of libraries to build with debug symbols. Usage:
scons BF_QUICKDEBUG=src,bf_blenkernel,bf_blenlib
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 62c41d0c331..be2a8f8fa7e 100644 --- a/SConstruct +++ b/SConstruct @@ -51,6 +51,7 @@ B = tools.Blender ### globals ### platform = sys.platform quickie = None +quickdebug = None ##### BEGIN SETUP ##### @@ -88,6 +89,13 @@ btools.print_targets(B.targets, B.bc) # first check cmdline for toolset and we create env to work on quickie = B.arguments.get('BF_QUICK', None) +quickdebug = B.arguments.get('BF_QUICKDEBUG', None) + +if quickdebug: + B.quickdebug=string.split(quickdebug, ',') +else: + B.quickdebug=[] + if quickie: B.quickie=string.split(quickie,',') else: @@ -151,6 +159,18 @@ else: opts = btools.read_opts(optfiles, B.arguments) opts.Update(env) +#check for additional debug libnames + +if env.has_key('BF_DEBUG_LIBS'): + B.quickdebug += env['BF_DEBUG_LIBS'] + +printdebug = B.arguments.get('BF_LISTDEBUG', 0) + +if len(B.quickdebug) > 0 and printdebug != 0: + print B.bc.OKGREEN + "Buildings these libs with debug symbols:" + B.bc.ENDC + for l in B.quickdebug: + print "\t" + l + # check target for blenderplayer. Set WITH_BF_PLAYER if found on cmdline if 'blenderplayer' in B.targets: env['WITH_BF_PLAYER'] = True |