> However, I have been meaning to (and haven't had the time to > yet) create a simple batch file that fires off an entire > solution build from the command line, one command for Debug > and one for Release.
I've created this script, and the batch file text follows after my signature. The advantage of this script over doing a simple project build (or ctrl-shift-B) is that it builds the entire triple set, and multiple configurations (both Debug and Release) with no manual intervention (no more babysitting the build). The advantages of this script over a Batch Build are: * Builds in parallel on multi-CPU and/or HT systems. * Easy to build different configurations -- just a quick edit of the batch file, rather than dealing with hundreds of little check boxes in the Batch Build dialog. I was pleased to discover that the command line solution builds in this script do not halt when they encounter the first project that doesn't build. There is a /upgrade option for devenv, but sadly, this doesn't appear to work for VC6 workspace files. Bummer. If it did work, then I could've written this script to do a CVS checkout, upgrade the workspace files, and do a full build. As it currently stands, the CVS update and workspace upgrades are manual steps. I hope others find this useful, Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com 303 859 9466 echo off REM First param must be "build" or "rebuild". Default is "build". REM Second param must be OT/P/OSG parent directory. Default is "\". set BUILD=/%1 if "%1"=="" set BUILD=/build set PARENTPATH=%2 if "%2"=="" set PARENTPATH=\ set OTSLN=OpenThreads.sln set OPSLN=Producer.sln set OSGSLN=OpenSceneGraph.sln set SAVEPATH=%PATH% call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat" echo Building OpenThreads... cd %PARENTPATH%OpenThreads\win32_src echo on devenv %OTSLN% %BUILD% Debug devenv %OTSLN% %BUILD% Release echo off echo Building Producer... cd %PARENTPATH%Producer\VC++7 echo on devenv %OPSLN% %BUILD% Debug devenv %OPSLN% %BUILD% Release echo off echo Building OpenSceneGraph... cd %PARENTPATH%OpenSceneGraph\VisualStudio echo on devenv %OSGSLN% %BUILD% Debug devenv %OSGSLN% %BUILD% Release echo off :end set PATH=%SAVEPATH% _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
