diff options
author | hjk <hjk@qt.io> | 2022-06-10 16:41:27 +0200 |
---|---|---|
committer | hjk <hjk@qt.io> | 2022-06-13 10:22:40 +0000 |
commit | f97448812860c682e5e7cf716478c8ee24a577be (patch) | |
tree | a36b7d6458d4ec7dfec5622a66984712433603d8 /src/plugins/projectexplorer/project.cpp | |
parent | 9a411245d3f35c232be0affe4137e7a922101b8f (diff) | |
download | qt-creator-f97448812860c682e5e7cf716478c8ee24a577be.tar.gz |
ProjectExplorer: Move makeInstallCommand()
... from Project to BuildSystem.
More direct and less use of Target::activeBuildConfiguration().
Change-Id: I148381d23be0f9ab0750ed1440e1b2b3e25aded0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/project.cpp')
-rw-r--r-- | src/plugins/projectexplorer/project.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/plugins/projectexplorer/project.cpp b/src/plugins/projectexplorer/project.cpp index 23998359fb..cd0c64aec3 100644 --- a/src/plugins/projectexplorer/project.cpp +++ b/src/plugins/projectexplorer/project.cpp @@ -32,11 +32,9 @@ #include "editorconfiguration.h" #include "kit.h" #include "kitinformation.h" -#include "makestep.h" #include "projectexplorer.h" #include "projectnodes.h" #include "runconfiguration.h" -#include "runcontrol.h" #include "session.h" #include "target.h" #include "taskhub.h" @@ -971,19 +969,6 @@ bool Project::hasMakeInstallEquivalent() const return d->m_hasMakeInstallEquivalent; } -MakeInstallCommand Project::makeInstallCommand(const Target *target, const FilePath &installRoot) -{ - QTC_ASSERT(hasMakeInstallEquivalent(), return MakeInstallCommand()); - MakeInstallCommand cmd; - if (const BuildConfiguration * const bc = target->activeBuildConfiguration()) { - if (const auto makeStep = bc->buildSteps()->firstOfType<MakeStep>()) - cmd.command.setExecutable(makeStep->makeExecutable()); - } - cmd.command.addArg("install"); - cmd.command.addArg("INSTALL_ROOT=" + installRoot.nativePath()); - return cmd; -} - void Project::setup(const QList<BuildInfo> &infoList) { std::vector<std::unique_ptr<Target>> toRegister; |