androiddeployqt: only write enabled architectures to build.gradle
androiddeployqt writes a list of architectures into the build.gradle file. This list should only contain the architectures which are enabled. This patch adapts the generation of this list accordingly. Amends 07cfab07a2a489e021b56226824a2d9b1211fad7. Change-Id: I5c7c1886c54cc3b9a7e42af6eefbaf2a067a67d5 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
This commit is contained in:
parent
a8823db578
commit
1405c1d5bf
@ -2628,6 +2628,8 @@ bool buildAndroidProject(const Options &options)
|
||||
gradleProperties["androidBuildToolsVersion"] = options.sdkBuildToolsVersion.toLocal8Bit();
|
||||
QString abiList;
|
||||
for (auto it = options.architectures.constBegin(); it != options.architectures.constEnd(); ++it) {
|
||||
if (!it->enabled)
|
||||
continue;
|
||||
if (abiList.size())
|
||||
abiList.append(u",");
|
||||
abiList.append(it.key());
|
||||
|
Loading…
x
Reference in New Issue
Block a user