]> git.ipfire.org Git - thirdparty/strongswan.git/blame - Android.common.mk.in
Extracted some parts from Android.mk.in which can be used for NDK builds.
[thirdparty/strongswan.git] / Android.common.mk.in
CommitLineData
3fa8d773
TB
1# some common definitions used by the main and the NDK-specific Android.mk
2# include this after strongswan_PLUGINS has been defined
3
4# helper macros to only add source files for plugins included in the list above
5# source files are relative to the android.mk that called the macro
6plugin_enabled = $(filter $(1), $(strongswan_PLUGINS))
7add_plugin = $(if $(call plugin_enabled,$(1)), \
8 $(patsubst $(LOCAL_PATH)/%,%, \
9 $(wildcard \
10 $(subst %,$(subst -,_,$(strip $(1))), \
11 $(LOCAL_PATH)/plugins/%/%*.c \
12 ) \
13 ) \
14 ) \
15 )
16
17# strongSwan version, replaced by top Makefile
18strongswan_VERSION := "@PACKAGE_VERSION@"
19