forked from qt-creator/qt-creator
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:
@@ -2254,5 +2254,11 @@ void ConfigureEnvironmentAspect::toMap(Store &map) const
|
||||
map.insert(USER_ENVIRONMENT_CHANGES_KEY, tmpMap.value(CHANGES_KEY).toStringList());
|
||||
}
|
||||
|
||||
|
||||
void setupCMakeBuildConfiguration()
|
||||
{
|
||||
static CMakeBuildConfigurationFactory theCMakeBuildConfigurationFactory;
|
||||
}
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
@@ -131,4 +131,6 @@ private:
|
||||
friend class Internal::CMakeProjectImporter;
|
||||
};
|
||||
|
||||
namespace Internal { void setupCMakeBuildConfiguration(); }
|
||||
|
||||
} // namespace CMakeProjectManager
|
||||
|
||||
@@ -52,7 +52,6 @@ public:
|
||||
Action::AlwaysEnabled/*handled manually*/
|
||||
};
|
||||
|
||||
CMakeBuildConfigurationFactory buildConfigFactory;
|
||||
CMakeInstallStepFactory installStepFactory;
|
||||
CMakeBuildTargetFilter cMakeBuildTargetFilter;
|
||||
CMakeOpenTargetFilter cMakeOpenTargetFilter;
|
||||
@@ -75,6 +74,8 @@ class CMakeProjectPlugin final : public ExtensionSystem::IPlugin
|
||||
setupCMakeToolManager(this);
|
||||
|
||||
setupCMakeSettingsPage();
|
||||
|
||||
setupCMakeBuildConfiguration();
|
||||
setupCMakeBuildStep();
|
||||
|
||||
setupCMakeEditor();
|
||||
|
||||
Reference in New Issue
Block a user