aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kde.org>2019-04-20 20:35:14 +0300
committerBogDan Vatra <bogdan@kdab.com>2019-04-25 08:15:14 +0000
commitb9987bd2392d11629db3bb50de25987aa45d9cbd (patch)
tree4aa914c7c73d38693ea7095f77d38176499b10ee
parent7b6550e3b7cc7c01eeeda14aa1ca3bb619c4f3a4 (diff)
qbs-setup-qt is not needed anymore
Now we have automatic Qt detection, and that set is not needed anymore. Change-Id: I9c01dad173ac70cbeaab64b412255057d7ce8cbd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--src/app/qbs-setup-android/android-setup.cpp26
1 files changed, 1 insertions, 25 deletions
diff --git a/src/app/qbs-setup-android/android-setup.cpp b/src/app/qbs-setup-android/android-setup.cpp
index 4a3c8aef9..dc74debe0 100644
--- a/src/app/qbs-setup-android/android-setup.cpp
+++ b/src/app/qbs-setup-android/android-setup.cpp
@@ -68,12 +68,6 @@ static QStringList expectedArchs()
QStringLiteral("x86"), QStringLiteral("x86_64")};
}
-
-static QString subProfileName(const QString &mainProfileName, const QString &arch)
-{
- return mainProfileName + QLatin1Char('-') + arch;
-}
-
void setupSdk(qbs::Settings *settings, const QString &profileName, const QString &sdkDirPath)
{
if (!QDir(sdkDirPath).exists()) {
@@ -227,25 +221,7 @@ static void setupNdk(qbs::Settings *settings, const QString &profileName, const
const QtAndroidInfo qtAndroidInfo = infoPerArch.value(arch);
if (!qtAndroidInfo.isValid())
continue;
- const QString subProName = subProfileName(profileName, arch);
- const QString setupQtPath = qApp->applicationDirPath() + qls("/qbs-setup-qt");
- QProcess setupQt;
- setupQt.start(setupQtPath, QStringList({ qtAndroidInfo.qmakePath, subProName }));
- if (!setupQt.waitForStarted()) {
- throw ErrorInfo(Tr::tr("Setting up Qt profile failed: '%1' "
- "could not be started.").arg(setupQtPath));
- }
- if (!setupQt.waitForFinished()) {
- throw ErrorInfo(Tr::tr("Setting up Qt profile failed: Error running '%1' (%2)")
- .arg(setupQtPath, setupQt.errorString()));
- }
- if (setupQt.exitCode() != 0) {
- throw ErrorInfo(Tr::tr("Setting up Qt profile failed: '%1' returned with "
- "exit code %2.").arg(setupQtPath).arg(setupQt.exitCode()));
- }
- settings->sync();
- qbs::Internal::TemporaryProfile p(subProName, settings);
- qmakeFilePaths << p.p.value(qls("moduleProviders.Qt.qmakeFilePaths")).toStringList();
+ qmakeFilePaths << qtAndroidInfo.qmakePath;
platform = maximumPlatform(platform, qtAndroidInfo.platform);
}
if (!qmakeFilePaths.empty())