From c6f225ba3e7f3f34d01540e39afad5d69dba463f Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Wed, 12 Mar 2014 10:53:48 +0100 Subject: Fix build without openvpn3, new version --- main/jni/Android.mk | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'main/jni') diff --git a/main/jni/Android.mk b/main/jni/Android.mk index 66f2b737..3152d7e9 100644 --- a/main/jni/Android.mk +++ b/main/jni/Android.mk @@ -1,8 +1,12 @@ # Path of the sources JNI_DIR := $(call my-dir) -#USE_POLAR=1 -#USE_BREAKPAD=0 +#optional arguments +#WITH_POLAR=1 +#WITH_OPENVPN3=1 +# Build openvpn with polar (OpenVPN3 core is always build with polar) +#WITH_BREAKPAD=0 + include lzo/Android.mk include snappy/Android.mk @@ -20,13 +24,22 @@ else WITH_BREAKPAD=0 endif +ifeq ($(WITH_POLAR),1) + USE_POLAR=1 +endif +ifeq ($(WITH_OPENVPN3),1) + USE_POLAR=1 +endif ifeq ($(USE_POLAR),1) include polarssl/Android.mk endif include openvpn/Android.mk -include ovpn3/Android.mk + +ifeq ($(WITH_OPENVPN3),1) + include ovpn3/Android.mk +endif LOCAL_PATH := $(JNI_DIR) -- cgit v1.2.3