CMake: Use a setup function for CMakeBuildConfigurationFactory

The class itself is still used by IosCMakeBuildConfigurationFactory.

Change-Id: I9fd979fc8e24c9f032b35c1f3444c28d06f86d0a
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2024-01-29 14:45:04 +01:00
parent 7323c97ada
commit a615b236e5
3 changed files with 10 additions and 1 deletions

View File

@@ -2254,5 +2254,11 @@ void ConfigureEnvironmentAspect::toMap(Store &map) const
map.insert(USER_ENVIRONMENT_CHANGES_KEY, tmpMap.value(CHANGES_KEY).toStringList()); map.insert(USER_ENVIRONMENT_CHANGES_KEY, tmpMap.value(CHANGES_KEY).toStringList());
} }
void setupCMakeBuildConfiguration()
{
static CMakeBuildConfigurationFactory theCMakeBuildConfigurationFactory;
}
} // namespace Internal } // namespace Internal
} // namespace CMakeProjectManager } // namespace CMakeProjectManager

View File

@@ -131,4 +131,6 @@ private:
friend class Internal::CMakeProjectImporter; friend class Internal::CMakeProjectImporter;
}; };
namespace Internal { void setupCMakeBuildConfiguration(); }
} // namespace CMakeProjectManager } // namespace CMakeProjectManager

View File

@@ -52,7 +52,6 @@ public:
Action::AlwaysEnabled/*handled manually*/ Action::AlwaysEnabled/*handled manually*/
}; };
CMakeBuildConfigurationFactory buildConfigFactory;
CMakeInstallStepFactory installStepFactory; CMakeInstallStepFactory installStepFactory;
CMakeBuildTargetFilter cMakeBuildTargetFilter; CMakeBuildTargetFilter cMakeBuildTargetFilter;
CMakeOpenTargetFilter cMakeOpenTargetFilter; CMakeOpenTargetFilter cMakeOpenTargetFilter;
@@ -75,6 +74,8 @@ class CMakeProjectPlugin final : public ExtensionSystem::IPlugin
setupCMakeToolManager(this); setupCMakeToolManager(this);
setupCMakeSettingsPage(); setupCMakeSettingsPage();
setupCMakeBuildConfiguration();
setupCMakeBuildStep(); setupCMakeBuildStep();
setupCMakeEditor(); setupCMakeEditor();