9805bff7e5f8daea5fccb9498821593a25e8d667
[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 pkcs8 pem xcbc hmac socket-default \
6 eap-identity eap-mschapv2 eap-md5 eap-gtc
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 -Wall \
20 -Wextra \
21 -Wno-format \
22 -Wno-pointer-sign \
23 -Wno-pointer-arith \
24 -Wno-sign-compare \
25 -Wno-strict-aliasing \
26 -Wno-unused-parameter \
27 -DHAVE___BOOL \
28 -DHAVE_STDBOOL_H \
29 -DHAVE_ALLOCA_H \
30 -DHAVE_ALLOCA \
31 -DHAVE_CLOCK_GETTIME \
32 -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC \
33 -DHAVE_PRCTL \
34 -DHAVE_LINUX_UDP_H \
35 -DHAVE_STRUCT_SADB_X_POLICY_SADB_X_POLICY_PRIORITY \
36 -DHAVE_IPSEC_MODE_BEET \
37 -DHAVE_IPSEC_DIR_FWD \
38 -DHAVE_IN6ADDR_ANY \
39 -DHAVE_NETINET_IP6_H \
40 -DOPENSSL_NO_ENGINE \
41 -DCONFIG_H_INCLUDED \
42 -DCAPABILITIES \
43 -DCAPABILITIES_NATIVE \
44 -DMONOLITHIC \
45 -DUSE_IKEV1 \
46 -DUSE_IKEV2 \
47 -DUSE_VSTR \
48 -DDEBUG \
49 -DCHARON_UDP_PORT=0 \
50 -DCHARON_NATT_PORT=0 \
51 -DVERSION=\"$(strongswan_VERSION)\" \
52 -DDEV_RANDOM=\"/dev/random\" \
53 -DDEV_URANDOM=\"/dev/urandom\"
54
55 include $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
56 vstr \
57 openssl \
58 libandroidbridge \
59 strongswan/src/libipsec \
60 strongswan/src/libcharon \
61 strongswan/src/libhydra \
62 strongswan/src/libstrongswan \
63 ))