]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Build native libraries also for x86
authorTobias Brunner <tobias@strongswan.org>
Wed, 20 Mar 2013 13:50:41 +0000 (14:50 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 20 Mar 2013 14:24:27 +0000 (15:24 +0100)
Requires an updated build script for Vstr.

src/frontends/android/jni/.gitignore
src/frontends/android/jni/Application.mk [new file with mode: 0644]
src/frontends/android/jni/vstr/Android.mk

index 90fd652f097a2ed2148d9be027cea0601a9a7f03..98094a88b51e60bfd8ca26a849f6d00a424fe1d7 100644 (file)
@@ -1,4 +1,4 @@
 openssl
 strongswan
-vstr/libvstr.a
 vstr/include
+vstr/*/libvstr.a
diff --git a/src/frontends/android/jni/Application.mk b/src/frontends/android/jni/Application.mk
new file mode 100644 (file)
index 0000000..e4a6759
--- /dev/null
@@ -0,0 +1,3 @@
+# select the ABI(s) to build for (see CPU-ARCH-ABIS.html in the NDK docs).
+# Vstr has to be built accordingly first.
+APP_ABI := armeabi x86
index 87355a671dfbbfb2a9dc80a9d80e64d7fc623b62..8e1c6850fd566529a435ad4743f9e1a3f787a32e 100644 (file)
@@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)
 
 include $(CLEAR_VARS)
 
-LOCAL_SRC_FILES := libvstr.a
+LOCAL_SRC_FILES := $(TARGET_ARCH)/libvstr.a
 
 LOCAL_MODULE := libvstr