]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Build stroke on Android.
authorTobias Brunner <tobias@strongswan.org>
Tue, 11 Oct 2011 14:17:55 +0000 (16:17 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 11 Oct 2011 14:30:20 +0000 (16:30 +0200)
Android.mk.in
src/stroke/Android.mk [new file with mode: 0644]
src/stroke/Makefile.am

index f03800910e2d1f0ea4f043711c97a02bf44c3fbe..bae53189ac392a37e4a3d83e68c0d4f06622c4c4 100644 (file)
@@ -83,4 +83,5 @@ include $(addprefix $(LOCAL_PATH)/src/,$(addsuffix /Android.mk, \
                libstrongswan \
                libtncif \
                libfreeswan \
+               stroke \
        ))
diff --git a/src/stroke/Android.mk b/src/stroke/Android.mk
new file mode 100644 (file)
index 0000000..833130e
--- /dev/null
@@ -0,0 +1,25 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+# copy-n-paste from Makefile.am
+LOCAL_SRC_FILES := \
+stroke.c stroke_msg.h stroke_keywords.c stroke_keywords.h
+
+# build stroke -----------------------------------------------------------------
+
+LOCAL_C_INCLUDES += \
+       $(libvstr_PATH) \
+       $(strongswan_PATH)/src/libstrongswan
+
+LOCAL_CFLAGS := $(strongswan_CFLAGS)
+
+LOCAL_MODULE := stroke
+
+LOCAL_ARM_MODE := arm
+
+LOCAL_PRELINK_MODULE := false
+
+LOCAL_SHARED_LIBRARIES += libstrongswan
+
+include $(BUILD_EXECUTABLE)
+
index 363cde717de9ded3b9f32bfaafacc0640ade54b4..6eee8cd6c6536dc1873bdf7437ae1eb7f25905b3 100644 (file)
@@ -1,6 +1,8 @@
 ipsec_PROGRAMS = stroke
 
-stroke_SOURCES = stroke.c stroke_msg.h stroke_keywords.c stroke_keywords.h
+stroke_SOURCES = \
+stroke.c stroke_msg.h stroke_keywords.c stroke_keywords.h
+
 stroke_LDADD = $(top_builddir)/src/libstrongswan/libstrongswan.la $(SOCKLIB)
 INCLUDES = -I$(top_srcdir)/src/libstrongswan
 EXTRA_DIST = stroke_keywords.txt