Android: Set ANDROID_NDK_PLATFORM based on the mimum sdk version

And not based on the build sdk version.

Change-Id: I31a37652d40408e7bfc3f49366d97f560ee99c71
Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
BogDan Vatra
2014-06-25 15:41:32 +02:00
committed by Daniel Teske
parent 384d5d7577
commit 8481c91fbf
3 changed files with 4 additions and 5 deletions

View File

@@ -836,11 +836,10 @@ SdkPlatform AndroidConfig::highestAndroidSdk() const
return m_availableSdkPlatforms.first();
}
QString AndroidConfig::bestNdkPlatformMatch(const QString &targetAPI) const
QString AndroidConfig::bestNdkPlatformMatch(int target) const
{
updateNdkInformation();
int target = targetAPI.mid(targetAPI.lastIndexOf(QLatin1Char('-')) + 1).toInt();
target = std::max(9, target);
updateNdkInformation();
foreach (int apiLevel, m_availableNdkPlatforms) {
if (apiLevel <= target)
return QString::fromLatin1("android-%1").arg(apiLevel);