yolobs-studio/CI/install-dependencies-osx.sh

51 lines
1.7 KiB
Bash
Raw Normal View History

2017-04-19 19:54:15 +00:00
# Exit if something fails
set -e
2017-06-29 19:01:10 +00:00
# Echo all commands before executing
set -v
git fetch --unshallow
2017-04-19 19:54:15 +00:00
# Leave obs-studio folder
cd ../
# Install Packages app so we can build a package later
# http://s.sudre.free.fr/Software/Packages/about.html
2017-06-29 19:01:10 +00:00
wget --retry-connrefused --waitretry=1 https://s3-us-west-2.amazonaws.com/obs-nightly/Packages.pkg
2017-04-19 19:54:15 +00:00
sudo installer -pkg ./Packages.pkg -target /
brew update
2017-06-29 19:01:10 +00:00
#Base OBS Deps and ccache
2018-02-19 19:54:37 +00:00
brew install qt5 jack speexdsp ccache swig
2017-06-29 19:01:10 +00:00
export PATH=/usr/local/opt/ccache/libexec:$PATH
ccache -s || echo "CCache is not available."
2017-04-19 19:54:15 +00:00
# Fetch and untar prebuilt OBS deps that are compatible with older versions of OSX
2017-06-29 19:01:10 +00:00
wget --retry-connrefused --waitretry=1 https://s3-us-west-2.amazonaws.com/obs-nightly/osx-deps.tar.gz
2017-04-19 19:54:15 +00:00
tar -xf ./osx-deps.tar.gz -C /tmp
# Fetch vlc codebase
2017-06-29 19:01:10 +00:00
wget --retry-connrefused --waitretry=1 -O vlc-master.zip https://github.com/videolan/vlc/archive/master.zip
2017-04-19 19:54:15 +00:00
unzip -q ./vlc-master.zip
# Get sparkle
2017-06-29 19:01:10 +00:00
wget --retry-connrefused --waitretry=1 -O sparkle.tar.bz2 https://github.com/sparkle-project/Sparkle/releases/download/1.16.0/Sparkle-1.16.0.tar.bz2
2017-04-19 19:54:15 +00:00
mkdir ./sparkle
tar -xf ./sparkle.tar.bz2 -C ./sparkle
sudo cp -R ./sparkle/Sparkle.framework /Library/Frameworks/Sparkle.framework
# CEF Stuff
2017-06-29 19:01:10 +00:00
wget --retry-connrefused --waitretry=1 https://obs-nightly.s3-us-west-2.amazonaws.com/cef_binary_${CEF_BUILD_VERSION}_macosx64.tar.bz2
2017-04-19 19:54:15 +00:00
tar -xf ./cef_binary_${CEF_BUILD_VERSION}_macosx64.tar.bz2
cd ./cef_binary_${CEF_BUILD_VERSION}_macosx64
2018-02-19 19:54:37 +00:00
# remove a broken test
sed -i '.orig' '/add_subdirectory(tests\/ceftests)/d' ./CMakeLists.txt
2017-04-19 19:54:15 +00:00
mkdir build
cd ./build
cmake -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++" -DCMAKE_EXE_LINKER_FLAGS="-std=c++11 -stdlib=libc++" -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 ..
make -j4
mkdir libcef_dll
cd ../../