Adding support for the build of libcharon (and charon) on Android.
This commit is contained in:
@@ -52,5 +52,6 @@ strongswan_CFLAGS += \
|
||||
|
||||
include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \
|
||||
charon \
|
||||
libcharon \
|
||||
libstrongswan \
|
||||
))
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
# copy-n-paste from Makefile.am
|
||||
LOCAL_SRC_FILES := \
|
||||
charon.c
|
||||
|
||||
# build charon -----------------------------------------------------------------
|
||||
|
||||
LOCAL_C_INCLUDES += \
|
||||
$(libvstr_PATH) \
|
||||
$(strongswan_PATH)/src/libcharon \
|
||||
$(strongswan_PATH)/src/libstrongswan
|
||||
|
||||
LOCAL_CFLAGS := $(strongswan_CFLAGS)
|
||||
|
||||
LOCAL_MODULE := charon
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_SHARED_LIBRARIES += libstrongswan libcharon
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
|
||||
@@ -210,7 +210,7 @@ LOCAL_SRC_FILES += $(call add_plugin, socket-dynamic, \
|
||||
socket_dynamic_socket.h socket_dynamic_socket.c \
|
||||
)
|
||||
|
||||
# build charon -----------------------------------------------------------------
|
||||
# build libcharon --------------------------------------------------------------
|
||||
|
||||
LOCAL_C_INCLUDES += \
|
||||
$(libvstr_PATH) \
|
||||
@@ -219,10 +219,7 @@ LOCAL_C_INCLUDES += \
|
||||
|
||||
LOCAL_CFLAGS := $(strongswan_CFLAGS)
|
||||
|
||||
# this is required to be able load the plugins
|
||||
LOCAL_LDFLAGS := -Wl,--export-dynamic
|
||||
|
||||
LOCAL_MODULE := charon
|
||||
LOCAL_MODULE := libcharon
|
||||
|
||||
LOCAL_ARM_MODE := arm
|
||||
|
||||
@@ -230,5 +227,5 @@ LOCAL_PRELINK_MODULE := false
|
||||
|
||||
LOCAL_SHARED_LIBRARIES += libstrongswan
|
||||
|
||||
include $(BUILD_EXECUTABLE)
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user