diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-10-11 16:29:30 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-10-11 16:30:21 +0200 |
commit | e9f23d626472476814017af479f68893825ac60e (patch) | |
tree | 6172aaf297f3a00a3abb309cd3a9375cbd65788e /src/ipsec | |
parent | 59ae6fd6f21eca7fc72729d358b75dee483ab928 (diff) | |
download | strongswan-e9f23d626472476814017af479f68893825ac60e.tar.bz2 strongswan-e9f23d626472476814017af479f68893825ac60e.tar.xz |
Build ipsec on Android.
Note: this does not fully work as [ (or even test) is not supported on
Android by default.
Diffstat (limited to 'src/ipsec')
-rw-r--r-- | src/ipsec/Android.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/ipsec/Android.mk b/src/ipsec/Android.mk new file mode 100644 index 000000000..b6a7c714d --- /dev/null +++ b/src/ipsec/Android.mk @@ -0,0 +1,31 @@ +LOCAL_PATH := $(call my-dir) +include $(CLEAR_VARS) + +# build ipsec ------------------------------------------------------------------ + +LOCAL_MODULE := ipsec + +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 + |