0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-19 19:52:15 +02:00
openvpn3/scripts/build-extras/jsoncpp.sh
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

10 lines
289 B
Bash

if [ "$1" = "args" ]; then
echo " JSON=1 -- build with JsonCpp library"
elif [ "$1" = "deps" ]; then
# JsonCpp
if [ "$JSON" = "1" ]; then
CPPFLAGS="$CPPFLAGS $(pkg-config --cflags jsoncpp) -DHAVE_JSONCPP"
EXTRA_SRC_OBJ="$EXTRA_SRC_OBJ $(pkg-config --libs jsoncpp)"
fi
fi