Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.9KB

  1. #!/bin/bash
  2. set -e
  3. # needed homebrew packages
  4. if [ "${TARGET}" = "macos" ] || [ "${TARGET}" = "macos-universal" ]; then
  5. HOMEBREW_NO_AUTO_UPDATE=1 brew install cmake jq meson
  6. exit 0
  7. fi
  8. # Special handling for caching deb archives
  9. if [ "$(ls ${HOME}/PawPawBuilds/debs | wc -l)" -ne 0 ]; then
  10. sudo cp ${HOME}/PawPawBuilds/debs/*.deb /var/cache/apt/archives/
  11. fi
  12. # common
  13. sudo apt-get install -y build-essential curl cmake jq meson
  14. # specific
  15. if [ "${TARGET}" = "linux" ]; then
  16. sudo apt-get install -y libglib2.0-dev
  17. elif [ "${TARGET}" = "macos-old" ]; then
  18. mkdir -p ${HOME}/PawPawBuilds/debs
  19. pushd ${HOME}/PawPawBuilds/debs
  20. if [ ! -f 'apple-uni-sdk-10.5_20110407-0.flosoft1_amd64.deb' ]; then
  21. wget -c 'https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/apple-uni-sdk-10.5_20110407-0.flosoft1_amd64.deb'
  22. fi
  23. if [ ! -f 'apple-x86-odcctools_758.159-0kxstudio2_amd64.deb' ]; then
  24. wget -c 'https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/apple-x86-odcctools_758.159-0kxstudio2_amd64.deb'
  25. fi
  26. if [ ! -f 'apple-x86-gcc_4.2.1~5646-1kxstudio2_amd64.deb' ]; then
  27. wget -c 'https://launchpad.net/~kxstudio-debian/+archive/ubuntu/toolchain/+files/apple-x86-gcc_4.2.1~5646-1kxstudio2_amd64.deb'
  28. fi
  29. sudo dpkg -i 'apple-uni-sdk-10.5_20110407-0.flosoft1_amd64.deb'
  30. sudo dpkg -i 'apple-x86-odcctools_758.159-0kxstudio2_amd64.deb'
  31. sudo dpkg -i 'apple-x86-gcc_4.2.1~5646-1kxstudio2_amd64.deb'
  32. popd
  33. elif [ "${TARGET}" = "win32" ]; then
  34. sudo apt-get install -y mingw-w64 binfmt-support binutils-mingw-w64-i686 g++-mingw-w64-i686 winehq-stable
  35. elif [ "${TARGET}" = "win64" ]; then
  36. sudo apt-get install -y mingw-w64 binfmt-support binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 winehq-stable
  37. fi
  38. # Special handling for caching deb archives
  39. sudo mv /var/cache/apt/archives/*.deb ${HOME}/PawPawBuilds/debs/