Build pluto on Android.
authorTobias Brunner <tobias@strongswan.org>
Thu, 13 Oct 2011 16:29:36 +0000 (18:29 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 13 Oct 2011 16:29:36 +0000 (18:29 +0200)
Does not fully compile.

Android.mk.in
src/pluto/Android.mk [new file with mode: 0644]

index d30bed1..b63e0d3 100644 (file)
@@ -84,6 +84,7 @@ include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \
                libstrongswan \
                libtncif \
                libfreeswan \
+               pluto \
                stroke \
                starter \
                ipsec \
diff --git a/src/pluto/Android.mk b/src/pluto/Android.mk
new file mode 100644 (file)
index 0000000..5ac8d00
--- /dev/null
@@ -0,0 +1,75 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+# copy-n-paste from Makefile.am
+LOCAL_SRC_FILES := \
+ac.c ac.h \
+alg_info.c alg_info.h \
+ca.c ca.h \
+certs.c certs.h \
+connections.c connections.h \
+constants.c constants.h \
+cookie.c cookie.h \
+crl.c crl.h \
+crypto.c crypto.h \
+db_ops.c db_ops.h \
+defs.c defs.h \
+demux.c demux.h \
+dnskey.c dnskey.h \
+event_queue.c event_queue.h \
+fetch.c fetch.h \
+foodgroups.c foodgroups.h \
+ike_alg.c ike_alg.h \
+ipsec_doi.c ipsec_doi.h \
+kameipsec.h \
+kernel.c kernel.h \
+kernel_alg.c kernel_alg.h \
+kernel_pfkey.c kernel_pfkey.h \
+keys.c keys.h \
+lex.c lex.h \
+log.c log.h \
+myid.c myid.h \
+modecfg.c modecfg.h \
+nat_traversal.c nat_traversal.h \
+ocsp.c ocsp.h \
+packet.c packet.h \
+pkcs7.c pkcs7.h \
+pluto.c pluto.h \
+plutomain.c \
+rcv_whack.c rcv_whack.h \
+server.c server.h \
+smartcard.c smartcard.h \
+spdb.c spdb.h \
+state.c state.h \
+timer.c timer.h \
+vendor.c vendor.h \
+virtual.c virtual.h \
+whack_attribute.c whack_attribute.h \
+xauth/xauth_manager.c xauth/xauth_manager.h \
+xauth/xauth_provider.h xauth/xauth_verifier.h \
+x509.c x509.h \
+builder.c builder.h \
+rsaref/pkcs11t.h rsaref/pkcs11.h rsaref/unix.h rsaref/pkcs11f.h
+
+# build pluto ------------------------------------------------------------------
+
+LOCAL_C_INCLUDES += \
+       $(libvstr_PATH) \
+       $(strongswan_PATH)/src/libhydra \
+       $(strongswan_PATH)/src/libstrongswan \
+       $(strongswan_PATH)/src/libfreeswan \
+       $(strongswan_PATH)/src/whack
+
+LOCAL_CFLAGS := $(strongswan_CFLAGS) \
+       -DPLUTO -DVENDORID -DXAUTH_VID -DCISCO_QUIRKS \
+       -DTHREADS -DKERNEL26_SUPPORT -DKERNEL26_HAS_KAME_DUPLICATES
+
+LOCAL_MODULE := pluto
+
+LOCAL_ARM_MODE := arm
+
+LOCAL_PRELINK_MODULE := false
+
+LOCAL_SHARED_LIBRARIES += libstrongswan libhydra libfreeswan
+
+include $(BUILD_EXECUTABLE)