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 # list of all plugins - used to enable them with the function below
21 strongswan_PLUGINS
:= $(sort $(strongswan_CHARON_PLUGINS
))
23 include $(LOCAL_PATH
)/Android.common.mk
26 strongswan_PATH
:= $(LOCAL_PATH
)
27 libcurl_PATH
:= external
/strongswan-support
/libcurl
/include
28 libgmp_PATH
:= external
/strongswan-support
/gmp
29 openssl_PATH
:= external
/openssl
/include
32 strongswan_DIR
:= "/system/bin"
33 strongswan_SBINDIR
:= "/system/bin"
34 strongswan_PIDDIR
:= "/data/misc/vpn"
35 strongswan_PLUGINDIR
:= "$(strongswan_IPSEC_DIR)/ipsec"
36 strongswan_CONFDIR
:= "/system/etc"
37 strongswan_STRONGSWAN_CONF
:= "$(strongswan_CONFDIR)/strongswan.conf"
39 # CFLAGS (partially from a configure run using droid-gcc)
40 strongswan_CFLAGS
:= \
45 -Wno-strict-aliasing \
50 -DHAVE_CLOCK_GETTIME \
54 -DHAVE_STRUCT_SADB_X_POLICY_SADB_X_POLICY_PRIORITY \
55 -DHAVE_IPSEC_MODE_BEET \
56 -DHAVE_IPSEC_DIR_FWD \
60 -DCAPABILITIES_NATIVE \
64 -DUSE_BUILTIN_PRINTF \
67 -DROUTING_TABLE_PRIO
=220 \
68 -DVERSION
=\"$(strongswan_VERSION
)\" \
69 -DPLUGINDIR
=\"$(strongswan_PLUGINDIR
)\" \
70 -DIPSEC_DIR
=\"$(strongswan_DIR
)\" \
71 -DIPSEC_PIDDIR
=\"$(strongswan_PIDDIR
)\" \
72 -DIPSEC_CONFDIR
=\"$(strongswan_CONFDIR
)\" \
73 -DSTRONGSWAN_CONF
=\"$(strongswan_STRONGSWAN_CONF
)\" \
74 -DDEV_RANDOM
=\"/dev
/random
\" \
75 -DDEV_URANDOM
=\"/dev
/urandom
\"
77 # only for Android 2.0+
78 strongswan_CFLAGS
+= \
90 ifneq ($(strongswan_BUILD_STARTER
),)
97 include $(addprefix $(LOCAL_PATH
)/src
/,$(addsuffix /Android.mk
, \
98 $(sort $(strongswan_BUILD
))))