aboutsummaryrefslogtreecommitdiffstats
path: root/Android.common.mk.in
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2012-10-11 11:06:35 +0200
committerTobias Brunner <tobias@strongswan.org>2013-07-08 18:49:25 +0200
commit71b23661d471a6a2137cdaba5fa5d9aed7a1a6dc (patch)
treef04ab40e75f272440626a77b6af4f8c1e2f65822 /Android.common.mk.in
parent19737434432db895f5bc8095645959a1ddc1e622 (diff)
downloadstrongswan-71b23661d471a6a2137cdaba5fa5d9aed7a1a6dc.tar.bz2
strongswan-71b23661d471a6a2137cdaba5fa5d9aed7a1a6dc.tar.xz
android: Added function to include source files from plugin subdirectories
Diffstat (limited to 'Android.common.mk.in')
-rw-r--r--Android.common.mk.in11
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@"