winamp/Src/external_dependencies/openmpt-trunk/build/auto/check_libopenmpt_args.cmd

38 lines
1.3 KiB
Batchfile
Raw Normal View History

2024-09-24 12:54:57 +00:00
@echo off
set BATCH_DIR=%~dp0
cd %BATCH_DIR%
cd ..\..
set MY_DIR=%CD%
call "build\auto\setup_arguments.cmd" %1 %2 %3 %4 %5 %6
call "build\auto\setup_%MPT_VS_VER%.cmd"
cd "build\%MPT_VS_WITHTARGET%" || goto error
msbuild libopenmpt.sln /target:Build /p:RunCodeAnalysis=true /p:EnableCppCoreCheck=false /property:Configuration=Release;Platform=%MPT_VS_ARCH% /maxcpucount /verbosity:minimal || goto error
msbuild openmpt123.sln /target:Build /p:RunCodeAnalysis=true /p:EnableCppCoreCheck=false /property:Configuration=Release;Platform=%MPT_VS_ARCH% /maxcpucount /verbosity:minimal || goto error
if "%MPT_VS_ARCH%" == "Win32" (
msbuild in_openmpt.sln /target:Build /p:RunCodeAnalysis=true /p:EnableCppCoreCheck=false /property:Configuration=Release;Platform=%MPT_VS_ARCH% /maxcpucount /verbosity:minimal || goto error
msbuild xmp-openmpt.sln /target:Build /p:RunCodeAnalysis=true /p:EnableCppCoreCheck=false /property:Configuration=Release;Platform=%MPT_VS_ARCH% /maxcpucount /verbosity:minimal || goto error
)
msbuild libopenmpt.sln /target:Build /p:RunCodeAnalysis=true /p:EnableCppCoreCheck=false /property:Configuration=ReleaseShared;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