2016-01-03 09:12:57 -05:00
|
|
|
@echo off & setlocal
|
2016-01-04 14:23:50 -05:00
|
|
|
|
|
|
|
cd %~dp0
|
|
|
|
|
2019-09-16 04:46:50 -04:00
|
|
|
if exist "%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsMSBuildCmd.bat" call "%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsMSBuildCmd.bat"
|
2018-12-02 12:42:47 -05:00
|
|
|
call msbuild /version >NUL 2>NUL
|
2016-01-03 09:12:57 -05:00
|
|
|
if errorlevel 0 goto:build
|
|
|
|
|
2019-09-16 04:46:50 -04:00
|
|
|
if exist "%PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\15.0\Bin\msbuild.exe" path %PROGRAMFILES(x86)%\Microsoft Visual Studio\2019\Enterprise\MSBuild\15.0\Bin;%PATH%
|
2018-12-02 12:42:47 -05:00
|
|
|
call msbuild /version >NUL 2>NUL
|
2016-01-03 09:12:57 -05:00
|
|
|
if errorlevel 0 goto:build
|
|
|
|
|
|
|
|
echo Couldn't find any MSBuild to build this project.
|
2019-09-16 04:46:50 -04:00
|
|
|
echo Make sure you have Visual C++ Build Tools 2019 or Visual Studio 2019 installed.
|
2016-01-03 09:12:57 -05:00
|
|
|
endlocal
|
|
|
|
exit /B 1
|
|
|
|
|
|
|
|
:build
|
2016-06-10 08:50:03 -04:00
|
|
|
call generate.bat
|
2016-01-04 14:23:50 -05:00
|
|
|
set PLATFORM=Win32
|
2016-09-17 08:03:59 -04:00
|
|
|
set CONFIGURATION=Release
|
2018-12-02 12:42:47 -05:00
|
|
|
call msbuild /nologo /m /v:m %* build\iw4x.sln
|
2016-01-03 09:12:57 -05:00
|
|
|
endlocal
|
|
|
|
exit /B %ERRORLEVEL%
|