summaryrefslogtreecommitdiff
path: root/src/plugins/android/androidpackageinstallationstep.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2022-01-26 09:25:05 +0100
committerEike Ziller <eike.ziller@qt.io>2022-01-26 09:25:13 +0100
commitbe5fb98f1f4e9e4c4d916e32d0d6d73c73dfeede (patch)
tree605aa50f0d0d0a856ac229854cde6088c666cb78 /src/plugins/android/androidpackageinstallationstep.cpp
parent9def720ef653617ea3833d3b60ad86312c00dcd0 (diff)
parent250738d858bcdbcbeab0037d3dddee71a06bd8c7 (diff)
downloadqt-creator-be5fb98f1f4e9e4c4d916e32d0d6d73c73dfeede.tar.gz
Merge remote-tracking branch 'origin/6.0' into 7.0
Change-Id: I72684fe4b0857e52a15ee83721f9d7975582a8d2
Diffstat (limited to 'src/plugins/android/androidpackageinstallationstep.cpp')
-rw-r--r--src/plugins/android/androidpackageinstallationstep.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/plugins/android/androidpackageinstallationstep.cpp b/src/plugins/android/androidpackageinstallationstep.cpp
index 25917feba5..cd45495550 100644
--- a/src/plugins/android/androidpackageinstallationstep.cpp
+++ b/src/plugins/android/androidpackageinstallationstep.cpp
@@ -107,8 +107,12 @@ bool AndroidPackageInstallationStep::init()
const QString innerQuoted = ProcessArgs::quoteArg(dirPath);
const QString outerQuoted = ProcessArgs::quoteArg("INSTALL_ROOT=" + innerQuoted);
- CommandLine cmd{tc->makeCommand(buildEnvironment())};
- cmd.addArgs(outerQuoted + " install", CommandLine::Raw);
+ const FilePath makeCommand = tc->makeCommand(buildEnvironment());
+ CommandLine cmd{makeCommand};
+ // Run install on both the target and the whole project as a workaround for QTCREATORBUG-26550.
+ cmd.addArgs(QString("%1 install && cd %2 && %3 %1 install")
+ .arg(outerQuoted).arg(ProcessArgs::quoteArg(buildDirectory().toUserOutput()))
+ .arg(ProcessArgs::quoteArg(makeCommand.toUserOutput())), CommandLine::Raw);
processParameters()->setCommandLine(cmd);
// This is useful when running an example target from a Qt module project.