unpack_libmpg123.cmd 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @if not exist "c:\Program Files\7-Zip\7z.exe" goto missing7-Zip
  2. SET PATH=c:\Program Files\7-Zip\;%PATH%
  3. SET LIBMPG123FILENAME=libmpg123.7z
  4. SET LIBMPG123FOLDER=libmpg123
  5. SET MPG123=mpg123
  6. SET VERSION=1.25.13
  7. SET MACHINEX86=x86
  8. SET MACHINEX64=x64
  9. SET DEBUG=debug
  10. SET RELEASE=release
  11. @echo ************************************
  12. @echo * Unpack libmpg123 (%LIBMPG123FILENAME%)
  13. @echo ************************************
  14. @if exist ..\%LIBMPG123FOLDER% goto existlibmpg123
  15. call 7z.exe x -y %LIBMPG123FILENAME% -o../
  16. cd ../%LIBMPG123FOLDER%/%MPG123%-%VERSION%-%MACHINEX86%-%DEBUG%
  17. call create_libmpg123_lib_file_x86_debug.cmd
  18. cd ../%MPG123%-%VERSION%-%MACHINEX86%-%RELEASE%
  19. call create_libmpg123_lib_file_x86_release.cmd
  20. cd ../%MPG123%-%VERSION%-%MACHINEX64%-%DEBUG%
  21. call create_libmpg123_lib_file_x64_debug.cmd
  22. cd ../%MPG123%-%VERSION%-%MACHINEX64%-%RELEASE%
  23. call create_libmpg123_lib_file_x64_release.cmd
  24. @pause
  25. goto :exit
  26. :missing7-Zip
  27. @echo 7-Zip archive tool not detected.
  28. @pause
  29. @exit
  30. goto :eof
  31. :existlibmpg123
  32. @echo libmpg123 folder already exists. Unpack operation is aborted.
  33. @pause
  34. @exit
  35. goto :eof
  36. ::-----------------------------------------------------------------------------
  37. :: EXIT
  38. ::-----------------------------------------------------------------------------
  39. :exit
  40. endlocal & exit /b %rc%