summaryrefslogtreecommitdiff
path: root/.ci/ci-osx-build.sh
blob: 4e7a0f05cc6f32f28394be5eab708ca7632075fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

COPTS="--disable-cxx-bindings"

# Prepare OSX env for build
mkdir -p ~/Library/LaunchAgents
ln -sfv /usr/local/opt/d-bus/*.plist ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist
export PATH="$(brew --prefix gettext)/bin:$PATH"

export CFLAGS="-I/usr/local/opt/openssl/include $CFLAGS"
export LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS"

# Normal build test of all targets
./autogen.sh $COPTS $@
make
make examples
#make benchmark