forked from qt-creator/qt-creator
Autotools: De-Q_OBJECT-ify build related classes
Only used for translations, and that can be achieved much cheaper without the extra translation units created by moc. This reduces the size of the autotoolsprojectmanagers/.obj build dir from 23220 kB to 17696 kB for my debug buld. Take the opportunity to sprinkle in a few 'final'. Change-Id: I85b36c6b8ca58469d0906f1105b2b1587b7c7e6c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -27,55 +27,16 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <projectexplorer/abstractprocessstep.h>
|
||||
#include <projectexplorer/projectconfigurationaspects.h>
|
||||
#include <projectexplorer/buildstep.h>
|
||||
|
||||
namespace AutotoolsProjectManager {
|
||||
namespace Internal {
|
||||
|
||||
//////////////////////////////////
|
||||
// ConfigureStepFactory Class
|
||||
//////////////////////////////////
|
||||
/**
|
||||
* @brief Implementation of the ProjectExplorer::IBuildStepFactory interface.
|
||||
*
|
||||
* The factory is used to create instances of ConfigureStep.
|
||||
*/
|
||||
class ConfigureStepFactory : public ProjectExplorer::BuildStepFactory
|
||||
class ConfigureStepFactory final : public ProjectExplorer::BuildStepFactory
|
||||
{
|
||||
public:
|
||||
ConfigureStepFactory();
|
||||
};
|
||||
|
||||
//////////////////////////
|
||||
//// ConfigureStep class
|
||||
//////////////////////////
|
||||
///**
|
||||
// * @brief Implementation of the ProjectExplorer::AbstractProcessStep interface.
|
||||
// *
|
||||
// * A configure step can be configured by selecting the "Projects" button of Qt
|
||||
// * Creator (in the left hand side menu) and under "Build Settings".
|
||||
// *
|
||||
// * It is possible for the user to specify custom arguments. The corresponding
|
||||
// * configuration widget is created by MakeStep::createConfigWidget and is
|
||||
// * represented by an instance of the class MakeStepConfigWidget.
|
||||
// */
|
||||
class ConfigureStep : public ProjectExplorer::AbstractProcessStep
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ConfigureStep(ProjectExplorer::BuildStepList *bsl, Core::Id id);
|
||||
|
||||
void setAdditionalArguments(const QString &list);
|
||||
|
||||
private:
|
||||
bool init() override;
|
||||
void doRun() override;
|
||||
|
||||
ProjectExplorer::BaseStringAspect *m_additionalArgumentsAspect = nullptr;
|
||||
bool m_runConfigure = false;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace AutotoolsProjectManager
|
||||
|
||||
Reference in New Issue
Block a user