2013-01-30 18:19:31 +01:00
|
|
|
/****************************************************************************
|
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2013-01-30 18:19:31 +01:00
|
|
|
**
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
**
|
|
|
|
** Commercial License Usage
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2013-01-30 18:19:31 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2013-01-30 18:19:31 +01:00
|
|
|
**
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include "qbscleanstep.h"
|
|
|
|
|
|
|
|
#include "qbsbuildconfiguration.h"
|
|
|
|
#include "qbsproject.h"
|
|
|
|
#include "qbsprojectmanagerconstants.h"
|
|
|
|
|
|
|
|
#include "ui_qbscleanstepconfigwidget.h"
|
|
|
|
|
|
|
|
#include <projectexplorer/buildsteplist.h>
|
|
|
|
#include <projectexplorer/kit.h>
|
|
|
|
#include <projectexplorer/projectexplorerconstants.h>
|
2015-04-20 17:13:45 +02:00
|
|
|
#include <projectexplorer/buildmanager.h>
|
2013-01-30 18:19:31 +01:00
|
|
|
#include <projectexplorer/target.h>
|
|
|
|
#include <utils/qtcassert.h>
|
|
|
|
|
|
|
|
static const char QBS_DRY_RUN[] = "Qbs.DryRun";
|
|
|
|
static const char QBS_KEEP_GOING[] = "Qbs.DryKeepGoing";
|
|
|
|
|
|
|
|
namespace QbsProjectManager {
|
|
|
|
namespace Internal {
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
// QbsCleanStep:
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
|
|
|
QbsCleanStep::QbsCleanStep(ProjectExplorer::BuildStepList *bsl) :
|
ProjectExplorer/all: Re-organize BuildSteps/{Deploy,Build}Config setup
This follow the rough pattern of recent *RunConfigurationFactory changes
for build and deploy configurations.
- Collapse the two lines of constructors similar to what
890c1906e6fb2ec did for RunConfigurations
* Deploy* was purely mechanical
* Build* ctors are split in connects() in the ctor body
to create "empty shell for clone" etc
and build step additions in initialize() functions which
are only used in the create() case.
-- Allows to collapse the shared 'ctor()' functions, too.
- Move FooBuildConfigurationFactory::create() implementations
to FooBuildConfiguration() constructor. That was a strange
and unneeded ping-pong between factories and objects, and
furthermore allows one level less of indirection (and for a
later, left out here, some reduction of the
FooBuildConfiguration interfaces that were only used to
accommodate the *Factory::create() functions.
- Most {Build,Deploy}Configuration{,Factory} classes had a canHandle(),
but there wasn't one in the base classses. Have one there.
- Most canHandle() functions were checking simple restrictions on
e.g. project or target types, specify those by setters in the
constructors instead and check them in the base canHandle()
- clone() is generally replaced by a creation of a "shell object"
and a fromMap(source->toMap()), implemented in the base, there
are two cases left for Android and Qbs that needed(?) some extra
polish
- generally use canHandle() in base implementation, instead
of doing that in all Derived::canFoo()
- as a result, canCreate/create/canClone/clone reimplementations
are not needed anymore, keep the base implementation for
now (could be inlined into their only users later), but
de-virtualize them.
- Combine Ios{Preset,DSym}BuildStepFactory. There was only one
'dsym' build step they could create.
- Split the 'mangled' id into the ProjectConfiguration subtype
specific constant identifier, and a QString extraId() bit.
Only maintain the mangled id in saved settings.
- Make ProjectConfiguration::m_id a constant member, adapt
all constructors of derived classe.
Not done in this patch:
- Finish possible cosmetic changes on top
- Add a way to specify restrictions to supported Qt versions
(used in Android/Ios), as the base implementation does not
depend on the qtsupport plugin
- Combine the QList<X> availableFoo() + createFoo(X) function
pairs to somthing like a direct
QList<struct { X; std::function<X()>; }> fooCreators()
to avoid e.g. the baseId.withSuffix() <-> id.suffixAfter(base)
pingpong
- Remove the *Factories from the global object pool
- Do something about priority(). Falling back to plain
qmake in android+qmake setup is not helpful.
Change-Id: I2be7d88d554c5aa8b7db8edf5b93278e1ae0112a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-11-29 12:28:40 +01:00
|
|
|
ProjectExplorer::BuildStep(bsl, Constants::QBS_CLEANSTEP_ID)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
2013-04-12 16:19:22 +02:00
|
|
|
setDisplayName(tr("Qbs Clean"));
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
QbsCleanStep::~QbsCleanStep()
|
|
|
|
{
|
|
|
|
cancel();
|
2013-04-17 15:32:59 +02:00
|
|
|
if (m_job) {
|
|
|
|
m_job->deleteLater();
|
|
|
|
m_job = 0;
|
|
|
|
}
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
2015-11-13 12:19:35 +01:00
|
|
|
bool QbsCleanStep::init(QList<const BuildStep *> &earlierSteps)
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
2015-11-13 12:19:35 +01:00
|
|
|
Q_UNUSED(earlierSteps);
|
2017-12-20 14:28:43 +01:00
|
|
|
if (project()->isParsing() || m_job)
|
2013-01-30 18:19:31 +01:00
|
|
|
return false;
|
|
|
|
|
|
|
|
QbsBuildConfiguration *bc = static_cast<QbsBuildConfiguration *>(buildConfiguration());
|
|
|
|
|
|
|
|
if (!bc)
|
|
|
|
return false;
|
|
|
|
|
2017-04-07 13:46:50 +02:00
|
|
|
m_products = bc->products();
|
2013-01-30 18:19:31 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStep::run(QFutureInterface<bool> &fi)
|
|
|
|
{
|
|
|
|
m_fi = &fi;
|
|
|
|
|
|
|
|
QbsProject *pro = static_cast<QbsProject *>(project());
|
2013-02-28 13:06:15 +01:00
|
|
|
qbs::CleanOptions options(m_qbsCleanOptions);
|
2013-01-30 18:19:31 +01:00
|
|
|
|
2017-04-07 13:46:50 +02:00
|
|
|
QString error;
|
|
|
|
m_job = pro->clean(options, m_products, error);
|
2013-01-30 18:19:31 +01:00
|
|
|
if (!m_job) {
|
2017-04-07 13:46:50 +02:00
|
|
|
emit addOutput(error, OutputFormat::ErrorMessage);
|
2016-04-20 12:49:25 +02:00
|
|
|
reportRunResult(*m_fi, false);
|
2013-01-30 18:19:31 +01:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
m_progressBase = 0;
|
|
|
|
|
2016-06-28 23:29:21 +03:00
|
|
|
connect(m_job, &qbs::AbstractJob::finished, this, &QbsCleanStep::cleaningDone);
|
|
|
|
connect(m_job, &qbs::AbstractJob::taskStarted,
|
|
|
|
this, &QbsCleanStep::handleTaskStarted);
|
|
|
|
connect(m_job, &qbs::AbstractJob::taskProgress,
|
|
|
|
this, &QbsCleanStep::handleProgress);
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
ProjectExplorer::BuildStepConfigWidget *QbsCleanStep::createConfigWidget()
|
|
|
|
{
|
|
|
|
return new QbsCleanStepConfigWidget(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QbsCleanStep::runInGuiThread() const
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStep::cancel()
|
|
|
|
{
|
|
|
|
if (m_job)
|
|
|
|
m_job->cancel();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QbsCleanStep::dryRun() const
|
|
|
|
{
|
2013-05-23 17:15:52 +02:00
|
|
|
return m_qbsCleanOptions.dryRun();
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QbsCleanStep::keepGoing() const
|
|
|
|
{
|
2013-05-23 17:15:52 +02:00
|
|
|
return m_qbsCleanOptions.keepGoing();
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int QbsCleanStep::maxJobs() const
|
|
|
|
{
|
2013-02-28 13:06:15 +01:00
|
|
|
return 1;
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool QbsCleanStep::fromMap(const QVariantMap &map)
|
|
|
|
{
|
|
|
|
if (!ProjectExplorer::BuildStep::fromMap(map))
|
|
|
|
return false;
|
|
|
|
|
2013-05-23 17:15:52 +02:00
|
|
|
m_qbsCleanOptions.setDryRun(map.value(QLatin1String(QBS_DRY_RUN)).toBool());
|
|
|
|
m_qbsCleanOptions.setKeepGoing(map.value(QLatin1String(QBS_KEEP_GOING)).toBool());
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariantMap QbsCleanStep::toMap() const
|
|
|
|
{
|
|
|
|
QVariantMap map = ProjectExplorer::BuildStep::toMap();
|
2013-05-23 17:15:52 +02:00
|
|
|
map.insert(QLatin1String(QBS_DRY_RUN), m_qbsCleanOptions.dryRun());
|
|
|
|
map.insert(QLatin1String(QBS_KEEP_GOING), m_qbsCleanOptions.keepGoing());
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStep::cleaningDone(bool success)
|
|
|
|
{
|
|
|
|
// Report errors:
|
2013-06-18 12:06:11 +02:00
|
|
|
foreach (const qbs::ErrorItem &item, m_job->error().items()) {
|
|
|
|
createTaskAndOutput(ProjectExplorer::Task::Error, item.description(),
|
2014-11-07 13:40:49 +01:00
|
|
|
item.codeLocation().filePath(), item.codeLocation().line());
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
QTC_ASSERT(m_fi, return);
|
2016-04-20 12:49:25 +02:00
|
|
|
reportRunResult(*m_fi, success);
|
2013-01-30 18:19:31 +01:00
|
|
|
m_fi = 0; // do not delete, it is not ours
|
|
|
|
m_job->deleteLater();
|
|
|
|
m_job = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStep::handleTaskStarted(const QString &desciption, int max)
|
|
|
|
{
|
|
|
|
Q_UNUSED(desciption);
|
|
|
|
QTC_ASSERT(m_fi, return);
|
|
|
|
m_progressBase = m_fi->progressValue();
|
|
|
|
m_fi->setProgressRange(0, m_progressBase + max);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStep::handleProgress(int value)
|
|
|
|
{
|
|
|
|
QTC_ASSERT(m_fi, return);
|
|
|
|
m_fi->setProgressValue(m_progressBase + value);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStep::createTaskAndOutput(ProjectExplorer::Task::TaskType type, const QString &message, const QString &file, int line)
|
|
|
|
{
|
2015-04-20 17:13:45 +02:00
|
|
|
ProjectExplorer::Task task = ProjectExplorer::Task(type, message,
|
|
|
|
Utils::FileName::fromString(file), line,
|
|
|
|
ProjectExplorer::Constants::TASK_CATEGORY_COMPILE);
|
|
|
|
emit addTask(task, 1);
|
2017-01-12 10:59:12 +01:00
|
|
|
emit addOutput(message, OutputFormat::Stdout);
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStep::setDryRun(bool dr)
|
|
|
|
{
|
2013-05-23 17:15:52 +02:00
|
|
|
if (m_qbsCleanOptions.dryRun() == dr)
|
2013-01-30 18:19:31 +01:00
|
|
|
return;
|
2013-05-23 17:15:52 +02:00
|
|
|
m_qbsCleanOptions.setDryRun(dr);
|
2013-01-30 18:19:31 +01:00
|
|
|
emit changed();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStep::setKeepGoing(bool kg)
|
|
|
|
{
|
2013-05-23 17:15:52 +02:00
|
|
|
if (m_qbsCleanOptions.keepGoing() == kg)
|
2013-01-30 18:19:31 +01:00
|
|
|
return;
|
2013-05-23 17:15:52 +02:00
|
|
|
m_qbsCleanOptions.setKeepGoing(kg);
|
2013-01-30 18:19:31 +01:00
|
|
|
emit changed();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStep::setMaxJobs(int jobcount)
|
|
|
|
{
|
2013-02-28 13:06:15 +01:00
|
|
|
Q_UNUSED(jobcount); // TODO: Remove all job count-related stuff.
|
2013-01-30 18:19:31 +01:00
|
|
|
emit changed();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
// QbsCleanStepConfigWidget:
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
|
|
|
QbsCleanStepConfigWidget::QbsCleanStepConfigWidget(QbsCleanStep *step) :
|
|
|
|
m_step(step)
|
|
|
|
{
|
2016-06-28 23:29:21 +03:00
|
|
|
connect(m_step, &ProjectExplorer::ProjectConfiguration::displayNameChanged,
|
|
|
|
this, &QbsCleanStepConfigWidget::updateState);
|
|
|
|
connect(m_step, &QbsCleanStep::changed,
|
|
|
|
this, &QbsCleanStepConfigWidget::updateState);
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
setContentsMargins(0, 0, 0, 0);
|
|
|
|
|
|
|
|
m_ui = new Ui::QbsCleanStepConfigWidget;
|
|
|
|
m_ui->setupUi(this);
|
|
|
|
|
2016-06-28 23:29:21 +03:00
|
|
|
connect(m_ui->dryRunCheckBox, &QAbstractButton::toggled,
|
|
|
|
this, &QbsCleanStepConfigWidget::changeDryRun);
|
|
|
|
connect(m_ui->keepGoingCheckBox, &QAbstractButton::toggled,
|
|
|
|
this, &QbsCleanStepConfigWidget::changeKeepGoing);
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
updateState();
|
|
|
|
}
|
|
|
|
|
2014-11-21 12:38:50 +02:00
|
|
|
QbsCleanStepConfigWidget::~QbsCleanStepConfigWidget()
|
|
|
|
{
|
|
|
|
delete m_ui;
|
|
|
|
}
|
|
|
|
|
2013-01-30 18:19:31 +01:00
|
|
|
QString QbsCleanStepConfigWidget::summaryText() const
|
|
|
|
{
|
|
|
|
return m_summary;
|
|
|
|
}
|
|
|
|
|
|
|
|
QString QbsCleanStepConfigWidget::displayName() const
|
|
|
|
{
|
|
|
|
return m_step->displayName();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStepConfigWidget::updateState()
|
|
|
|
{
|
|
|
|
m_ui->dryRunCheckBox->setChecked(m_step->dryRun());
|
|
|
|
m_ui->keepGoingCheckBox->setChecked(m_step->keepGoing());
|
|
|
|
|
2017-02-13 15:40:59 +01:00
|
|
|
QString command = static_cast<QbsBuildConfiguration *>(m_step->buildConfiguration())
|
|
|
|
->equivalentCommandLine(m_step);
|
2013-10-25 15:42:15 +02:00
|
|
|
m_ui->commandLineTextEdit->setPlainText(command);
|
2013-01-30 18:19:31 +01:00
|
|
|
|
|
|
|
QString summary = tr("<b>Qbs:</b> %1").arg(command);
|
|
|
|
if (m_summary != summary) {
|
|
|
|
m_summary = summary;
|
|
|
|
emit updateSummary();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStepConfigWidget::changeDryRun(bool dr)
|
|
|
|
{
|
|
|
|
m_step->setDryRun(dr);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStepConfigWidget::changeKeepGoing(bool kg)
|
|
|
|
{
|
|
|
|
m_step->setKeepGoing(kg);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QbsCleanStepConfigWidget::changeJobCount(int count)
|
|
|
|
{
|
|
|
|
m_step->setMaxJobs(count);
|
|
|
|
}
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
// QbsCleanStepFactory:
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
ProjectExplorer/all: Re-organize BuildSteps/{Deploy,Build}Config setup
This follow the rough pattern of recent *RunConfigurationFactory changes
for build and deploy configurations.
- Collapse the two lines of constructors similar to what
890c1906e6fb2ec did for RunConfigurations
* Deploy* was purely mechanical
* Build* ctors are split in connects() in the ctor body
to create "empty shell for clone" etc
and build step additions in initialize() functions which
are only used in the create() case.
-- Allows to collapse the shared 'ctor()' functions, too.
- Move FooBuildConfigurationFactory::create() implementations
to FooBuildConfiguration() constructor. That was a strange
and unneeded ping-pong between factories and objects, and
furthermore allows one level less of indirection (and for a
later, left out here, some reduction of the
FooBuildConfiguration interfaces that were only used to
accommodate the *Factory::create() functions.
- Most {Build,Deploy}Configuration{,Factory} classes had a canHandle(),
but there wasn't one in the base classses. Have one there.
- Most canHandle() functions were checking simple restrictions on
e.g. project or target types, specify those by setters in the
constructors instead and check them in the base canHandle()
- clone() is generally replaced by a creation of a "shell object"
and a fromMap(source->toMap()), implemented in the base, there
are two cases left for Android and Qbs that needed(?) some extra
polish
- generally use canHandle() in base implementation, instead
of doing that in all Derived::canFoo()
- as a result, canCreate/create/canClone/clone reimplementations
are not needed anymore, keep the base implementation for
now (could be inlined into their only users later), but
de-virtualize them.
- Combine Ios{Preset,DSym}BuildStepFactory. There was only one
'dsym' build step they could create.
- Split the 'mangled' id into the ProjectConfiguration subtype
specific constant identifier, and a QString extraId() bit.
Only maintain the mangled id in saved settings.
- Make ProjectConfiguration::m_id a constant member, adapt
all constructors of derived classe.
Not done in this patch:
- Finish possible cosmetic changes on top
- Add a way to specify restrictions to supported Qt versions
(used in Android/Ios), as the base implementation does not
depend on the qtsupport plugin
- Combine the QList<X> availableFoo() + createFoo(X) function
pairs to somthing like a direct
QList<struct { X; std::function<X()>; }> fooCreators()
to avoid e.g. the baseId.withSuffix() <-> id.suffixAfter(base)
pingpong
- Remove the *Factories from the global object pool
- Do something about priority(). Falling back to plain
qmake in android+qmake setup is not helpful.
Change-Id: I2be7d88d554c5aa8b7db8edf5b93278e1ae0112a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-11-29 12:28:40 +01:00
|
|
|
QbsCleanStepFactory::QbsCleanStepFactory()
|
2013-01-30 18:19:31 +01:00
|
|
|
{
|
ProjectExplorer/all: Re-organize BuildSteps/{Deploy,Build}Config setup
This follow the rough pattern of recent *RunConfigurationFactory changes
for build and deploy configurations.
- Collapse the two lines of constructors similar to what
890c1906e6fb2ec did for RunConfigurations
* Deploy* was purely mechanical
* Build* ctors are split in connects() in the ctor body
to create "empty shell for clone" etc
and build step additions in initialize() functions which
are only used in the create() case.
-- Allows to collapse the shared 'ctor()' functions, too.
- Move FooBuildConfigurationFactory::create() implementations
to FooBuildConfiguration() constructor. That was a strange
and unneeded ping-pong between factories and objects, and
furthermore allows one level less of indirection (and for a
later, left out here, some reduction of the
FooBuildConfiguration interfaces that were only used to
accommodate the *Factory::create() functions.
- Most {Build,Deploy}Configuration{,Factory} classes had a canHandle(),
but there wasn't one in the base classses. Have one there.
- Most canHandle() functions were checking simple restrictions on
e.g. project or target types, specify those by setters in the
constructors instead and check them in the base canHandle()
- clone() is generally replaced by a creation of a "shell object"
and a fromMap(source->toMap()), implemented in the base, there
are two cases left for Android and Qbs that needed(?) some extra
polish
- generally use canHandle() in base implementation, instead
of doing that in all Derived::canFoo()
- as a result, canCreate/create/canClone/clone reimplementations
are not needed anymore, keep the base implementation for
now (could be inlined into their only users later), but
de-virtualize them.
- Combine Ios{Preset,DSym}BuildStepFactory. There was only one
'dsym' build step they could create.
- Split the 'mangled' id into the ProjectConfiguration subtype
specific constant identifier, and a QString extraId() bit.
Only maintain the mangled id in saved settings.
- Make ProjectConfiguration::m_id a constant member, adapt
all constructors of derived classe.
Not done in this patch:
- Finish possible cosmetic changes on top
- Add a way to specify restrictions to supported Qt versions
(used in Android/Ios), as the base implementation does not
depend on the qtsupport plugin
- Combine the QList<X> availableFoo() + createFoo(X) function
pairs to somthing like a direct
QList<struct { X; std::function<X()>; }> fooCreators()
to avoid e.g. the baseId.withSuffix() <-> id.suffixAfter(base)
pingpong
- Remove the *Factories from the global object pool
- Do something about priority(). Falling back to plain
qmake in android+qmake setup is not helpful.
Change-Id: I2be7d88d554c5aa8b7db8edf5b93278e1ae0112a
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
2017-11-29 12:28:40 +01:00
|
|
|
registerStep<QbsCleanStep>(Constants::QBS_CLEANSTEP_ID);
|
|
|
|
setSupportedStepList(ProjectExplorer::Constants::BUILDSTEPS_CLEAN);
|
|
|
|
setSupportedConfiguration(Constants::QBS_BC_ID);
|
2018-05-14 17:50:56 +02:00
|
|
|
setDisplayName(QbsCleanStep::tr("Qbs Clean"));
|
2013-01-30 18:19:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
} // namespace QbsProjectManager
|