commit
95185f296f
5 changed files with 44 additions and 7 deletions
|
|
@ -129,7 +129,7 @@ jobs:
|
||||||
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-${TRAVIS_OS_NAME}-${TRAVIS_CPU_ARCH}"
|
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-${TRAVIS_OS_NAME}-${TRAVIS_CPU_ARCH}"
|
||||||
install: .travis/install_osx.sh
|
install: .travis/install_osx.sh
|
||||||
script: .travis/script_osx.sh
|
script: .travis/script_osx.sh
|
||||||
after_success: .travis/prepare_tarball.sh
|
after_success: .travis/prepare_osx.sh
|
||||||
|
|
||||||
- name: "MOD devices arm"
|
- name: "MOD devices arm"
|
||||||
stage: "Build"
|
stage: "Build"
|
||||||
|
|
|
||||||
|
|
@ -6,3 +6,4 @@ sudo ln -s /usr/local /opt/local
|
||||||
brew update
|
brew update
|
||||||
brew upgrade cmake
|
brew upgrade cmake
|
||||||
brew install jack
|
brew install jack
|
||||||
|
brew install dylibbundler
|
||||||
|
|
|
||||||
34
.travis/prepare_osx.sh
Executable file
34
.travis/prepare_osx.sh
Executable file
|
|
@ -0,0 +1,34 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
|
||||||
|
test -z "$CONTAINER"
|
||||||
|
|
||||||
|
if ! [ -z "$CONTAINER" ]; then
|
||||||
|
. .travis/docker_container.sh
|
||||||
|
else
|
||||||
|
. .travis/no_container.sh
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd build
|
||||||
|
buildenv make DESTDIR=${PWD}/${INSTALL_DIR} install
|
||||||
|
|
||||||
|
# Bundle LV2 dependencies
|
||||||
|
cd "${INSTALL_DIR}"/Library/Audio/Plug-Ins/LV2
|
||||||
|
dylibbundler -od -b -x sfizz.lv2/sfizz.so -d sfizz.lv2/libs/ -p @loader_path/libs/
|
||||||
|
cd "${TRAVIS_BUILD_DIR}/build"
|
||||||
|
|
||||||
|
# Bundle VST3 dependencies
|
||||||
|
cd "${INSTALL_DIR}"/Library/Audio/Plug-Ins/VST3
|
||||||
|
dylibbundler -od -b -x sfizz.vst3/Contents/MacOS/sfizz -d sfizz.vst3/Contents/libs/ -p @loader_path/../libs/
|
||||||
|
cd "${TRAVIS_BUILD_DIR}/build"
|
||||||
|
|
||||||
|
#
|
||||||
|
tar -zcvf "${INSTALL_DIR}.tar.gz" ${INSTALL_DIR}
|
||||||
|
|
||||||
|
# Only release a tarball if there is a tag
|
||||||
|
if [[ ${TRAVIS_TAG} != "" ]]; then
|
||||||
|
mv "${INSTALL_DIR}.tar.gz" ${TRAVIS_BUILD_DIR}
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "${TRAVIS_BUILD_DIR}"
|
||||||
|
|
@ -8,13 +8,13 @@ else
|
||||||
. .travis/no_container.sh
|
. .travis/no_container.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do not prepare a tarball without a tag
|
|
||||||
if [[ ${TRAVIS_TAG} == "" ]]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd build
|
cd build
|
||||||
buildenv make DESTDIR=${PWD}/${INSTALL_DIR} install
|
buildenv make DESTDIR=${PWD}/${INSTALL_DIR} install
|
||||||
tar -zcvf "${INSTALL_DIR}.tar.gz" ${INSTALL_DIR}
|
tar -zcvf "${INSTALL_DIR}.tar.gz" ${INSTALL_DIR}
|
||||||
mv "${INSTALL_DIR}.tar.gz" ${TRAVIS_BUILD_DIR}
|
|
||||||
|
# Only release a tarball if there is a tag
|
||||||
|
if [[ ${TRAVIS_TAG} != "" ]]; then
|
||||||
|
mv "${INSTALL_DIR}.tar.gz" ${TRAVIS_BUILD_DIR}
|
||||||
|
fi
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ cmake -DCMAKE_BUILD_TYPE=Release \
|
||||||
-DSFIZZ_VST=ON \
|
-DSFIZZ_VST=ON \
|
||||||
-DSFIZZ_TESTS=OFF \
|
-DSFIZZ_TESTS=OFF \
|
||||||
-DCMAKE_CXX_STANDARD=17 \
|
-DCMAKE_CXX_STANDARD=17 \
|
||||||
|
-DLV2PLUGIN_INSTALL_DIR=/Library/Audio/Plug-Ins/LV2 \
|
||||||
|
-DVSTPLUGIN_INSTALL_DIR=/Library/Audio/Plug-Ins/VST3 \
|
||||||
..
|
..
|
||||||
make -j$(sysctl -n hw.ncpu)
|
make -j$(sysctl -n hw.ncpu)
|
||||||
# Xcode not currently supported, see https://gitlab.kitware.com/cmake/cmake/issues/18088
|
# Xcode not currently supported, see https://gitlab.kitware.com/cmake/cmake/issues/18088
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue