winamp/Src/external_dependencies/openmpt-trunk/build/auto/test_libopenmpt_args.cmd
2024-09-24 14:54:57 +02:00

38 lines
676 B
Batchfile

@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"
if "%MPT_BIN_ARCH%" == "x86" (
"bin\%MPT_BIN_CONF%\%MPT_VS_VER%-%MPT_BIN_TARGET32%-%MPT_BIN_RUNTIME%\%MPT_BIN_ARCH%\libopenmpt_test.exe" || goto error
)
if "%MPT_BIN_ARCH%" == "amd64" (
if "%MPT_HOST_BITNESS%" == "64" (
"bin\%MPT_BIN_CONF%\%MPT_VS_VER%-%MPT_BIN_TARGET64%-%MPT_BIN_RUNTIME%\%MPT_BIN_ARCH%\libopenmpt_test.exe" || goto error
) else (
echo "Warning: Host is not 64 bit. Skipping 64 bit test suite."
)
)
goto noerror
:error
cd "%MY_DIR%"
exit 1
:noerror
cd "%MY_DIR%"
exit 0