summaryrefslogtreecommitdiff
path: root/openvpn/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'openvpn/Android.mk')
-rw-r--r--openvpn/Android.mk14
1 files changed, 12 insertions, 2 deletions
diff --git a/openvpn/Android.mk b/openvpn/Android.mk
index 23e24448..5659b607 100644
--- a/openvpn/Android.mk
+++ b/openvpn/Android.mk
@@ -3,14 +3,22 @@ LOCAL_PATH:= $(call my-dir)/
include $(CLEAR_VARS)
LOCAL_LDLIBS := -lz
-LOCAL_C_INCLUDES := openssl/include lzo/include openssl/crypto openssl openvpn/src/compat openvpn/src/openvpn openvpn/include google-breakpad/src google-breakpad/src/common/android/include
+LOCAL_C_INCLUDES := openssl/include lzo/include openssl/crypto openssl openvpn/src/compat openvpn/src/openvpn openvpn/include google-breakpad/src google-breakpad/src/common/android/include polarssl/include
+
-LOCAL_SHARED_LIBRARIES := libssl libcrypto
#LOCAL_STATIC_LIBRARIES := libssl_static libcrypto_static liblzo-static
LOCAL_CFLAGS= -DHAVE_CONFIG_H -DTARGET_ABI=\"${TARGET_ABI}\"
LOCAL_STATIC_LIBRARIES := liblzo-static
+ifeq ($(USE_POLAR),1)
+LOCAL_STATIC_LIBRARIES += polarssl-static
+LOCAL_CFLAGS += -DENABLE_CRYPTO_POLARSSL=1
+else
+LOCAL_SHARED_LIBRARIES := libssl libcrypto
+LOCAL_CFLAGS += -DENABLE_CRYPTO_OPENSSL=1
+endif
+
ifeq ($(WITH_BREAKPAD),1)
LOCAL_STATIC_LIBRARIES += breakpad_client
LOCAL_CFLAGS += -DGOOGLE_BREAKPAD=1
@@ -32,6 +40,7 @@ LOCAL_SRC_FILES:= \
src/openvpn/console.c \
src/openvpn/crypto.c \
src/openvpn/crypto_openssl.c \
+ src/openvpn/crypto_polarssl.c \
src/openvpn/cryptoapi.c \
src/openvpn/dhcp.c \
src/openvpn/error.c \
@@ -85,6 +94,7 @@ LOCAL_SRC_FILES:= \
src/openvpn/socks.c \
src/openvpn/ssl.c \
src/openvpn/ssl_openssl.c \
+ src/openvpn/ssl_polarssl.c \
src/openvpn/ssl_verify.c \
src/openvpn/ssl_verify_openssl.c \
src/openvpn/ssl_verify_polarssl.c \