@ echo off rem Jump to the directory where this build.cmd script is cd %~dp0 rem Single precision build (or forced high precision code conversion): if [%1] EQU [/sp] ( cd utils_lgpl\deltares_common\scripts call singleprecision.bat cd %~dp0 ) if [%1] EQU [/hp] ( cd utils_lgpl\deltares_common\scripts call doubleprecision.bat cd %~dp0 ) rem Quiet removal of output file build.log. Do not report any problems with this deletion del /F/Q build.log > del.log 2>&1 del /F/Q build_dhydro.log > del.log 2>&1 del /F/Q build_wave.log > del.log 2>&1 del /F/Q del.log rem Set environment parameters for VisualStudio call "%VS110COMNTOOLS%..\..\VC\vcvarsall.bat" amd64 rem The path to devenv.exe is now added to PATH: no full path specificitation needed on next line. rem rem In this branch: https://svn.oss.deltares.nl/repos/delft3d/branches/research/Deltares/20150429_unst-807_d-hydro rem Delft3D-FLOW will not compile (yet) rem Only build the two engines for which this branch is created: rem 1. d-hydro rem 2. wave devenv.exe delft3d_open.sln /Build "Release|x64" /project "engines_gpl\d_hydro\packages\d_hydro\d_hydro_exe.vcxproj" /Out build_dhydro.log devenv.exe delft3d_open.sln /Build "Release|x64" /project "engines_gpl\wave\packages\wave\wave.vfproj" /Out build_wave.log rem devenv.exe delft3d_open.sln /Build "Release|x64" /Out build.log rem In build.log, replace "error" by TeamCity messages third_party_open\commandline\bin\win32\sed.exe -e "/[Ee]rror[\:\ ]/s/^/\#\#teamcity\[buildStatus status\=\'FAILURE\' text\=\' /g;/buildStatus/s/$/\'\]/g" build_dhydro.log third_party_open\commandline\bin\win32\sed.exe -e "/[Ee]rror[\:\ ]/s/^/\#\#teamcity\[buildStatus status\=\'FAILURE\' text\=\' /g;/buildStatus/s/$/\'\]/g" build_wave.log rem third_party_open\commandline\bin\win32\sed.exe -e "/[Ee]rror[\:\ ]/s/^/\#\#teamcity\[buildStatus status\=\'FAILURE\' text\=\' /g;/buildStatus/s/$/\'\]/g" build.log