diff options
Diffstat (limited to 'src/ipsec/Android.mk')
-rw-r--r-- | src/ipsec/Android.mk | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/ipsec/Android.mk b/src/ipsec/Android.mk new file mode 100644 index 000000000..d134f7fd2 --- /dev/null +++ b/src/ipsec/Android.mk @@ -0,0 +1,33 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) + +# build ipsec ------------------------------------------------------------------ + +LOCAL_MODULE := ipsec + +LOCAL_MODULE_TAGS := optional + +LOCAL_MODULE_CLASS := EXECUTABLES + +GEN := $(local-intermediates-dir)/ipsec + +$(GEN) : PRIVATE_PATH := $(LOCAL_PATH) +$(GEN) : PRIVATE_CUSTOM_TOOL = sed \ + -e "s:@IPSEC_SHELL@:/system/bin/sh:" \ + -e "s:@IPSEC_VERSION@:$(strongswan_VERSION):" \ + -e "s:@IPSEC_NAME@:strongSwan:" \ + -e "s:@IPSEC_DISTRO@::" \ + -e "s:@IPSEC_DIR@:$(strongswan_DIR):" \ + -e "s:@IPSEC_SBINDIR@:$(strongswan_SBINDIR):" \ + -e "s:@IPSEC_CONFDIR@:$(strongswan_CONFDIR):" \ + -e "s:@IPSEC_PIDDIR@:$(strongswan_PIDDIR):" \ + $< > $@ && chmod +x $@ + +$(GEN) : $(strongswan_PATH)/Android.mk +$(GEN) : $(LOCAL_PATH)/ipsec.in + $(transform-generated-source) + +LOCAL_GENERATED_SOURCES := $(GEN) + +include $(BUILD_SYSTEM)/base_rules.mk + |