Update configure-android for Android NDK 22, folder 'platforms' is now removed, the script needs it to detect latest platform version. (#2739)
This commit is contained in:
parent
cb35c79f21
commit
dfc511df26
|
@ -42,8 +42,14 @@ fi
|
|||
NDK_VER=`sed -n -E 's/^Pkg.Revision *= *([0-9]+).*/\1/p' ${ANDROID_NDK_ROOT}/source.properties`
|
||||
|
||||
if test "x$APP_PLATFORM" = "x"; then
|
||||
APP_PLATFORM=`ls ${ANDROID_NDK_ROOT}/platforms/ | sed 's/android-//' | sort -gr | head -1`
|
||||
APP_PLATFORM="android-${APP_PLATFORM}"
|
||||
if test -d ${ANDROID_NDK_ROOT}/platforms; then
|
||||
APP_PLATFORM=`ls ${ANDROID_NDK_ROOT}/platforms/ | sed 's/android-//' | sort -gr | head -1`
|
||||
fi
|
||||
if test "x$APP_PLATFORM" != "x"; then
|
||||
APP_PLATFORM="android-${APP_PLATFORM}"
|
||||
else
|
||||
APP_PLATFORM="latest"
|
||||
fi
|
||||
echo "$F: APP_PLATFORM not specified, using ${APP_PLATFORM}"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue