Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNathan Letwory <nathan@letworyinteractive.com>2006-03-17 19:38:39 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2006-03-17 19:38:39 +0300
commitb92c2197ece542afe72b301d069dc80cfff401cd (patch)
tree1b40220cfb1ab0c8c1f5809f383c83262cab8e14 /tools
parent73da80e7570148a2c70d12d2f0fc353e7c5386d1 (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 'tools')
-rw-r--r--tools/Blender.py7
-rwxr-xr-xtools/btools.py3
2 files changed, 7 insertions, 3 deletions
diff --git a/tools/Blender.py b/tools/Blender.py
index e0967d0e06a..d896775dfb8 100644
--- a/tools/Blender.py
+++ b/tools/Blender.py
@@ -343,13 +343,16 @@ class BlenderEnvironment(SConsEnvironment):
print bc.FAIL+'Cannot continue. Missing argument for BuildBlenderLib '+libname+bc.ENDC
Exit()
if libname in quickie or len(quickie)==0:
- print bc.HEADER+'Configuring library '+bc.ENDC+bc.OKGREEN+libname+bc.ENDC
+ if libname in quickdebug:
+ print bc.HEADER+'Configuring library '+bc.ENDC+bc.OKGREEN+libname +bc.ENDC+bc.OKBLUE+ " (debug mode)" + bc.ENDC
+ else:
+ print bc.HEADER+'Configuring library '+bc.ENDC+bc.OKGREEN+libname + bc.ENDC
lenv = self.Copy()
lenv.Append(CPPPATH=includes)
lenv.Append(CPPDEFINES=defines)
if lenv['WITH_BF_GAMEENGINE']:
lenv.Append(CPPDEFINES=['GAMEBLENDER=1'])
- if lenv['BF_DEBUG']:
+ if lenv['BF_DEBUG'] or (libname in quickdebug):
lenv.Append(CCFLAGS = Split(lenv['BF_DEBUG_FLAGS']), CXXFLAGS = Split(lenv['BF_DEBUG_FLAGS']))
else:
lenv.Append(CCFLAGS = lenv['REL_CFLAGS'], CXXFLAGS = lenv['REL_CCFLAGS'])
diff --git a/tools/btools.py b/tools/btools.py
index 7d6a679905e..b66d388ec76 100755
--- a/tools/btools.py
+++ b/tools/btools.py
@@ -45,7 +45,7 @@ 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_PRIORITYLIST', 'BF_BUILDINFO','CC', 'CXX'
+ 'BF_PRIORITYLIST', 'BF_BUILDINFO','CC', 'CXX', "BF_QUICKDEBUG", "BF_LISTDEBUG"
]
all_list = opts_list + arg_list
@@ -110,6 +110,7 @@ def SetupBufferedOutput( env ):
def read_opts(cfg, args):
localopts = Options.Options(cfg, args)
localopts.AddOptions(
+ ('BF_DEBUG_LIBS', 'list of libraries to build with debug symbols'),
('BF_PYTHON', 'base path for python', ''),
('BF_PYTHON_VERSION', 'Python version to use', ''),
('BF_PYTHON_INC', 'include path for Python headers', ''),