Avoid proxy for bypass_socket, enable_udp_decap
[strongswan.git] / src / ipsec / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 # build ipsec ------------------------------------------------------------------
5
6 LOCAL_MODULE := ipsec
7
8 LOCAL_MODULE_TAGS := optional
9
10 LOCAL_MODULE_CLASS := EXECUTABLES
11
12 GEN := $(local-intermediates-dir)/ipsec
13
14 $(GEN) : PRIVATE_PATH := $(LOCAL_PATH)
15 $(GEN) : PRIVATE_CUSTOM_TOOL = sed \
16 -e "s:@IPSEC_SHELL@:/system/bin/sh:" \
17 -e "s:@IPSEC_VERSION@:$(strongswan_VERSION):" \
18 -e "s:@IPSEC_NAME@:strongSwan:" \
19 -e "s:@IPSEC_DISTRO@::" \
20 -e "s:@IPSEC_DIR@:$(strongswan_DIR):" \
21 -e "s:@IPSEC_SBINDIR@:$(strongswan_SBINDIR):" \
22 -e "s:@IPSEC_CONFDIR@:$(strongswan_CONFDIR):" \
23 -e "s:@IPSEC_PIDDIR@:$(strongswan_PIDDIR):" \
24 $< > $@ && chmod +x $@
25
26 $(GEN) : $(strongswan_PATH)/Android.mk
27 $(GEN) : $(LOCAL_PATH)/ipsec.in
28 $(transform-generated-source)
29
30 LOCAL_GENERATED_SOURCES := $(GEN)
31
32 include $(BUILD_SYSTEM)/base_rules.mk
33