Files
openvpn3/scripts/linux/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

26 lines
656 B
Bash
Executable File

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