:: :: Windows build script for mauve software :: (c)2008 aaron darling :: :: REQUIREMENTS :: Subversion command-line, available from http://subversion.tigris.org :: Visual Studio with 64-bit support :: Boost compiled for 32- and 64-bit :: NSIS -- Nullsoft scriptable install system :: :: CONFIGURATION :: Set paths to your subversion and ant jar :: Set paths to your boost installation :: Set the DEFAULTINCLUDE and DEFAULTLIB to whatever your visual studio paths are...get these from "set" on the VC command prompt :: Set the JAVA_HOME to your JDK. You MUST use progra~1 to avoid spaces in the path. :: Note the first time it is run, you will need to accept SSL certificates manually :: @ECHO ON :: SET devenv="C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\VCExpress.exe" SET devenv="C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\devenv.exe" SET svn="C:\Program Files (x86)\Subversion\bin\svn.exe" SET boost="C:\development\boost\boost_1_35_0\" SET JAVA_HOME="C:\Progra~1\Java\jdk1.6.0_03" SET antbat="C:\Program Files (x86)\eclipse\plugins\org.apache.ant_1.7.0.v200706080842\bin\ant" set INCLUDEBACKUP=%INCLUDE% :: "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 8\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\include;C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\include;" set LIBBACKUP=%LIB% :: "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\ATLMFC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual Studio 8\VC\LIB\amd64;C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 8\SDK\v2.0\LIB\AMD64;" %svn% co https://mauve.svn.sourceforge.net/svnroot/mauve/libGenome/trunk libGenome %svn% co https://mauve.svn.sourceforge.net/svnroot/mauve/muscle/trunk muscle %svn% co https://mauve.svn.sourceforge.net/svnroot/mauve/libMems/trunk libMems %svn% co https://mauve.svn.sourceforge.net/svnroot/mauve/mauveAligner/trunk mauveAligner %svn% co https://mauve.svn.sourceforge.net/svnroot/mauve/sgEvolver/trunk sgEvolver %svn% co https://mauve.svn.sourceforge.net/svnroot/mauve/mauve/trunk mauve :: :: build 64-bit :: set INCLUDE="%INCLUDE%;%boost%;C:\build_temp\libGenome\;C:\build_temp\libMems\;C:\build_temp\muscle\;C:\build_temp\muscle\libMuscle\" set LIB="%LIB%;%boost%\lib64;C:\build_temp\libGenome\lib;C:\build_temp\libMems\lib;C:\build_temp\libMuscle\lib" start /wait "" %devenv% mauveAligner\projects\everything.sln /build "Release OpenMP|x64" /UseEnv /Out errlog.txt set LIB=%LIBBACKUP% :: :: build 32-bit :: set LIB="%LIB%;%boost%\lib;C:\build_temp\libGenome\lib;C:\build_temp\libMems\lib;C:\build_temp\libMuscle\lib" start /wait "" %devenv% mauveAligner\projects\everything.sln /build "Release OpenMP|Win32" /UseEnv /Out errlog.txt set INCLUDE=%INCLUDEBACKUP% set LIB=%LIBBACKUP% if not exist "mauveAligner\projects\Release OpenMP\mauveAligner.exe" goto buildFailed if not exist "mauveAligner\projects\Release OpenMP\progressiveMauve.exe" goto buildFailed if not exist "mauveAligner\projects\x64\Release OpenMP\mauveAligner.exe" goto buildFailed if not exist "mauveAligner\projects\x64\Release OpenMP\progressiveMauve.exe" goto buildFailed copy "mauveAligner\projects\Release OpenMP\mauveAligner.exe" mauve\win32\mauveAligner.exe copy "mauveAligner\projects\Release OpenMP\progressiveMauve.exe" mauve\win32\progressiveMauve.exe copy "mauveAligner\projects\x64\Release OpenMP\mauveAligner.exe" mauve\win64\mauveAligner.exe copy "mauveAligner\projects\x64\Release OpenMP\progressiveMauve.exe" mauve\win64\progressiveMauve.exe cd mauve %antbat% nsicompile :buildFailed