diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-02-17 15:39:25 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-08-08 15:07:43 +0200 |
commit | 3fa8d7738e7441c9bcbb39a88e38102a77a90071 (patch) | |
tree | a1dd4efda40f2b414c192dc923f0012fa113c025 /Android.common.mk.in | |
parent | 80b267f9e3baccdf636e8302efd5cf277147d97e (diff) | |
download | strongswan-3fa8d7738e7441c9bcbb39a88e38102a77a90071.tar.bz2 strongswan-3fa8d7738e7441c9bcbb39a88e38102a77a90071.tar.xz |
Extracted some parts from Android.mk.in which can be used for NDK builds.
Diffstat (limited to 'Android.common.mk.in')
-rw-r--r-- | Android.common.mk.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Android.common.mk.in b/Android.common.mk.in new file mode 100644 index 000000000..1bc8a8304 --- /dev/null +++ b/Android.common.mk.in @@ -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@" + |