From: Tobias Brunner Date: Thu, 11 Oct 2012 09:06:35 +0000 (+0200) Subject: android: Added function to include source files from plugin subdirectories X-Git-Tag: 5.1.0dr2~2^2~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=71b23661d471a6a2137cdaba5fa5d9aed7a1a6dc;p=thirdparty%2Fstrongswan.git android: Added function to include source files from plugin subdirectories --- diff --git a/Android.common.mk.in b/Android.common.mk.in index 1bc8a8304a..9f8849d7ed 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@"