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
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/Blender.py
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/Blender.py')
-rw-r--r--tools/Blender.py7
1 files changed, 5 insertions, 2 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'])