forked from qt-creator/qt-creator
Android: avoid adding ANDROID_ABIS to the project file
Use buildSystem::property()/setProperty() to keep track of the selected ABI and avoid polluting the *.pro file with it. Task-number: QTCREATORBUG-24674 Change-Id: I5516a77c9f2d1a8975045e1d7c383e72c52db9d7 Reviewed-by: Andy Shaw <andy.shaw@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -156,9 +156,13 @@ bool AndroidDeployQtStep::init()
|
||||
return false;
|
||||
|
||||
const QString buildKey = target()->activeBuildKey();
|
||||
auto selectedAbis = buildSystem()->extraData(buildKey, Constants::ANDROID_ABIS).toStringList();
|
||||
auto selectedAbis = buildSystem()->property(Constants::ANDROID_ABIS).toStringList();
|
||||
|
||||
if (!selectedAbis.contains(info.cpuAbi.first())) {
|
||||
if (selectedAbis.isEmpty())
|
||||
selectedAbis = buildSystem()->extraData(buildKey, Constants::ANDROID_ABIS).toStringList();
|
||||
|
||||
const QtSupport::BaseQtVersion * const qt = QtSupport::QtKitAspect::qtVersion(kit());
|
||||
if (qt && qt->supportsMultipleQtAbis() && !selectedAbis.contains(info.cpuAbi.first())) {
|
||||
TaskHub::addTask(DeploymentTask(
|
||||
Task::Warning,
|
||||
tr("Android: The main ABI of the deployment device (%1) is not selected. The app "
|
||||
|
||||
Reference in New Issue
Block a user