diff options
author | Tobias Brunner <tobias@strongswan.org> | 2011-10-13 19:25:57 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2011-10-13 19:25:57 +0200 |
commit | 1cde0a51278c98d96fa3eee6770ec8ca704370dc (patch) | |
tree | e749c567896b24182bd5cee97676ec3570983169 | |
parent | 0ad58f013a608e1292c32d72ec09b241258aabd7 (diff) | |
download | strongswan-1cde0a51278c98d96fa3eee6770ec8ca704370dc.tar.bz2 strongswan-1cde0a51278c98d96fa3eee6770ec8ca704370dc.tar.xz |
Make build of pluto and starter optional on Android.
-rw-r--r-- | Android.mk.in | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/Android.mk.in b/Android.mk.in index 7f0a59f2f..818303b31 100644 --- a/Android.mk.in +++ b/Android.mk.in @@ -1,6 +1,9 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) +# whether starter is built. allows to control the daemons from the command line +strongswan_BUILD_STARTER := true + # whether pluto (IKEv1 daemon) is built. charon (IKEv2) is always enabled strongswan_BUILD_PLUTO := true @@ -92,16 +95,27 @@ strongswan_CFLAGS := \ strongswan_CFLAGS += \ -DHAVE_IN6ADDR_ANY +strongswan_BUILD := \ + charon \ + libcharon \ + libhydra \ + libstrongswan \ + libtncif + +ifneq ($(strongswan_BUILD_STARTER),) +strongswan_BUILD += \ + libfreeswan \ + starter \ + stroke \ + ipsec +endif + +ifneq ($(strongswan_BUILD_PLUTO),) +strongswan_BUILD += \ + libfreeswan \ + pluto \ + whack +endif + include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \ - charon \ - libcharon \ - libhydra \ - libstrongswan \ - libtncif \ - libfreeswan \ - pluto \ - stroke \ - whack \ - starter \ - ipsec \ - )) + $(sort $(strongswan_BUILD)))) |