Provide a menu with options to save VPN profiles
[strongswan.git] / src / frontends / android / jni / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 strongswan_CHARON_PLUGINS := android-log openssl fips-prf random nonce pubkey \
5 pkcs1 pem xcbc hmac socket-default \
6 eap-identity eap-mschapv2 eap-md5
7
8 strongswan_PLUGINS := $(strongswan_CHARON_PLUGINS)
9
10 include $(LOCAL_PATH)/strongswan/Android.common.mk
11
12 # includes
13 strongswan_PATH := $(LOCAL_PATH)/strongswan
14 libvstr_PATH := $(LOCAL_PATH)/vstr/include
15 openssl_PATH := $(LOCAL_PATH)/openssl/include
16
17 # CFLAGS (partially from a configure run using droid-gcc)
18 strongswan_CFLAGS := \
19 -Wno-format \
20 -Wno-pointer-sign \
21 -Wno-pointer-arith \
22 -Wno-sign-compare \
23 -Wno-strict-aliasing \
24 -DHAVE___BOOL \
25 -DHAVE_STDBOOL_H \
26 -DHAVE_ALLOCA_H \
27 -DHAVE_ALLOCA \
28 -DHAVE_CLOCK_GETTIME \
29 -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC \
30 -DHAVE_PRCTL \
31 -DHAVE_LINUX_UDP_H \
32 -DHAVE_STRUCT_SADB_X_POLICY_SADB_X_POLICY_PRIORITY \
33 -DHAVE_IPSEC_MODE_BEET \
34 -DHAVE_IPSEC_DIR_FWD \
35 -DOPENSSL_NO_EC \
36 -DOPENSSL_NO_ECDSA \
37 -DOPENSSL_NO_ECDH \
38 -DOPENSSL_NO_ENGINE \
39 -DCONFIG_H_INCLUDED \
40 -DCAPABILITIES \
41 -DCAPABILITIES_NATIVE \
42 -DMONOLITHIC \
43 -DUSE_IKEV1 \
44 -DUSE_IKEV2 \
45 -DUSE_VSTR \
46 -DDEBUG \
47 -DCHARON_UDP_PORT=0 \
48 -DCHARON_NATT_PORT=0 \
49 -DVERSION=\"$(strongswan_VERSION)\" \
50 -DDEV_RANDOM=\"/dev/random\" \
51 -DDEV_URANDOM=\"/dev/urandom\"
52
53 # only for Android 2.0+
54 strongswan_CFLAGS += \
55 -DHAVE_IN6ADDR_ANY
56
57 include $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
58 vstr \
59 openssl \
60 libandroidbridge \
61 strongswan/src/libipsec \
62 strongswan/src/libcharon \
63 strongswan/src/libhydra \
64 strongswan/src/libstrongswan \
65 ))