[Android] build: add x86_64 support
Thomas Guillem
git at videolan.org
Thu Oct 9 14:32:57 CEST 2014
vlc-ports/android | branch: tv | Thomas Guillem <tom at gllm.fr> | Wed Oct 8 18:25:40 2014 +0200| [4942538793a3a651403dba57425dfb4ba0fdbf23] | committer: Geoffrey Métais
build: add x86_64 support
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=4942538793a3a651403dba57425dfb4ba0fdbf23
---
compile.sh | 10 +++++++++-
configure.sh | 2 +-
2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/compile.sh b/compile.sh
index b0e80c4..eba84cb 100755
--- a/compile.sh
+++ b/compile.sh
@@ -30,7 +30,7 @@ if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" ]; then
fi
if [ -z "$ANDROID_ABI" ]; then
- echo "Please set ANDROID_ABI to your architecture: armeabi-v7a, armeabi, x86 or mips."
+ echo "Please set ANDROID_ABI to your architecture: armeabi-v7a, armeabi, x86, x86_64 or mips."
exit 1
fi
@@ -40,6 +40,12 @@ if [ ${ANDROID_ABI} = "x86" ] ; then
PATH_HOST="x86"
HAVE_X86=1
PLATFORM_SHORT_ARCH="x86"
+elif [ ${ANDROID_ABI} = "x86_64" ] ; then
+ TARGET_TUPLE="x86_64-linux-android"
+ PATH_HOST="x86_64"
+ HAVE_X86=1
+ HAVE_64=1
+ PLATFORM_SHORT_ARCH="x86_64"
elif [ ${ANDROID_ABI} = "mips" ] ; then
TARGET_TUPLE="mipsel-linux-android"
PATH_HOST=$TARGET_TUPLE
@@ -167,6 +173,8 @@ elif [ ${ANDROID_ABI} = "armeabi" ] ; then
fi
elif [ ${ANDROID_ABI} = "x86" ] ; then
EXTRA_CFLAGS="-march=pentium -m32"
+elif [ ${ANDROID_ABI} = "x86_64" ] ; then
+ EXTRA_CFLAGS=""
elif [ ${ANDROID_ABI} = "mips" ] ; then
EXTRA_CFLAGS="-march=mips32 -mtune=mips32r2 -mhard-float"
# All MIPS Linux kernels since 2.4.4 will trap any unimplemented FPU
diff --git a/configure.sh b/configure.sh
index 3da859c..7c3c9d0 100755
--- a/configure.sh
+++ b/configure.sh
@@ -6,7 +6,7 @@ if [ -z "$ANDROID_NDK" ]; then
fi
if [ -z "$ANDROID_ABI" ]; then
- echo "Please set ANDROID_ABI to your architecture: armeabi-v7a, armeabi, x86 or mips."
+ echo "Please set ANDROID_ABI to your architecture: armeabi-v7a, armeabi, x86, x86_64 or mips."
exit 1
fi
More information about the Android
mailing list