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.6KB

  1. #!/bin/bash
  2. set -e
  3. if [ -z "${BOOTSTRAP_VERSION}" ]; then
  4. echo "Script only intended for travis/CI use"
  5. exit 1
  6. fi
  7. if [ -e ${HOME}/PawPawBuilds/builds/.last-bootstrap-version ]; then
  8. LAST_BOOTSTRAP_VERSION=$(cat ${HOME}/PawPawBuilds/builds/.last-bootstrap-version)
  9. else
  10. LAST_BOOTSTRAP_VERSION=0
  11. fi
  12. PLUGINS_BASE="abgate artyfx caps die-plugins dpf-plugins fomp mda"
  13. PLUGINS_CROSS="blop"
  14. PLUGINS_DISTRHO="distrho-ports-arctican distrho-ports-drowaudio distrho-ports-tal-plugins"
  15. # only build full set of distrho-ports if we have previously cached builds, otherwise we time-out travis
  16. if [ ${LAST_BOOTSTRAP_VERSION} -eq ${BOOTSTRAP_VERSION} ];
  17. PLUGINS_DISTRHO+=" distrho-ports-dexed"
  18. PLUGINS_DISTRHO+=" distrho-ports-klangfalter"
  19. PLUGINS_DISTRHO+=" distrho-ports-luftikus"
  20. PLUGINS_DISTRHO+=" distrho-ports-obxd"
  21. PLUGINS_DISTRHO+=" distrho-ports-pitched-delay"
  22. PLUGINS_DISTRHO+=" distrho-ports-refine"
  23. PLUGINS_DISTRHO+=" distrho-ports-temper"
  24. PLUGINS_DISTRHO+=" distrho-ports-vex"
  25. PLUGINS_DISTRHO+=" distrho-ports-wolpertinger"
  26. fi
  27. if [ "${TARGET}" = "linux" ]; then
  28. PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS}"
  29. elif [ "${TARGET}" = "macos-old" ]; then
  30. PLUGINS="${PLUGINS_BASE}"
  31. else
  32. PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS} ${PLUGINS_DISTRHO}"
  33. fi
  34. ${TRAVIS_BUILD_DIR}/build-plugins.sh ${TARGET} ${PLUGINS}
  35. ${TRAVIS_BUILD_DIR}/.cleanup.sh ${TARGET}
  36. # packing of plugins can only be done when doing a full build
  37. if [ ${LAST_BOOTSTRAP_VERSION} -eq ${BOOTSTRAP_VERSION} ];
  38. ${TRAVIS_BUILD_DIR}/pack-plugins.sh ${TARGET} ${PLUGINS}
  39. fi
  40. echo ${BOOTSTRAP_VERSION} > ${LAST_BOOTSTRAP_VERSION}