try to build osx version

This commit is contained in:
asquelt 2017-04-04 18:20:35 +02:00
parent 1a043f1dc0
commit 1465e7760e
3 changed files with 35 additions and 1 deletions

View File

@ -3,9 +3,13 @@ language: cpp
matrix:
include:
- os: linux
dist: xenial
dist: trusty
sudo: required
before_install: "./CI/install-dependencies-linux.sh"
before_script: "./CI/before-script-linux.sh"
- os: osx
before_install: "./CI/install-dependencies-osx.sh"
before_script: "./CI/before-script-osx.sh"
script: cd ./build && make -j4 && cd -

6
CI/before-script-osx.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
set -ex
mkdir build && cd build
cmake -DLIBOBS_INCLUDE_DIR="../../obs-studio/libobs" -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4

24
CI/install-dependencies-osx.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
set -ex
brew update
# OBS Studio deps
brew install ffmpeg
brew install libav
brew install x264
# qtwebsockets deps
brew install qt5
# obs-websocket deps
# Build obs-studio
cd ..
git clone --recursive https://github.com/jp9000/obs-studio
cd obs-studio
mkdir build && cd build
cmake .. -DCMAKE_PREFIX_PATH=$(brew --prefix qt5) -DQt5WebSockets_DIR=$(brew --prefix qt5)/lib/cmake/Qt5WebSockets -DCMAKE_MODULE_PATH=$(brew --prefix qt5)/lib/cmake/ -DLIBOBS_INCLUDE_DIR=~/obs-studio/libobs -DLIBOBS_LIB=~/obs-studio/libobs && make
sudo make install
sudo ldconfig