Only include C files that start with the plugin name when building for Android.
authorTobias Brunner <tobias@strongswan.org>
Thu, 20 May 2010 10:01:12 +0000 (12:01 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 20 May 2010 10:01:12 +0000 (12:01 +0200)
Android.mk.in

index 4a4b7df..6277861 100644 (file)
@@ -12,7 +12,9 @@ plugin_enabled = $(findstring $(1), $(strongswan_PLUGINS))
 add_plugin = $(if $(call plugin_enabled,$(1)), \
                $(patsubst $(LOCAL_PATH)/%,%, \
                  $(wildcard \
-                   $(LOCAL_PATH)/plugins/$(subst -,_,$(strip $(1)))/*.c \
+                   $(subst %,$(subst -,_,$(strip $(1))), \
+                     $(LOCAL_PATH)/plugins/%/%*.c \
+                    ) \
                   ) \
                 ) \
               )