mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
Adding support for the build of libcharon (and charon) on Android.
This commit is contained in:
parent
78060ba063
commit
52c7257366
@ -52,5 +52,6 @@ strongswan_CFLAGS += \
|
||||
|
||||
include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \
|
||||
charon \
|
||||
libcharon \
|
||||
libstrongswan \
|
||||
))
|
||||
|
26
src/charon/Android.mk
Normal file
26
src/charon/Android.mk
Normal file
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user