]> git.ipfire.org Git - thirdparty/strongswan.git/blame - Android.mk.in
Ignore the generated Android.mk
[thirdparty/strongswan.git] / Android.mk.in
CommitLineData
1be32988
TB
1LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3
4# this is the list of plugins that are built into libstrongswan and charon
5# also these plugins are loaded by default (if not changed in strongswan.conf)
6strongswan_PLUGINS := aes des sha1 sha2 md5 fips-prf random x509 pubkey pkcs1 \
7 pem xcbc hmac gmp kernel-netlink socket-default attr android
8
9# helper macros to only add source files for plugins included in the list above
10plugin_enabled = $(findstring $(1), $(strongswan_PLUGINS))
11add_plugin = $(if $(call plugin_enabled,$(1)), \
12 $(addprefix plugins/$(subst -,_,$(strip $(1))/),$(2)))
13
14# includes
15libvstr_PATH = external/strongswan-support/vstr/include
16libgmp_PATH = external/strongswan-support/gmp
17
18# CFLAGS (partially from a configure run using droid-gcc)
19strongswan_CFLAGS := \
20 -Wno-format \
21 -Wno-pointer-sign \
f9622e8c 22 -Wno-pointer-arith \
1be32988
TB
23 -Wno-sign-compare \
24 -Wno-strict-aliasing \
25 -DHAVE___BOOL \
26 -DHAVE_STDBOOL_H \
27 -DHAVE_ALLOCA_H \
28 -DHAVE_ALLOCA \
29 -DHAVE_CLOCK_GETTIME \
30 -DHAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC \
31 -DHAVE_PRCTL \
32 -DHAVE_LINUX_UDP_H \
33 -DHAVE_STRUCT_SADB_X_POLICY_SADB_X_POLICY_PRIORITY \
34 -DHAVE_IPSEC_MODE_BEET \
35 -DHAVE_IPSEC_DIR_FWD \
36 -DMONOLITHIC \
37 -DUSE_VSTR \
38 -DROUTING_TABLE=0 \
39 -DROUTING_TABLE_PRIO=220 \
807c12ce 40 -DVERSION=\"@PACKAGE_VERSION@\" \
1be32988
TB
41 -DPLUGINS='"$(strongswan_PLUGINS)"' \
42 -DIPSEC_DIR=\"/system/bin\" \
43 -DIPSEC_PIDDIR=\"/data/misc/vpn\" \
44 -DSTRONGSWAN_CONF=\"/system/etc/strongswan.conf\" \
45 -DDEV_RANDOM=\"/dev/random\" \
46 -DDEV_URANDOM=\"/dev/urandom\"
47
48# only for Android 2.0+
49strongswan_CFLAGS += \
50 -DHAVE_IN6ADDR_ANY
51
52include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \
53 charon \
54 libstrongswan \
55 ))