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
79740e9f
Commit
79740e9f
authored
Oct 09, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Oct 10, 2014
Browse files
build: add arm64-v8a support
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
90122406
Changes
2
Hide whitespace changes
Inline
Side-by-side
compile.sh
View file @
79740e9f
...
...
@@ -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, x86_64 or mips."
echo
"Please set ANDROID_ABI to your architecture: armeabi-v7a, armeabi,
arm64-v8a,
x86, x86_64 or mips."
exit
1
fi
...
...
@@ -51,6 +51,12 @@ elif [ ${ANDROID_ABI} = "mips" ] ; then
PATH_HOST
=
$TARGET_TUPLE
HAVE_MIPS
=
1
PLATFORM_SHORT_ARCH
=
"mips"
elif
[
${
ANDROID_ABI
}
=
"arm64-v8a"
]
;
then
TARGET_TUPLE
=
"aarch64-linux-android"
PATH_HOST
=
$TARGET_TUPLE
HAVE_ARM
=
1
HAVE_64
=
1
PLATFORM_SHORT_ARCH
=
"arm64"
else
TARGET_TUPLE
=
"arm-linux-androideabi"
PATH_HOST
=
$TARGET_TUPLE
...
...
@@ -171,6 +177,8 @@ elif [ ${ANDROID_ABI} = "armeabi" ] ; then
EXTRA_CFLAGS
=
"-mfpu=vfp -mcpu=arm1136jf-s -mfloat-abi=softfp"
fi
fi
elif
[
${
ANDROID_ABI
}
=
"arm64-v8a"
]
;
then
EXTRA_CFLAGS
=
""
elif
[
${
ANDROID_ABI
}
=
"x86"
]
;
then
EXTRA_CFLAGS
=
"-march=pentium -m32"
elif
[
${
ANDROID_ABI
}
=
"x86_64"
]
;
then
...
...
configure.sh
View file @
79740e9f
...
...
@@ -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, x86_64 or mips."
echo
"Please set ANDROID_ABI to your architecture: armeabi-v7a, armeabi,
arm64-v8a,
x86, x86_64 or mips."
exit
1
fi
...
...
@@ -19,7 +19,7 @@ fi
VLC_SOURCEDIR
=
..
CFLAGS
=
"-g -O2 -fstrict-aliasing -funsafe-math-optimizations"
if
[
-n
"
$HAVE_ARM
"
]
;
then
if
[
-n
"
$HAVE_ARM
"
-a
!
-n
"
$HAVE_64
"
]
;
then
CFLAGS
=
"
${
CFLAGS
}
-mlong-calls"
fi
...
...
Write
Preview
Supports
Markdown
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