forked from qt-creator/qt-creator
QtSupport: Add supportsMultipleQtAbis getter
Introduce bool QtSupport::supportsMultipleQtAbis(). Let AndroidQtVersion respond according to the QVersionNumber. This allows to replace the version arithmetics in several places with straight forward (and better findable) function calls. Task-number: QTCREATORBUG-24471 Change-Id: Ib6e39fd6485a54e08ad66f84d4e2582989043419 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -423,7 +423,7 @@ bool QmakeProFileNode::setData(Utils::Id role, const QVariant &value) const
|
||||
int flags = QmakeProjectManager::Internal::ProWriter::ReplaceValues;
|
||||
if (Target *target = m_buildSystem->target()) {
|
||||
QtSupport::BaseQtVersion *version = QtSupport::QtKitAspect::qtVersion(target->kit());
|
||||
if (version && version->qtVersion() < QtSupport::QtVersionNumber(5, 14, 0)) {
|
||||
if (version && !version->supportsMultipleQtAbis()) {
|
||||
const QString arch = pro->singleVariableValue(Variable::AndroidArch);
|
||||
scope = "contains(ANDROID_TARGET_ARCH," + arch + ')';
|
||||
flags |= QmakeProjectManager::Internal::ProWriter::MultiLine;
|
||||
|
||||
Reference in New Issue
Block a user