build_winampAll_2019.cmd 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. @if not exist "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat" goto missingVisualStudio2019x32
  2. @if not exist "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" goto missingVisualStudio2019x64
  3. @echo ************************************
  4. @echo * Build winampAll_2019.sln Debug x86
  5. @echo ************************************
  6. call "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
  7. @@msbuild winampAll_2019.sln /p:Configuration=Debug /p:Platform="Win32"
  8. @echo **************************************
  9. @echo * Build winampAll_2019.sln Release x86
  10. @echo **************************************
  11. call "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
  12. @@msbuild winampAll_2019.sln /p:configuration=Release /p:Platform="Win32"
  13. @echo ************************************
  14. @echo * Build winampAll_2019.sln Debug x64
  15. @echo ************************************
  16. call "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
  17. @@msbuild winampAll_2019.sln /p:configuration=Debug /p:Platform="x64"
  18. @echo **************************************
  19. @echo * Build winampAll_2019.sln Release x64
  20. @echo **************************************
  21. call "c:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
  22. @@msbuild winampAll_2019.sln /p:configuration=Release /p:Platform="x64"
  23. @pause
  24. goto :exit
  25. :missingVisualStudio2019x32
  26. @echo Microsoft Visual Studio 2019 for x32 configuration not detected
  27. @pause
  28. @exit
  29. goto :eof
  30. :missingVisualStudio2019x64
  31. @echo Microsoft Visual Studio 2019 for x64 configuration not detected
  32. @pause
  33. @exit
  34. goto :eof
  35. ::-----------------------------------------------------------------------------
  36. :: EXIT
  37. ::-----------------------------------------------------------------------------
  38. :exit
  39. endlocal & exit /b %rc%