Create RunConfiguration specific DebugWorkerFactories

Instead of relying on the DebuggerRunWorkerFactory to match for all
RunConfiguration, every plugin needs to create a WorkerFactory for
its own RunConfiguration.

Similar to the SimpleTargetRunnerFactory there is now a
SimpleDebugRunnerFactory which makes the setup easy.

Change-Id: I25aaabcd70f7ac649baeab4eb4c7e88d53dac91e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Dominik Holland
2024-01-12 14:04:37 +01:00
parent 5af310b4fb
commit c81efc39c8
12 changed files with 72 additions and 9 deletions

View File

@@ -10,6 +10,8 @@
#include "toolssettingsaccessor.h"
#include "toolssettingspage.h"
#include <debugger/debuggerruncontrol.h>
#include <extensionsystem/iplugin.h>
#include <projectexplorer/projectexplorerconstants.h>
@@ -18,6 +20,7 @@
#include <utils/fsengine/fileiconprovider.h>
using namespace Debugger;
using namespace ProjectExplorer;
using namespace Utils;
@@ -34,6 +37,7 @@ public:
MesonActionsManager m_actions;
MachineFileManager m_machineFilesManager;
SimpleTargetRunnerFactory m_mesonRunWorkerFactory{{m_runConfigurationFactory.runConfigurationId()}};
SimpleDebugRunnerFactory m_mesonDebugRunWorkerFactory{{m_runConfigurationFactory.runConfigurationId()}};
};
class MesonProjectPlugin final : public ExtensionSystem::IPlugin