From 71b23661d471a6a2137cdaba5fa5d9aed7a1a6dc Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 11 Oct 2012 11:06:35 +0200 Subject: [PATCH] android: Added function to include source files from plugin subdirectories --- Android.common.mk.in | 11 +++++++++++ 1 file changed, 11 insertions(+) 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@"