Extracted some parts from Android.mk.in which can be used for NDK builds.

This commit is contained in:
Tobias Brunner
2012-08-08 15:07:43 +02:00
parent 80b267f9e3
commit 3fa8d7738e
4 changed files with 25 additions and 18 deletions
+19
View File
@@ -0,0 +1,19 @@
# some common definitions used by the main and the NDK-specific Android.mk
# include this after strongswan_PLUGINS has been defined
# helper macros to only add source files for plugins included in the list above
# source files are relative to the android.mk that called the macro
plugin_enabled = $(filter $(1), $(strongswan_PLUGINS))
add_plugin = $(if $(call plugin_enabled,$(1)), \
$(patsubst $(LOCAL_PATH)/%,%, \
$(wildcard \
$(subst %,$(subst -,_,$(strip $(1))), \
$(LOCAL_PATH)/plugins/%/%*.c \
) \
) \
) \
)
# strongSwan version, replaced by top Makefile
strongswan_VERSION := "@PACKAGE_VERSION@"