summaryrefslogtreecommitdiff
path: root/main/jni
diff options
context:
space:
mode:
Diffstat (limited to 'main/jni')
-rw-r--r--main/jni/Android.mk19
1 files changed, 16 insertions, 3 deletions
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)