From 7c3cdb21a34809407b2201eaacd49d91013cad46 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Fri, 3 Nov 2006 08:13:01 +0000 Subject: * control the creation of .bsc files when BF_DEBUG=1 on win32-vc. BF_BSC=1 (default for BF_DEBUG=1) will have .bsc generated, but this takes an awful long time, so BF_BSC=0 will skip that step. --- tools/Blender.py | 2 +- tools/btools.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/Blender.py b/tools/Blender.py index 4e8ac0f5bf2..2d76e474263 100644 --- a/tools/Blender.py +++ b/tools/Blender.py @@ -427,7 +427,7 @@ class BlenderEnvironment(SConsEnvironment): lenv.Append(LIBS = lenv['BF_QUICKTIME_LIB']) lenv.Append(LIBPATH = lenv['BF_QUICKTIME_LIBPATH']) prog = lenv.Program(target=builddir+'bin/'+progname, source=sources) - if lenv['BF_DEBUG'] and lenv['OURPLATFORM']=='win32-vc': + if lenv['BF_DEBUG'] and lenv['OURPLATFORM']=='win32-vc' and lenv['BF_BSC']: f = lenv.File(progname + '.bsc', builddir) brs = lenv.Command(f, prog, [bsc]) SConsEnvironment.Default(self, brs) diff --git a/tools/btools.py b/tools/btools.py index 6b4dfd0cb46..9a454baad1b 100755 --- a/tools/btools.py +++ b/tools/btools.py @@ -48,7 +48,8 @@ def validate_arguments(args, bc): arg_list = ['BF_DEBUG', 'BF_QUIET', 'BF_CROSS', 'BF_UPDATE', 'BF_INSTALLDIR', 'BF_TOOLSET', 'BF_BINNAME', - 'BF_BUILDDIR', 'BF_FANCY', 'BF_QUICK', 'BF_PROFILE', 'BF_DEBUG', 'BF_DEBUG_FLAGS', + 'BF_BUILDDIR', 'BF_FANCY', 'BF_QUICK', 'BF_PROFILE', + 'BF_DEBUG_FLAGS', 'BF_BSC', 'BF_PRIORITYLIST', 'BF_BUILDINFO','CC', 'CXX', "BF_QUICKDEBUG", "BF_LISTDEBUG", 'LCGDIR'] all_list = opts_list + arg_list @@ -275,6 +276,8 @@ def read_opts(cfg, args): (BoolOption('BF_DEBUG', 'Add debug flags if true', 'false')), ('BF_DEBUG_FLAGS', 'Debug flags', ''), + + (BoolOption('BF_BSC', 'Create .bsc files (msvc only)', 'true')), ('BF_BUILDDIR', 'Build dir', ''), ('BF_INSTALLDIR', 'Installation dir', ''), -- cgit v1.2.3