forked from qt-creator/qt-creator
ExtensionSystem: Stop reworking initialization order system
This reverts b91f234c7d and some changes on top.
With the static-in-function approach the dependency seem to be
more easier to solve than with the the central mechanism here.
Change-Id: I65be3ced847b31c25637280376f2fe30003f0527
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -74,6 +74,16 @@ public:
|
||||
* be executed in the build process)
|
||||
*/
|
||||
|
||||
class AutotoolsProjectPluginPrivate
|
||||
{
|
||||
public:
|
||||
AutotoolsBuildConfigurationFactory buildConfigFactory;
|
||||
MakeStepFactory makeStepFactory;
|
||||
AutogenStepFactory autogenStepFactory;
|
||||
ConfigureStepFactory configureStepFactory;
|
||||
AutoreconfStepFactory autoreconfStepFactory;
|
||||
};
|
||||
|
||||
class AutotoolsProjectPlugin final : public ExtensionSystem::IPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -81,14 +91,10 @@ class AutotoolsProjectPlugin final : public ExtensionSystem::IPlugin
|
||||
|
||||
void initialize() final
|
||||
{
|
||||
ProjectManager::registerProjectType<AutotoolsProject>(Constants::MAKEFILE_MIMETYPE);
|
||||
|
||||
addManaged<AutotoolsBuildConfigurationFactory>();
|
||||
addManaged<MakeStepFactory>();
|
||||
addManaged<AutogenStepFactory>();
|
||||
addManaged<ConfigureStepFactory>();
|
||||
addManaged<AutoreconfStepFactory>();
|
||||
d = std::make_unique<AutotoolsProjectPluginPrivate>();
|
||||
}
|
||||
|
||||
std::unique_ptr<AutotoolsProjectPluginPrivate> d;
|
||||
};
|
||||
|
||||
} // AutotoolsProjectManager::Internal
|
||||
|
||||
Reference in New Issue
Block a user