Headway Tool Tips: Dealing with Multiple Projects in a Visual Studio
Having difficulties generating a combined .bsc file for multiple projects in a visual studio in Headway reView? Follow these four easy steps and get back on track:
Set ProjectSettings/C++/Generate Browse Info. DO NOT set ProjectSettings/Browse Info/Build Browse Info File. This will build all the .sbr files for each .o without building the .bsc. If working outside VS (ie: in makefiles only) use the /FR compiler option.
. Now that all your .sbr files are built, go to the top level directory and list all the .sbr files. Make sure none of the files are of 0 length-if there are 0 length files, delete them. Use the following command to list them and write them to a file: dir/s/b *.sbr > sbrs.txt
Edit sbrs.txt to add the options you want to provide to the bscmake command eg /n /v /o myproject.bsc.
4. Provide the sbrs.txt file as input to your bscmake file eg bscmake @sbrs.txt. This will generate a bsc file for your whole project.
My gen_bsc.cmd file:
echo /n /v /o pcPro.bsc > sbrs.tmp
for /f “delims=;” %%i in (‘dir/s/b *.sbr’) do @echo “%%i” >> sbrs.tmp