forked from qt-creator/qt-creator
Android: Introduce constants for Android ABIs
Avoiding string duplication prevents typo-related runtime errors and allows an IDE to use find symbol rather than plain text search. Change-Id: I7fba7c7c5cf90c0b371efce3b575537b2708dd0f Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
@@ -749,12 +749,12 @@ void QMakeStepConfigWidget::updateSummaryLabel()
|
||||
if (selectedAbis.isEmpty() && isAndroidKit()) {
|
||||
// Prefer ARM for Android, prefer 32bit.
|
||||
for (const Abi &abi : abis) {
|
||||
if (abi.param() == "armeabi-v7a")
|
||||
if (abi.param() == ProjectExplorer::Constants::ANDROID_ABI_ARMEABI_V7A)
|
||||
selectedAbis.append(abi.param());
|
||||
}
|
||||
if (selectedAbis.isEmpty()) {
|
||||
for (const Abi &abi : abis) {
|
||||
if (abi.param() == "arm64-v8a")
|
||||
if (abi.param() == ProjectExplorer::Constants::ANDROID_ABI_ARM64_V8A)
|
||||
selectedAbis.append(abi.param());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user