Only include C files that start with the plugin name when building for Android.

This commit is contained in:
Tobias Brunner 2010-05-20 12:01:12 +02:00
parent c5c6f9b6da
commit e3dd6b1475

View 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 \
) \
) \
) \
)