forked from bartvdbraak/blender
- [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.
This commit is contained in:
parent
48d2ea15f1
commit
67ccc51920
10
SConstruct
10
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])
|
||||
|
Loading…
Reference in New Issue
Block a user