2016-01-03 09:12:57 -05:00
|
|
|
@echo off & setlocal
|
2016-01-04 14:23:50 -05:00
|
|
|
|
|
|
|
cd %~dp0
|
|
|
|
|
2016-01-03 09:12:57 -05:00
|
|
|
if exist "%VS140COMNTOOLS%\vsvars32.bat" call "%VS140COMNTOOLS%\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%
|
|
|
|
msbuild /version >NUL 2>NUL
|
|
|
|
if errorlevel 0 goto:build
|
|
|
|
|
|
|
|
echo Couldn't find any MSBuild to build this project.
|
2016-03-04 14:50:43 -05:00
|
|
|
echo Make sure you have Microsoft Build Tools 2015 or Visual Studio 2015 installed.
|
2016-01-03 09:12:57 -05:00
|
|
|
endlocal
|
|
|
|
exit /B 1
|
|
|
|
|
|
|
|
:build
|
2016-01-04 14:23:50 -05:00
|
|
|
set PLATFORM=Win32
|
|
|
|
set CONFIGURATION=ReleaseStatic
|
2016-01-03 09:19:35 -05:00
|
|
|
msbuild /nologo /m /v:m %* build\iw4x.sln
|
2016-01-03 09:12:57 -05:00
|
|
|
endlocal
|
|
|
|
exit /B %ERRORLEVEL%
|