settings: Use strongswan.conf used during library initialization for reload
[strongswan.git] / src / charon / Android.mk
index e8bb89a..852d73c 100644 (file)
@@ -3,24 +3,27 @@ include $(CLEAR_VARS)
 
 # copy-n-paste from Makefile.am
 LOCAL_SRC_FILES := \
-       charon.c
+charon.c
 
 # build charon -----------------------------------------------------------------
 
 LOCAL_C_INCLUDES += \
-       $(libvstr_PATH) \
+       $(strongswan_PATH)/src/libhydra \
        $(strongswan_PATH)/src/libcharon \
        $(strongswan_PATH)/src/libstrongswan
 
-LOCAL_CFLAGS := $(strongswan_CFLAGS)
+LOCAL_CFLAGS := $(strongswan_CFLAGS) \
+       -DPLUGINS='"$(strongswan_CHARON_PLUGINS)"'
 
 LOCAL_MODULE := charon
 
+LOCAL_MODULE_TAGS := optional
+
 LOCAL_ARM_MODE := arm
 
 LOCAL_PRELINK_MODULE := false
 
-LOCAL_SHARED_LIBRARIES += libstrongswan libcharon
+LOCAL_SHARED_LIBRARIES += libstrongswan libhydra libcharon
 
 include $(BUILD_EXECUTABLE)