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:
hjk
2020-01-09 14:00:22 +01:00
parent 5cd0749830
commit 9686e91bd5
12 changed files with 204 additions and 216 deletions

View File

@@ -31,21 +31,19 @@
#include <projectexplorer/buildsteplist.h>
#include <projectexplorer/projectexplorerconstants.h>
using namespace AutotoolsProjectManager;
using namespace AutotoolsProjectManager::Internal;
using namespace AutotoolsProjectManager::Constants;
// MakeStepFactory
MakeStepFactory::MakeStepFactory()
{
registerStep<MakeStep>(MAKE_STEP_ID);
setDisplayName(ProjectExplorer::MakeStep::defaultDisplayName());
setSupportedProjectType(AUTOTOOLS_PROJECT_ID);
}
namespace AutotoolsProjectManager {
namespace Internal {
// MakeStep
class MakeStep : public ProjectExplorer::MakeStep
{
public:
MakeStep(ProjectExplorer::BuildStepList *bsl, Core::Id id);
};
MakeStep::MakeStep(ProjectExplorer::BuildStepList *bsl, Core::Id id)
: ProjectExplorer::MakeStep(bsl, id)
{
@@ -57,3 +55,15 @@ MakeStep::MakeStep(ProjectExplorer::BuildStepList *bsl, Core::Id id)
setBuildTarget("all", true);
}
}
// MakeStepFactory
MakeStepFactory::MakeStepFactory()
{
registerStep<MakeStep>(MAKE_STEP_ID);
setDisplayName(ProjectExplorer::MakeStep::defaultDisplayName());
setSupportedProjectType(AUTOTOOLS_PROJECT_ID);
}
} // Internal
} // AutotoolsProjectManager