Build libfreeswan on Android.
This commit is contained in:
@@ -82,4 +82,5 @@ include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \
|
|||||||
libhydra \
|
libhydra \
|
||||||
libstrongswan \
|
libstrongswan \
|
||||||
libtncif \
|
libtncif \
|
||||||
|
libfreeswan \
|
||||||
))
|
))
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
# copy-n-paste from Makefile.am
|
||||||
|
LOCAL_SRC_FILES := \
|
||||||
|
addrtoa.c addrtot.c addrtypeof.c anyaddr.c atoaddr.c atoasr.c \
|
||||||
|
atosubnet.c atoul.c copyright.c datatot.c freeswan.h \
|
||||||
|
goodmask.c initaddr.c initsaid.c initsubnet.c internal.h ipsec_param.h \
|
||||||
|
pfkey_v2_build.c pfkey_v2_debug.c \
|
||||||
|
pfkey_v2_ext_bits.c pfkey_v2_parse.c portof.c rangetoa.c \
|
||||||
|
pfkey.h pfkeyv2.h rangetosubnet.c sameaddr.c \
|
||||||
|
satot.c subnetof.c subnettoa.c subnettot.c \
|
||||||
|
subnettypeof.c ttoaddr.c ttodata.c ttoprotoport.c ttosa.c ttosubnet.c ttoul.c \
|
||||||
|
ultoa.c ultot.c
|
||||||
|
|
||||||
|
# build libfreeswan ------------------------------------------------------------
|
||||||
|
|
||||||
|
LOCAL_C_INCLUDES += \
|
||||||
|
$(libvstr_PATH) \
|
||||||
|
$(strongswan_PATH)/src/include \
|
||||||
|
$(strongswan_PATH)/src/libstrongswan \
|
||||||
|
$(strongswan_PATH)/src/libhydra \
|
||||||
|
$(strongswan_PATH)/src/pluto
|
||||||
|
|
||||||
|
LOCAL_CFLAGS := $(strongswan_CFLAGS)
|
||||||
|
|
||||||
|
LOCAL_MODULE := libfreeswan
|
||||||
|
|
||||||
|
LOCAL_ARM_MODE := arm
|
||||||
|
|
||||||
|
LOCAL_PRELINK_MODULE := false
|
||||||
|
|
||||||
|
LOCAL_SHARED_LIBRARIES += libstrongswan
|
||||||
|
|
||||||
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
|
||||||
@@ -1,13 +1,14 @@
|
|||||||
noinst_LIBRARIES = libfreeswan.a
|
noinst_LIBRARIES = libfreeswan.a
|
||||||
libfreeswan_a_SOURCES = addrtoa.c addrtot.c addrtypeof.c anyaddr.c atoaddr.c atoasr.c \
|
libfreeswan_a_SOURCES = \
|
||||||
atosubnet.c atoul.c copyright.c datatot.c freeswan.h \
|
addrtoa.c addrtot.c addrtypeof.c anyaddr.c atoaddr.c atoasr.c \
|
||||||
goodmask.c initaddr.c initsaid.c initsubnet.c internal.h ipsec_param.h \
|
atosubnet.c atoul.c copyright.c datatot.c freeswan.h \
|
||||||
pfkey_v2_build.c pfkey_v2_debug.c \
|
goodmask.c initaddr.c initsaid.c initsubnet.c internal.h ipsec_param.h \
|
||||||
pfkey_v2_ext_bits.c pfkey_v2_parse.c portof.c rangetoa.c \
|
pfkey_v2_build.c pfkey_v2_debug.c \
|
||||||
pfkey.h pfkeyv2.h rangetosubnet.c sameaddr.c \
|
pfkey_v2_ext_bits.c pfkey_v2_parse.c portof.c rangetoa.c \
|
||||||
satot.c subnetof.c subnettoa.c subnettot.c \
|
pfkey.h pfkeyv2.h rangetosubnet.c sameaddr.c \
|
||||||
subnettypeof.c ttoaddr.c ttodata.c ttoprotoport.c ttosa.c ttosubnet.c ttoul.c \
|
satot.c subnetof.c subnettoa.c subnettot.c \
|
||||||
ultoa.c ultot.c
|
subnettypeof.c ttoaddr.c ttodata.c ttoprotoport.c ttosa.c ttosubnet.c ttoul.c \
|
||||||
|
ultoa.c ultot.c
|
||||||
|
|
||||||
INCLUDES = \
|
INCLUDES = \
|
||||||
-I$(top_srcdir)/src/libstrongswan \
|
-I$(top_srcdir)/src/libstrongswan \
|
||||||
|
|||||||
Reference in New Issue
Block a user