diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-10-11 11:06:35 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-07-08 18:49:25 +0200 |
commit | 71b23661d471a6a2137cdaba5fa5d9aed7a1a6dc (patch) | |
tree | f04ab40e75f272440626a77b6af4f8c1e2f65822 | |
parent | 19737434432db895f5bc8095645959a1ddc1e622 (diff) | |
download | strongswan-71b23661d471a6a2137cdaba5fa5d9aed7a1a6dc.tar.bz2 strongswan-71b23661d471a6a2137cdaba5fa5d9aed7a1a6dc.tar.xz |
android: Added function to include source files from plugin subdirectories
-rw-r--r-- | Android.common.mk.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Android.common.mk.in b/Android.common.mk.in index 1bc8a8304..9f8849d7e 100644 --- a/Android.common.mk.in +++ b/Android.common.mk.in @@ -13,6 +13,17 @@ add_plugin = $(if $(call plugin_enabled,$(1)), \ ) \ ) \ ) +add_plugin_subdirs = $(if $(call plugin_enabled,$(1)), \ + $(patsubst $(LOCAL_PATH)/%,%, \ + $(wildcard \ + $(subst %,$(subst -,_,$(strip $(1))), \ + $(addprefix $(LOCAL_PATH)/plugins/%/,$(addsuffix /*.c, \ + $(strip $(2)) \ + )) \ + ) \ + ) \ + ) \ + ) # strongSwan version, replaced by top Makefile strongswan_VERSION := "@PACKAGE_VERSION@" |