aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotoolsprojectmanager
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-08-30 17:09:09 +0200
committerhjk <hjk@qt.io>2023-08-31 09:58:40 +0000
commit95a3087a7b3daa4074b8a14f2e10f52dcdbb7238 (patch)
tree04c04ebac73fda07ded36a8edc7efd218bbaea23 /src/plugins/autotoolsprojectmanager
parent4132ffd6624add23935a9a87c236182aefbc995f (diff)
ExtensionSystem: Stop reworking initialization order system
This reverts b91f234c7da 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>
Diffstat (limited to 'src/plugins/autotoolsprojectmanager')
-rw-r--r--src/plugins/autotoolsprojectmanager/autotoolsprojectplugin.cpp20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/plugins/autotoolsprojectmanager/autotoolsprojectplugin.cpp b/src/plugins/autotoolsprojectmanager/autotoolsprojectplugin.cpp
index 8649236e152..7dd53126506 100644
--- a/src/plugins/autotoolsprojectmanager/autotoolsprojectplugin.cpp
+++ b/src/plugins/autotoolsprojectmanager/autotoolsprojectplugin.cpp
@@ -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