Adding support for the build of libcharon (and charon) on Android.

This commit is contained in:
Tobias Brunner 2010-03-16 17:18:58 +01:00
parent 78060ba063
commit 52c7257366
3 changed files with 30 additions and 6 deletions

View File

@ -52,5 +52,6 @@ strongswan_CFLAGS += \
include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \
charon \
libcharon \
libstrongswan \
))

26
src/charon/Android.mk Normal file
View 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)

View File

@ -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)