From bdeae33d48a0e013aee9abe57aaed8b0bce811a3 Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 4 May 2020 21:18:38 +0100 Subject: [PATCH] Add macOS build. Lots of features disabled, because I can't get it to work yet. We'll enable features one by one as we get them to work. --- .travis.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4aa13e0..0a9bc2e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,3 +36,25 @@ jobs: script: - make ENABLE_PYTHON=1 -j$(nproc) + + - env: JOB=macos + os: macos + language: c + + cache: + directories: + - $HOME/cache + + install: + - brew install + freealut + libconfig + libqrencode + libsodium + openal-soft + - export LDFLAGS="-L/usr/local/Cellar/openal-soft/1.20.1/lib" + - git clone --depth=1 https://github.com/TokTok/c-toxcore ../c-toxcore + - test -f /usr/local/lib/libtoxcore.dylib || (cd ../c-toxcore && cmake -B_build -H. && make -C_build install -j$(nproc)) + + script: + - make ENABLE_PYTHON=1 DISABLE_DESKTOP_NOTIFY=1 DISABLE_X11=1 DISABLE_AV=1 DISABLE_SOUND_NOTIFY=1 -j$(nproc)