Android: detect Linux 64 bit host architecture
This is the easy fix: looking at what is supported by the NDK. If people have weird setups, then they have to specify -android-ndk-host. We do actually detect the host architecture later, but using that would be a much bigger (and riskier) change. Task-number: QTBUG-31275 Change-Id: I18db878031baa2e1ee2fa4beff364d58d8bd3c7a Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
683228f8de
commit
07b34d934e
13
configure
vendored
13
configure
vendored
@ -2664,15 +2664,12 @@ esac
|
|||||||
if [ "$XPLATFORM_ANDROID" = "yes" ]; then
|
if [ "$XPLATFORM_ANDROID" = "yes" ]; then
|
||||||
if [ -z "$CFG_DEFAULT_ANDROID_NDK_HOST" ]; then
|
if [ -z "$CFG_DEFAULT_ANDROID_NDK_HOST" ]; then
|
||||||
case $PLATFORM in
|
case $PLATFORM in
|
||||||
linux-*-64)
|
|
||||||
if [ -d "$CFG_DEFAULT_ANDROID_NDK_ROOT/toolchains/arm-linux-androideabi-$CFG_DEFAULT_ANDROID_NDK_TOOLCHAIN_VERSION/prebuilt/linux-x86_64" ]; then
|
|
||||||
CFG_DEFAULT_ANDROID_NDK_HOST=linux-x86_64
|
|
||||||
else
|
|
||||||
CFG_DEFAULT_ANDROID_NDK_HOST=linux-x86
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
linux-*)
|
linux-*)
|
||||||
CFG_DEFAULT_ANDROID_NDK_HOST=linux-x86
|
if [ -d "$CFG_DEFAULT_ANDROID_NDK_ROOT/toolchains/arm-linux-androideabi-$CFG_DEFAULT_ANDROID_NDK_TOOLCHAIN_VERSION/prebuilt/linux-x86" ]; then
|
||||||
|
CFG_DEFAULT_ANDROID_NDK_HOST=linux-x86
|
||||||
|
elif [ -d "$CFG_DEFAULT_ANDROID_NDK_ROOT/toolchains/arm-linux-androideabi-$CFG_DEFAULT_ANDROID_NDK_TOOLCHAIN_VERSION/prebuilt/linux-x86_64" ]; then
|
||||||
|
CFG_DEFAULT_ANDROID_NDK_HOST=linux-x86_64
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
macx-*)
|
macx-*)
|
||||||
CFG_DEFAULT_ANDROID_NDK_HOST=darwin-x86
|
CFG_DEFAULT_ANDROID_NDK_HOST=darwin-x86
|
||||||
|
Loading…
x
Reference in New Issue
Block a user