android: Add a simple HTTP(S) fetcher for CRLs
[strongswan.git] / src / frontends / android / app / src / main / jni / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 # use "bring your own device" (BYOD) features (also see USE_BYOD in
5 # MainActivity.java)
6 strongswan_USE_BYOD := true
7
8 strongswan_CHARON_PLUGINS := android-log openssl fips-prf random nonce pubkey \
9 chapoly curve25519 pkcs1 pkcs8 pem xcbc hmac socket-default \
10 eap-identity eap-mschapv2 eap-md5 eap-gtc eap-tls
11
12 ifneq ($(strongswan_USE_BYOD),)
13 strongswan_BYOD_PLUGINS := eap-ttls eap-tnc tnc-imc tnc-tnccs tnccs-20
14 endif
15
16 strongswan_PLUGINS := $(strongswan_CHARON_PLUGINS) \
17 $(strongswan_BYOD_PLUGINS)
18
19 strongswan_DIR := ../../../../../../../
20
21 # includes
22 strongswan_PATH := $(LOCAL_PATH)/$(strongswan_DIR)
23 openssl_PATH := $(LOCAL_PATH)/openssl/include
24
25 include $(strongswan_PATH)/Android.common.mk
26
27 # CFLAGS (partially from a configure run using droid-gcc)
28 strongswan_CFLAGS := \
29 -Wall \
30 -Wextra \
31 -Wno-format \
32 -Wno-pointer-sign \
33 -Wno-pointer-arith \
34 -Wno-sign-compare \
35 -Wno-strict-aliasing \
36 -Wno-unused-parameter \
37 -Wno-missing-field-initializers \
38 -DHAVE___BOOL \
39 -DHAVE_STDBOOL_H \
40 -DHAVE_ALLOCA_H \
41 -DHAVE_ALLOCA \
42 -DHAVE_CLOCK_GETTIME \
43 -DHAVE_DLADDR \
44 -DHAVE_PRCTL \
45 -DHAVE_LINUX_UDP_H \
46 -DHAVE_STRUCT_SADB_X_POLICY_SADB_X_POLICY_PRIORITY \
47 -DHAVE_IPSEC_MODE_BEET \
48 -DHAVE_IPSEC_DIR_FWD \
49 -DHAVE_IN6ADDR_ANY \
50 -DHAVE_NETINET_IP6_H \
51 -DCONFIG_H_INCLUDED \
52 -DCAPABILITIES \
53 -DCAPABILITIES_NATIVE \
54 -DMONOLITHIC \
55 -DUSE_IKEV1 \
56 -DUSE_IKEV2 \
57 -DUSE_BUILTIN_PRINTF \
58 -DDEBUG \
59 -DCHARON_UDP_PORT=0 \
60 -DCHARON_NATT_PORT=0 \
61 -DVERSION=\"$(strongswan_VERSION)\" \
62 -DDEV_RANDOM=\"/dev/random\" \
63 -DDEV_URANDOM=\"/dev/urandom\"
64
65 ifneq ($(strongswan_USE_BYOD),)
66 strongswan_CFLAGS += -DUSE_BYOD
67 endif
68
69 strongswan_BUILD := \
70 openssl \
71 libandroidbridge \
72 $(strongswan_DIR)/src/libipsec \
73 $(strongswan_DIR)/src/libcharon \
74 $(strongswan_DIR)/src/libstrongswan
75
76 ifneq ($(strongswan_USE_BYOD),)
77 strongswan_BUILD += \
78 $(strongswan_DIR)/src/libtnccs \
79 $(strongswan_DIR)/src/libtncif \
80 $(strongswan_DIR)/src/libimcv \
81 $(strongswan_DIR)/src/libtpmtss
82 endif
83
84 include $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
85 $(strongswan_BUILD)))