forked from qt-creator/qt-creator
QmakeProjectManager: Un-export QmakeMakeStep
Not directly used in leaf plugins (iOS?) anymore. Change-Id: I5fcf7e0d976e99b5d9eb8b0e6404651b35d5db43 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -32,7 +32,6 @@
|
|||||||
#include "qmakenodes.h"
|
#include "qmakenodes.h"
|
||||||
#include "qmakesettings.h"
|
#include "qmakesettings.h"
|
||||||
#include "qmakestep.h"
|
#include "qmakestep.h"
|
||||||
#include "qmakemakestep.h"
|
|
||||||
#include "makefileparse.h"
|
#include "makefileparse.h"
|
||||||
#include "qmakebuildconfiguration.h"
|
#include "qmakebuildconfiguration.h"
|
||||||
|
|
||||||
@@ -47,6 +46,7 @@
|
|||||||
#include <projectexplorer/buildpropertiessettings.h>
|
#include <projectexplorer/buildpropertiessettings.h>
|
||||||
#include <projectexplorer/buildsteplist.h>
|
#include <projectexplorer/buildsteplist.h>
|
||||||
#include <projectexplorer/kit.h>
|
#include <projectexplorer/kit.h>
|
||||||
|
#include <projectexplorer/makestep.h>
|
||||||
#include <projectexplorer/projectexplorer.h>
|
#include <projectexplorer/projectexplorer.h>
|
||||||
#include <projectexplorer/projectexplorerconstants.h>
|
#include <projectexplorer/projectexplorerconstants.h>
|
||||||
#include <projectexplorer/projectmacroexpander.h>
|
#include <projectexplorer/projectmacroexpander.h>
|
||||||
@@ -491,12 +491,12 @@ QMakeStep *QmakeBuildConfiguration::qmakeStep() const
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
QmakeMakeStep *QmakeBuildConfiguration::makeStep() const
|
MakeStep *QmakeBuildConfiguration::makeStep() const
|
||||||
{
|
{
|
||||||
QmakeMakeStep *ms = nullptr;
|
MakeStep *ms = nullptr;
|
||||||
BuildStepList *bsl = buildSteps();
|
BuildStepList *bsl = buildSteps();
|
||||||
for (int i = 0; i < bsl->count(); ++i)
|
for (int i = 0; i < bsl->count(); ++i)
|
||||||
if ((ms = qobject_cast<QmakeMakeStep *>(bsl->at(i))) != nullptr)
|
if ((ms = qobject_cast<MakeStep *>(bsl->at(i))) != nullptr)
|
||||||
return ms;
|
return ms;
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
@@ -32,13 +32,15 @@
|
|||||||
|
|
||||||
#include <utils/aspects.h>
|
#include <utils/aspects.h>
|
||||||
|
|
||||||
namespace ProjectExplorer { class FileNode; }
|
namespace ProjectExplorer {
|
||||||
|
class FileNode;
|
||||||
|
class MakeStep;
|
||||||
|
} // ProjectExplorer
|
||||||
|
|
||||||
namespace QmakeProjectManager {
|
namespace QmakeProjectManager {
|
||||||
|
|
||||||
class QMakeStep;
|
class QMakeStep;
|
||||||
class QmakeBuildSystem;
|
class QmakeBuildSystem;
|
||||||
class QmakeMakeStep;
|
|
||||||
class QmakeProFileNode;
|
class QmakeProFileNode;
|
||||||
|
|
||||||
class QMAKEPROJECTMANAGER_EXPORT QmakeBuildConfiguration : public ProjectExplorer::BuildConfiguration
|
class QMAKEPROJECTMANAGER_EXPORT QmakeBuildConfiguration : public ProjectExplorer::BuildConfiguration
|
||||||
@@ -68,13 +70,12 @@ public:
|
|||||||
|
|
||||||
QStringList configCommandLineArguments() const;
|
QStringList configCommandLineArguments() const;
|
||||||
|
|
||||||
// Those functions are used in a few places.
|
// This function is used in a few places.
|
||||||
// The drawback is that we shouldn't actually depend on them being always there
|
// The drawback is that we shouldn't actually depend on them being always there
|
||||||
// That is generally the stuff that is asked should normally be transferred to
|
// That is generally the stuff that is asked should normally be transferred to
|
||||||
// QmakeProject *
|
// QmakeProject *
|
||||||
// So that we can later enable people to build qmake the way they would like
|
// So that we can later enable people to build qmake the way they would like
|
||||||
QMakeStep *qmakeStep() const;
|
QMakeStep *qmakeStep() const;
|
||||||
QmakeMakeStep *makeStep() const;
|
|
||||||
|
|
||||||
QmakeBuildSystem *qmakeBuildSystem() const;
|
QmakeBuildSystem *qmakeBuildSystem() const;
|
||||||
|
|
||||||
@@ -128,6 +129,8 @@ private:
|
|||||||
void qtVersionsChanged(const QList<int> &, const QList<int> &, const QList<int> &changed);
|
void qtVersionsChanged(const QList<int> &, const QList<int> &, const QList<int> &changed);
|
||||||
void updateProblemLabel();
|
void updateProblemLabel();
|
||||||
|
|
||||||
|
ProjectExplorer::MakeStep *makeStep() const;
|
||||||
|
|
||||||
class LastKitState
|
class LastKitState
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@@ -53,6 +53,27 @@ using namespace ProjectExplorer;
|
|||||||
using namespace Utils;
|
using namespace Utils;
|
||||||
|
|
||||||
namespace QmakeProjectManager {
|
namespace QmakeProjectManager {
|
||||||
|
namespace Internal {
|
||||||
|
|
||||||
|
class QmakeMakeStep : public MakeStep
|
||||||
|
{
|
||||||
|
Q_DECLARE_TR_FUNCTIONS(QmakeProjectManager::QmakeMakeStep)
|
||||||
|
|
||||||
|
public:
|
||||||
|
QmakeMakeStep(BuildStepList *bsl, Id id);
|
||||||
|
|
||||||
|
private:
|
||||||
|
void finish(bool success) override;
|
||||||
|
bool init() override;
|
||||||
|
void setupOutputFormatter(OutputFormatter *formatter) override;
|
||||||
|
void doRun() override;
|
||||||
|
QStringList displayArguments() const override;
|
||||||
|
|
||||||
|
bool m_scriptTarget = false;
|
||||||
|
QString m_makeFileToCheck;
|
||||||
|
bool m_unalignedBuildDir;
|
||||||
|
bool m_ignoredNonTopLevelBuild = false;
|
||||||
|
};
|
||||||
|
|
||||||
QmakeMakeStep::QmakeMakeStep(BuildStepList *bsl, Id id)
|
QmakeMakeStep::QmakeMakeStep(BuildStepList *bsl, Id id)
|
||||||
: MakeStep(bsl, id)
|
: MakeStep(bsl, id)
|
||||||
@@ -225,7 +246,7 @@ void QmakeMakeStep::doRun()
|
|||||||
void QmakeMakeStep::finish(bool success)
|
void QmakeMakeStep::finish(bool success)
|
||||||
{
|
{
|
||||||
if (!success && !isCanceled() && m_unalignedBuildDir
|
if (!success && !isCanceled() && m_unalignedBuildDir
|
||||||
&& Internal::QmakeSettings::warnAgainstUnalignedBuildDir()) {
|
&& QmakeSettings::warnAgainstUnalignedBuildDir()) {
|
||||||
const QString msg = tr("The build directory is not at the same level as the source "
|
const QString msg = tr("The build directory is not at the same level as the source "
|
||||||
"directory, which could be the reason for the build failure.");
|
"directory, which could be the reason for the build failure.");
|
||||||
emit addTask(BuildSystemTask(Task::Warning, msg));
|
emit addTask(BuildSystemTask(Task::Warning, msg));
|
||||||
@@ -241,8 +262,6 @@ QStringList QmakeMakeStep::displayArguments() const
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
///
|
///
|
||||||
// QmakeMakeStepFactory
|
// QmakeMakeStepFactory
|
||||||
///
|
///
|
||||||
|
@@ -30,27 +30,6 @@
|
|||||||
#include <projectexplorer/makestep.h>
|
#include <projectexplorer/makestep.h>
|
||||||
|
|
||||||
namespace QmakeProjectManager {
|
namespace QmakeProjectManager {
|
||||||
|
|
||||||
class QMAKEPROJECTMANAGER_EXPORT QmakeMakeStep : public ProjectExplorer::MakeStep
|
|
||||||
{
|
|
||||||
Q_OBJECT
|
|
||||||
|
|
||||||
public:
|
|
||||||
QmakeMakeStep(ProjectExplorer::BuildStepList *bsl, Utils::Id id);
|
|
||||||
|
|
||||||
private:
|
|
||||||
void finish(bool success) override;
|
|
||||||
bool init() override;
|
|
||||||
void setupOutputFormatter(Utils::OutputFormatter *formatter) override;
|
|
||||||
void doRun() override;
|
|
||||||
QStringList displayArguments() const override;
|
|
||||||
|
|
||||||
bool m_scriptTarget = false;
|
|
||||||
QString m_makeFileToCheck;
|
|
||||||
bool m_unalignedBuildDir;
|
|
||||||
bool m_ignoredNonTopLevelBuild = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
class QmakeMakeStepFactory : public ProjectExplorer::BuildStepFactory
|
class QmakeMakeStepFactory : public ProjectExplorer::BuildStepFactory
|
||||||
|
Reference in New Issue
Block a user