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.

53 lines
1.7KB

  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 fomp mda"
  13. PLUGINS_CROSS="blop dpf-plugins"
  14. PLUGINS_DISTRHO="distrho-ports-arctican distrho-ports-drowaudio distrho-ports-tal-plugins"
  15. # TODO
  16. # ninjas2: need to put http://kxstudio.sf.net/ns/lv2ext/props#NonAutomable spec somewhere
  17. # only build full set of distrho-ports if we have previously cached builds, otherwise we time-out in travis
  18. if [ ${LAST_BOOTSTRAP_VERSION} -eq ${BOOTSTRAP_VERSION} ]; then
  19. PLUGINS_DISTRHO+=" distrho-ports-dexed"
  20. PLUGINS_DISTRHO+=" distrho-ports-klangfalter"
  21. PLUGINS_DISTRHO+=" distrho-ports-luftikus"
  22. PLUGINS_DISTRHO+=" distrho-ports-obxd"
  23. PLUGINS_DISTRHO+=" distrho-ports-pitched-delay"
  24. PLUGINS_DISTRHO+=" distrho-ports-refine"
  25. PLUGINS_DISTRHO+=" distrho-ports-temper"
  26. PLUGINS_DISTRHO+=" distrho-ports-vex"
  27. PLUGINS_DISTRHO+=" distrho-ports-wolpertinger"
  28. fi
  29. if [ "${TARGET}" = "linux" ]; then
  30. PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS}"
  31. elif [ "${TARGET}" = "macos-old" ]; then
  32. PLUGINS="${PLUGINS_BASE}"
  33. else
  34. PLUGINS="${PLUGINS_BASE} ${PLUGINS_CROSS} ${PLUGINS_DISTRHO}"
  35. fi
  36. ${TRAVIS_BUILD_DIR}/build-plugins.sh ${TARGET} ${PLUGINS}
  37. ${TRAVIS_BUILD_DIR}/.cleanup.sh ${TARGET}
  38. # packing of plugins can only be done when doing a full build
  39. if [ ${LAST_BOOTSTRAP_VERSION} -eq ${BOOTSTRAP_VERSION} ]; then
  40. ${TRAVIS_BUILD_DIR}/pack-plugins.sh ${TARGET} ${PLUGINS}
  41. fi
  42. echo ${BOOTSTRAP_VERSION} > ${HOME}/PawPawBuilds/builds/.last-bootstrap-version