Files
openvpn3/scripts/mac/build-jsoncpp
Lev Stipakov d31620d0c6 agent mac: move from common
Windows agent has been moved from common to core,
so for consistency move mac agent too.

Since agent and agent-enabled client depend on jsoncpp,
also move jsoncpp build scripts.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
2021-06-10 23:06:24 +02:00

29 lines
575 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ -z "$O3" ]; then
echo O3 var must point to ovpn3 tree
exit 1
fi
if [ -z "$DEP_DIR" ]; then
echo DEP_DIR var must point to ovpn3 dependency tree
exit 1
fi
cd $DEP_DIR
rm -rf jsoncpp
mkdir jsoncpp
if [ "$OSX_ONLY" != "1" ]; then
for target in ios ios-dbg iossim iossim-dbg ; do
echo '***************' TARGET $target
TARGET=$target $O3/core/deps/jsoncpp/build-jsoncpp
done
fi
for target in osx osx-dbg ; do
echo '***************' TARGET $target
TARGET=$target $O3/core/deps/jsoncpp/build-jsoncpp
done
exit 0