1 LOCAL_PATH
:= $(call my-dir
)
4 # the executables that should be installed on the final system have to be added
5 # to PRODUCT_PACKAGES in
6 # build/target/product/core.mk
7 # possible executables are
8 # starter - allows to control and configure the daemon from the command line
9 # charon - the IKE daemon
11 # if you enable starter (see above) uncomment the following line
12 # strongswan_BUILD_STARTER := true
14 # this is the list of plugins that are built into libstrongswan and charon
15 # also these plugins are loaded by default (if not changed in strongswan.conf)
16 strongswan_CHARON_PLUGINS
:= android-log openssl fips-prf random nonce pubkey \
17 pkcs1 pkcs8 pem xcbc hmac kdf kernel-netlink socket-default android-dns \
18 stroke eap-identity eap-mschapv2 eap-md5 eap-gtc
20 strongswan_STARTER_PLUGINS
:= kernel-netlink
22 # list of all plugins - used to enable them with the function below
23 strongswan_PLUGINS
:= $(sort $(strongswan_CHARON_PLUGINS
) \
24 $(strongswan_STARTER_PLUGINS
))
26 include $(LOCAL_PATH
)/Android.common.mk
29 strongswan_PATH
:= $(LOCAL_PATH
)
30 libcurl_PATH
:= external
/strongswan-support
/libcurl
/include
31 libgmp_PATH
:= external
/strongswan-support
/gmp
32 openssl_PATH
:= external
/openssl
/include
35 strongswan_DIR
:= "/system/bin"
36 strongswan_SBINDIR
:= "/system/bin"
37 strongswan_PIDDIR
:= "/data/misc/vpn"
38 strongswan_PLUGINDIR
:= "$(strongswan_IPSEC_DIR)/ipsec"
39 strongswan_CONFDIR
:= "/system/etc"
40 strongswan_STRONGSWAN_CONF
:= "$(strongswan_CONFDIR)/strongswan.conf"
42 # CFLAGS (partially from a configure run using droid-gcc)
43 strongswan_CFLAGS
:= \
48 -Wno-strict-aliasing \
53 -DHAVE_CLOCK_GETTIME \
57 -DHAVE_STRUCT_SADB_X_POLICY_SADB_X_POLICY_PRIORITY \
58 -DHAVE_IPSEC_MODE_BEET \
59 -DHAVE_IPSEC_DIR_FWD \
63 -DCAPABILITIES_NATIVE \
67 -DUSE_BUILTIN_PRINTF \
70 -DROUTING_TABLE_PRIO
=220 \
71 -DVERSION
=\"$(strongswan_VERSION
)\" \
72 -DPLUGINDIR
=\"$(strongswan_PLUGINDIR
)\" \
73 -DIPSEC_DIR
=\"$(strongswan_DIR
)\" \
74 -DIPSEC_PIDDIR
=\"$(strongswan_PIDDIR
)\" \
75 -DIPSEC_CONFDIR
=\"$(strongswan_CONFDIR
)\" \
76 -DSTRONGSWAN_CONF
=\"$(strongswan_STRONGSWAN_CONF
)\" \
77 -DDEV_RANDOM
=\"/dev
/random
\" \
78 -DDEV_URANDOM
=\"/dev
/urandom
\"
80 # only for Android 2.0+
81 strongswan_CFLAGS
+= \
93 ifneq ($(strongswan_BUILD_STARTER
),)
100 include $(addprefix $(LOCAL_PATH
)/src
/,$(addsuffix /Android.mk
, \
101 $(sort $(strongswan_BUILD
))))