2017-09-28 06:26:55 -07:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-02-08 01:45:24 -08:00
|
|
|
set -e
|
|
|
|
|
2018-04-25 09:17:24 -07:00
|
|
|
COPTS="--disable-cxx-bindings"
|
2017-09-28 06:26:55 -07:00
|
|
|
PARALLEL_JOBS=10
|
|
|
|
|
|
|
|
# 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"
|
|
|
|
|
2018-04-25 09:17:24 -07:00
|
|
|
export CFLAGS="-I/usr/local/opt/openssl/include $CFLAGS"
|
|
|
|
export LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS"
|
|
|
|
|
2017-09-28 06:26:55 -07:00
|
|
|
# Normal build test of all targets
|
|
|
|
./autogen.sh $COPTS $@
|
|
|
|
make -j $PARALLEL_JOBS
|
2018-01-05 06:52:12 -08:00
|
|
|
make -j $PARALLEL_JOBS examples
|
2017-09-28 06:26:55 -07:00
|
|
|
#make -j $PARALLEL_JOBS benchmark
|