libhydra: Remove empty unused library
[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 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 include $(LOCAL_PATH)/strongswan/Android.common.mk
20
21 # includes
22 strongswan_PATH := $(LOCAL_PATH)/strongswan
23 openssl_PATH := $(LOCAL_PATH)/openssl/include
24
25 # CFLAGS (partially from a configure run using droid-gcc)
26 strongswan_CFLAGS := \
27 -Wall \
28 -Wextra \
29 -Wno-format \
30 -Wno-pointer-sign \
31 -Wno-pointer-arith \
32 -Wno-sign-compare \
33 -Wno-strict-aliasing \
34 -Wno-unused-parameter \
35 -Wno-missing-field-initializers \
36 -DHAVE___BOOL \
37 -DHAVE_STDBOOL_H \
38 -DHAVE_ALLOCA_H \
39 -DHAVE_ALLOCA \
40 -DHAVE_CLOCK_GETTIME \
41 -DHAVE_DLADDR \
42 -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC \
43 -DHAVE_PRCTL \
44 -DHAVE_LINUX_UDP_H \
45 -DHAVE_STRUCT_SADB_X_POLICY_SADB_X_POLICY_PRIORITY \
46 -DHAVE_IPSEC_MODE_BEET \
47 -DHAVE_IPSEC_DIR_FWD \
48 -DHAVE_IN6ADDR_ANY \
49 -DHAVE_NETINET_IP6_H \
50 -DOPENSSL_NO_ENGINE \
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/src/libipsec \
73 strongswan/src/libcharon \
74 strongswan/src/libstrongswan
75
76 ifneq ($(strongswan_USE_BYOD),)
77 strongswan_BUILD += \
78 strongswan/src/libtnccs \
79 strongswan/src/libtncif \
80 strongswan/src/libimcv
81 endif
82
83 include $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
84 $(strongswan_BUILD)))