Bug 756575 - Fix android-platform detection for android-x86. r=ted

This commit is contained in:
Mike Hommey 2012-05-22 08:40:05 +02:00
parent 394efa0c06
commit a09774cffb
2 changed files with 20 additions and 2 deletions

View File

@ -328,7 +328,16 @@ case "$target" in
if test -z "$android_platform" ; then
AC_MSG_CHECKING([for android platform directory])
android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_cpu"
case "$target_cpu" in
arm)
target_name=arm
;;
i?86)
target_name=x86
;;
esac
android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name"
if test -d "$android_platform" ; then
AC_MSG_RESULT([$android_platform])

View File

@ -319,7 +319,16 @@ case "$target" in
if test -z "$android_platform" ; then
AC_MSG_CHECKING([for android platform directory])
android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_cpu"
case "$target_cpu" in
arm)
target_name=arm
;;
i?86)
target_name=x86
;;
esac
android_platform="$android_ndk"/platforms/android-"$android_version"/arch-"$target_name"
if test -d "$android_platform" ; then
AC_MSG_RESULT([$android_platform])