File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / Android.common.mk.in
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 3 09:46:43 2020 UTC (3 years, 11 months ago) by misho
Branches: strongswan, MAIN
CVS tags: v5_9_2p0, v5_8_4p7, HEAD
Strongswan

    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
    6: plugin_enabled = $(filter $(1), $(strongswan_PLUGINS))
    7: add_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: add_plugin_subdirs = $(if $(call plugin_enabled,$(1)), \
   17:                $(patsubst $(LOCAL_PATH)/%,%, \
   18:                  $(wildcard \
   19:                    $(subst %,$(subst -,_,$(strip $(1))), \
   20:                      $(addprefix $(LOCAL_PATH)/plugins/%/,$(addsuffix /*.c, \
   21:                        $(strip $(2)) \
   22:                       )) \
   23:                     ) \
   24:                   ) \
   25:                 ) \
   26:               )
   27: 
   28: # strongSwan version, replaced by top Makefile
   29: strongswan_VERSION := "@PACKAGE_VERSION@"
   30: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>