summaryrefslogtreecommitdiff
path: root/main/jni/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'main/jni/Android.mk')
-rw-r--r--main/jni/Android.mk44
1 files changed, 44 insertions, 0 deletions
diff --git a/main/jni/Android.mk b/main/jni/Android.mk
new file mode 100644
index 00000000..fc2158d2
--- /dev/null
+++ b/main/jni/Android.mk
@@ -0,0 +1,44 @@
+# Path of the sources
+JNI_DIR := $(call my-dir)
+
+#USE_POLAR=1
+
+include lzo/Android.mk
+include snappy/Android.mk
+
+include openssl/Android.mk
+
+ifneq ($(TARGET_ARCH),mips)
+WITH_BREAKPAD=1
+include google-breakpad/android/google_breakpad/Android.mk
+else
+WITH_BREAKPAD=0
+endif
+
+
+ifeq ($(USE_POLAR),1)
+ include polarssl/Android.mk
+endif
+
+include openvpn/Android.mk
+
+
+LOCAL_PATH := $(JNI_DIR)
+
+# The only real JNI library
+include $(CLEAR_VARS)
+LOCAL_LDLIBS := -llog -lz
+LOCAL_C_INCLUDES := openssl/include openssl/crypto openssl
+LOCAL_SRC_FILES:= jniglue.c jbcrypto.cpp
+LOCAL_MODULE = opvpnutil
+LOCAL_SHARED_LIBRARIES := libcrypto
+include $(BUILD_SHARED_LIBRARY)
+
+
+include $(CLEAR_VARS)
+LOCAL_LDLIBS := -lz -lc
+LOCAL_SHARED_LIBRARIES := libssl libcrypto openvpn
+LOCAL_SRC_FILES:= minivpn.c dummy.cpp
+LOCAL_MODULE = minivpn
+include $(BUILD_EXECUTABLE)
+