From 67ccc51920b5e74c03fb3dfc924823bd692ab6bf Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Tue, 16 Mar 2004 21:45:46 +0000 Subject: [PATCH] - [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. --- SConstruct | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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])