winamp/Src/winampAll/build_winampAll_2019.cmd
2024-09-24 14:54:57 +02:00

47 lines
2 KiB
Batchfile

@if not exist "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat" goto missingVisualStudio2019x32
@if not exist "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" goto missingVisualStudio2019x64
@echo ************************************
@echo * Build winampAll_2019.sln Debug x86
@echo ************************************
call "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
@@msbuild winampAll_2019.sln /p:Configuration=Debug /p:Platform="Win32"
@echo **************************************
@echo * Build winampAll_2019.sln Release x86
@echo **************************************
call "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
@@msbuild winampAll_2019.sln /p:configuration=Release /p:Platform="Win32"
@echo ************************************
@echo * Build winampAll_2019.sln Debug x64
@echo ************************************
call "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
@@msbuild winampAll_2019.sln /p:configuration=Debug /p:Platform="x64"
@echo **************************************
@echo * Build winampAll_2019.sln Release x64
@echo **************************************
call "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
@@msbuild winampAll_2019.sln /p:configuration=Release /p:Platform="x64"
@pause
goto :exit
:missingVisualStudio2019x32
@echo Microsoft Visual Studio 2019 for x32 configuration not detected
@pause
@exit
goto :eof
:missingVisualStudio2019x64
@echo Microsoft Visual Studio 2019 for x64 configuration not detected
@pause
@exit
goto :eof
::-----------------------------------------------------------------------------
:: EXIT
::-----------------------------------------------------------------------------
:exit
endlocal & exit /b %rc%