Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
a62f5ad9
Commit
a62f5ad9
authored
Oct 08, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Oct 09, 2014
Browse files
build: add x86_64 support
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
ea564562
Changes
2
Hide whitespace changes
Inline
Side-by-side
compile.sh
View file @
a62f5ad9
...
...
@@ -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
...
...
configure.sh
View file @
a62f5ad9
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment