Files
openvpn3/scripts/mac/build-all
Frank Lichtenheld 7b2413eee2 scripts/{linux,mac}/build-all: cleanup
- remove commented out lines that are unlikely to be useful
- enable set -u
- allow to skip mbedtls build on linux
2022-01-28 12:20:02 +01:00

37 lines
799 B
Bash
Executable File

#!/usr/bin/env bash
set -e
set -u
export DEP_DIR="${DEP_DIR:-$HOME/src/mac}"
if [ -z "${O3:-}" ]; then
echo O3 var must point to ovpn3 tree ; exit 1
fi
cd $DEP_DIR
rm -rf asio* boost* lz4* lzo* minicrypto openssl* polarssl* mbedtls* snappy* jsoncpp*
echo "******* ASIO"
"$O3"/core/deps/asio/build-asio
if [ "${MTLS:-1}" = 0 ] ; then
echo "******* MBEDTLS (skipped)"
else
echo "******* MBEDTLS"
# consider OSX_SERVER=0
"$O3"/core/scripts/mac/build-mbedtls
fi
if [ "${OSSL:-0}" = 1 ] ; then
echo "******* OPENSSL"
"$O3"/core/scripts/mac/build-openssl
else
echo "******* OPENSSL (skipped)"
fi
echo "******* LZ4"
"$O3"/core/scripts/mac/build-lz4
echo "******* xxHash"
"$O3"/core/deps/xxHash/build-xxHash
echo "******* JSONCPP"
"$O3"/core/scripts/mac/build-jsoncpp