summaryrefslogtreecommitdiff
path: root/openvpn/Android.mk
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-03-23 22:42:46 +0100
committerArne Schwabe <arne@rfc2549.org>2013-03-23 22:42:46 +0100
commite792f2d04614dbcbd27076a042c28f6fb20d7abd (patch)
tree6f98d901a06cd3ea8b40178b777afccd29ca22ed /openvpn/Android.mk
parent6ba818e5c9e1d7d50478cf161fe819597499477d (diff)
Allow building with polarssl
Not very useful at the moment since pkcs12 and external key management are not supported but might be useful one day
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 \