Update buildscript

This commit is contained in:
momo5502 2016-03-04 20:50:43 +01:00
parent e51993ed39
commit ac0c991a12

View File

@ -6,27 +6,19 @@ if exist "%VS140COMNTOOLS%\vsvars32.bat" call "%VS140COMNTOOLS%\vsvars32.bat"
msbuild /version >NUL 2>NUL msbuild /version >NUL 2>NUL
if errorlevel 0 goto:build if errorlevel 0 goto:build
if exist "%VS120COMNTOOLS%\vsvars32.bat" call "%VS120COMNTOOLS%\vsvars32.bat"
msbuild /version >NUL 2>NUL
if errorlevel 0 goto:build
if exist "%PROGRAMFILES(x86)%\msbuild\14.0\Bin\msbuild.exe" path %PROGRAMFILES(x86)%\msbuild\14.0\Bin;%PATH% if exist "%PROGRAMFILES(x86)%\msbuild\14.0\Bin\msbuild.exe" path %PROGRAMFILES(x86)%\msbuild\14.0\Bin;%PATH%
msbuild /version >NUL 2>NUL msbuild /version >NUL 2>NUL
if errorlevel 0 goto:build if errorlevel 0 goto:build
if exist "%PROGRAMFILES(x86)%\msbuild\12.0\Bin\msbuild.exe" path %PROGRAMFILES(x86)%\msbuild\12.0\Bin;%PATH%
msbuild /version >NUL 2>NUL
if errorlevel 0 goto:build
echo Couldn't find any MSBuild to build this project. echo Couldn't find any MSBuild to build this project.
echo Make sure you have Microsoft Build Tools 2013 or 2015 or Visual Studio 2013 or 2015 installed. echo Make sure you have Microsoft Build Tools 2015 or Visual Studio 2015 installed.
endlocal endlocal
exit /B 1 exit /B 1
:build :build
set PLATFORM=Win32 set PLATFORM=Win32
set CONFIGURATION=ReleaseStatic set CONFIGURATION=ReleaseStatic
if not exist build\iw4x.sln call generate call generate
msbuild /nologo /m /v:m %* build\iw4x.sln msbuild /nologo /m /v:m %* build\iw4x.sln
endlocal endlocal
exit /B %ERRORLEVEL% exit /B %ERRORLEVEL%