aboutsummaryrefslogtreecommitdiffstats
path: root/Android.common.mk.in
blob: 1bc8a8304a116f0d16b166ad4c39fbbfd9179aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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@"