Android: Warn if the selected device main ABI is not selected

Task-number: QTCREATORBUG-23291
Change-Id: I2ae13edaee30c6548a37e077c18f508a42b42d25
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Assam Boudjelthia
2020-07-14 15:23:26 +03:00
parent e0915b7eff
commit 27514fa94d
6 changed files with 27 additions and 1 deletions

View File

@@ -34,6 +34,8 @@
#include "qmakeprojectmanagerconstants.h"
#include "qmakesettings.h"
#include <android/androidconstants.h>
#include <projectexplorer/buildmanager.h>
#include <projectexplorer/buildsteplist.h>
#include <projectexplorer/gnumakeparser.h>
@@ -664,8 +666,12 @@ void QMakeStepConfigWidget::abisChanged()
break;
}
}
args << prefix + '"' + abis.join(' ') + '"';
if (!abis.isEmpty())
args << prefix + '"' + abis.join(' ') + '"';
m_step->setExtraArguments(args);
const QString buildKey = m_step->target()->activeBuildKey();
m_step->buildSystem()->setExtraData(buildKey, Android::Constants::ANDROID_ABIS, m_step->selectedAbis());
}
updateSummaryLabel();