android: Added support to build tnc-imc plugin
authorTobias Brunner <tobias@strongswan.org>
Thu, 11 Oct 2012 09:28:45 +0000 (11:28 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 8 Jul 2013 16:49:25 +0000 (18:49 +0200)
src/libcharon/Android.mk

index 825a72c..75cf74f 100644 (file)
@@ -210,6 +210,11 @@ ifneq ($(call plugin_enabled, stroke),)
 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../stroke/
 endif
 
+LOCAL_SRC_FILES += $(call add_plugin, tnc-imc)
+ifneq ($(call plugin_enabled, tnc-imc),)
+LOCAL_SHARED_LIBRARIES += libdl
+endif
+
 LOCAL_SRC_FILES += $(call add_plugin, tnc-tnccs)
 
 LOCAL_SRC_FILES += $(call add_plugin, tnccs-20)
@@ -220,13 +225,14 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH)/plugins/tnccs_20/
 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libtls/
 endif
 
-ifneq ($(or $(call plugin_enabled, eap-tnc), $(call plugin_enabled, tnc-tnccs), \
-                       $(call plugin_enabled, tnccs-20)),)
+ifneq ($(or $(call plugin_enabled, eap-tnc), $(call plugin_enabled, tnc-imc), \
+                       $(call plugin_enabled, tnc-tnccs), $(call plugin_enabled, tnccs-20)),)
 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libtnccs/
 LOCAL_SHARED_LIBRARIES += libtnccs
 endif
 
-ifneq ($(or $(call plugin_enabled, tnc-tnccs), $(call plugin_enabled, tnccs-20)),)
+ifneq ($(or $(call plugin_enabled, tnc-imc), $(call plugin_enabled, tnc-tnccs), \
+                       $(call plugin_enabled, tnccs-20)),)
 LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libtncif/
 LOCAL_SHARED_LIBRARIES += libtncif
 endif