mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 12:12:15 +02:00
Added "JAVA=1" option to build script to build with JVM.
This commit is contained in:
parent
3f2ee479e4
commit
3825535db2
@ -37,6 +37,7 @@ if [ -z "$1" ]; then
|
||||
echo " LZO=1 -- build with LZO compression library"
|
||||
echo " LZ4=1 -- build with LZ4 compression library"
|
||||
echo " SNAP=1 -- build with Snappy compression library"
|
||||
echo " JAVA=1 -- build with JVM"
|
||||
for s in $(enum_build_extras) ; do
|
||||
. $s args
|
||||
done
|
||||
@ -182,6 +183,17 @@ if [ "$SNAP" = "1" ]; then
|
||||
CPPFLAGS="$CPPFLAGS -DHAVE_SNAPPY"
|
||||
fi
|
||||
|
||||
# JVM
|
||||
if [ "$JAVA" = "1" ]; then
|
||||
if [ -z "$JAVA_HOME" ]; then
|
||||
echo JAVA_HOME not defined
|
||||
exit 1
|
||||
fi
|
||||
LIBDIRS="$LIBDIRS -L$JAVA_HOME/jre/lib/amd64/server"
|
||||
CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
||||
LIBS="$LIBS -ljvm"
|
||||
fi
|
||||
|
||||
# other environments
|
||||
for s in $(enum_build_extras) ; do
|
||||
. $s deps
|
||||
|
Loading…
Reference in New Issue
Block a user