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>2004-03-17 00:45:46 +0300
committerNathan Letwory <nathan@letworyinteractive.com>2004-03-17 00:45:46 +0300
commit67ccc51920b5e74c03fb3dfc924823bd692ab6bf (patch)
treef2865c7b3bdb46c66807ee773a580a758d4260d4 /SConstruct
parent48d2ea15f1a62e400fe158a45f8e42c34338b3a9 (diff)
- [SCONS] Adding the creation of an Object Browser database (Source browser in MSVC6) when building a debug binary.
This is contributed by Jonathan Harris. I paste here his comments for further reference: MSVC will open the database automatically when you debug blender.exe. The database needs to be explicitly closed before rebuilding by removing it from the MSVC7 "Solution Explorer" window. Add it back after the build. TODO: .sbr intermediate files are created in the build tree. These should be removed by a clean but aren't.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 9 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index 5f87c7ca163..a95e6606057 100644
--- a/SConstruct
+++ b/SConstruct
@@ -256,7 +256,7 @@ elif sys.platform == 'win32':
build_blender_player = 'false'
build_blender_plugin = 'false'
release_flags = ['/G6', '/GF']
- debug_flags = ['/Zi']
+ debug_flags = ['/Zi', '/Fr${TARGET.base}.sbr']
extra_flags = ['/EHsc', '/J', '/W3', '/Gd', '/MT']
cxxflags = []
defines = ['WIN32', '_CONSOLE']
@@ -1022,3 +1022,11 @@ if sys.platform == 'darwin':
'chmod +x $TARGET && ' + \
'find $SOURCE -name CVS -prune -exec rm -rf {} \; && ' +
'find $SOURCE -name .DS_Store -exec rm -rf {} \;')
+elif sys.platform=='win32':
+ if user_options_dict['BUILD_BINARY']=='debug':
+ browser = Environment()
+ browser_tmp = root_build_dir+'bscmake.tmp'
+ browser.Command ('blender.bsc', 'blender$PROGSUFFIX',
+ ['dir /b/s '+root_build_dir+'*.sbr >'+browser_tmp,
+ 'bscmake /nologo /n /oblender.bsc @'+browser_tmp,
+ 'del '+browser_tmp])