From e18035bbb1f3a6a2a57d81f6a72b1a35f699882b Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Mon, 4 Jan 2016 20:23:50 +0100 Subject: [PATCH] build.bat: Default to ReleaseStatic build and do some preparations. - Automatically fix current working directory - Call generate.bat if the build files don't exist yet --- build.bat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.bat b/build.bat index 07807ef5..4d3ec0f6 100644 --- a/build.bat +++ b/build.bat @@ -1,4 +1,7 @@ @echo off & setlocal + +cd %~dp0 + if exist "%VS140COMNTOOLS%\vsvars32.bat" call "%VS140COMNTOOLS%\vsvars32.bat" msbuild /version >NUL 2>NUL if errorlevel 0 goto:build @@ -21,6 +24,9 @@ endlocal exit /B 1 :build +set PLATFORM=Win32 +set CONFIGURATION=ReleaseStatic +if not exist build\iw4x.sln call generate msbuild /nologo /m /v:m %* build\iw4x.sln endlocal exit /B %ERRORLEVEL%