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

62 lines
2.3 KiB
Bash
Raw Normal View History

hr() {
echo "───────────────────────────────────────────────────"
echo $1
echo "───────────────────────────────────────────────────"
}
# Exit if something fails
set -e
# Echo all commands before executing
set -v
2017-05-12 18:07:54 -07:00
git fetch --unshallow
2017-02-25 09:31:44 -08:00
2017-01-21 22:49:01 -08: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
hr "Downloading Packages app"
wget --quiet --retry-connrefused --waitretry=1 https://s3-us-west-2.amazonaws.com/obs-nightly/Packages.pkg
sudo installer -pkg ./Packages.pkg -target /
2016-10-09 15:26:44 -07:00
brew update
2016-10-13 17:30:23 -07:00
#Base OBS Deps and ccache
2018-07-25 09:00:21 -07:00
brew install qt@5.11 jack speexdsp ccache swig
export PATH=/usr/local/opt/ccache/libexec:$PATH
ccache -s || echo "CCache is not available."
# Fetch and untar prebuilt OBS deps that are compatible with older versions of OSX
hr "Downloading OBS deps"
wget --quiet --retry-connrefused --waitretry=1 https://s3-us-west-2.amazonaws.com/obs-nightly/osx-deps.tar.gz
tar -xf ./osx-deps.tar.gz -C /tmp
2016-10-13 17:30:23 -07:00
# Fetch vlc codebase
hr "Downloading VLC repo"
wget --quiet --retry-connrefused --waitretry=1 -O vlc-master.zip https://github.com/videolan/vlc/archive/master.zip
2017-02-01 16:11:49 -08:00
unzip -q ./vlc-master.zip
2017-01-21 22:49:01 -08:00
# Get sparkle
hr "Downloading Sparkle framework"
wget --quiet --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
mkdir ./sparkle
tar -xf ./sparkle.tar.bz2 -C ./sparkle
2017-03-05 18:33:53 -08:00
sudo cp -R ./sparkle/Sparkle.framework /Library/Frameworks/Sparkle.framework
2016-10-10 20:49:45 -07:00
# CEF Stuff
hr "Downloading CEF"
wget --quiet --retry-connrefused --waitretry=1 https://obs-nightly.s3-us-west-2.amazonaws.com/cef_binary_${CEF_BUILD_VERSION}_macosx64.tar.bz2
2017-03-01 13:27:33 -08:00
tar -xf ./cef_binary_${CEF_BUILD_VERSION}_macosx64.tar.bz2
cd ./cef_binary_${CEF_BUILD_VERSION}_macosx64
2017-08-18 13:52:04 -07:00
# remove a broken test
sed -i '.orig' '/add_subdirectory(tests\/ceftests)/d' ./CMakeLists.txt
2016-10-10 20:49:45 -07: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.11 ..
2016-10-10 20:49:45 -07:00
make -j4
mkdir libcef_dll
cd ../../