AndroidConfig::bestNdkPlatformMatch: Ensure that api level 9 is minimum

Change-Id: I527c7ce13b01f441183940a5e0ea2baec64c04e3
Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
BogDan Vatra
2014-04-16 17:27:04 +02:00
committed by Daniel Teske
parent 381b04fa04
commit 384d5d7577

View File

@@ -840,6 +840,7 @@ QString AndroidConfig::bestNdkPlatformMatch(const QString &targetAPI) const
{
updateNdkInformation();
int target = targetAPI.mid(targetAPI.lastIndexOf(QLatin1Char('-')) + 1).toInt();
target = std::max(9, target);
foreach (int apiLevel, m_availableNdkPlatforms) {
if (apiLevel <= target)
return QString::fromLatin1("android-%1").arg(apiLevel);