32 lines
519 B
Batchfile
32 lines
519 B
Batchfile
|
@echo off
|
||
|
|
||
|
set BATCH_DIR=%~dp0
|
||
|
cd %BATCH_DIR%
|
||
|
cd ..\..
|
||
|
|
||
|
set MY_DIR=%CD%
|
||
|
|
||
|
call "build\auto\setup_arguments_winrt.cmd" %1 %2 %3 %4 %5 %6
|
||
|
|
||
|
call "build\auto\setup_%MPT_VS_VER%.cmd"
|
||
|
|
||
|
|
||
|
|
||
|
cd "build\%MPT_VS_TARGET%" || goto error
|
||
|
|
||
|
msbuild libopenmpt.sln /target:Build /p:RunCodeAnalysis=true /p:EnableCppCoreCheck=false /property:Configuration=%MPT_VS_CONF%;Platform=%MPT_VS_ARCH% /maxcpucount /verbosity:minimal || goto error
|
||
|
|
||
|
cd ..\.. || goto error
|
||
|
|
||
|
|
||
|
|
||
|
goto noerror
|
||
|
|
||
|
:error
|
||
|
cd "%MY_DIR%"
|
||
|
exit 1
|
||
|
|
||
|
:noerror
|
||
|
cd "%MY_DIR%"
|
||
|
exit 0
|