From f97448812860c682e5e7cf716478c8ee24a577be Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 10 Jun 2022 16:41:27 +0200 Subject: ProjectExplorer: Move makeInstallCommand() ... from Project to BuildSystem. More direct and less use of Target::activeBuildConfiguration(). Change-Id: I148381d23be0f9ab0750ed1440e1b2b3e25aded0 Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/project.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/plugins/projectexplorer/project.cpp') 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()) - cmd.command.setExecutable(makeStep->makeExecutable()); - } - cmd.command.addArg("install"); - cmd.command.addArg("INSTALL_ROOT=" + installRoot.nativePath()); - return cmd; -} - void Project::setup(const QList &infoList) { std::vector> toRegister; -- cgit v1.2.1