forked from qt-creator/qt-creator
BareMetal: Add deploy configuration
So that users can add custom deploy steps. Fixes: QTCREATORBUG-22977 Change-Id: I4c8f881d5721c73fecb6e34e5e010fe8b82edcde Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -45,11 +45,26 @@
|
||||
#include <coreplugin/icontext.h>
|
||||
#include <coreplugin/icore.h>
|
||||
|
||||
#include <projectexplorer/deployconfiguration.h>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
|
||||
namespace BareMetal {
|
||||
namespace Internal {
|
||||
|
||||
class BareMetalDeployConfigurationFactory : public DeployConfigurationFactory
|
||||
{
|
||||
public:
|
||||
BareMetalDeployConfigurationFactory()
|
||||
{
|
||||
setConfigBaseId("BareMetal.DeployConfiguration");
|
||||
setDefaultDisplayName(QCoreApplication::translate("BareMetalDeployConfiguration",
|
||||
"Deploy to BareMetal Device"));
|
||||
addSupportedTargetDeviceType(Constants::BareMetalOsType);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// BareMetalPluginPrivate
|
||||
|
||||
class BareMetalPluginPrivate
|
||||
@@ -63,6 +78,7 @@ public:
|
||||
BareMetalCustomRunConfigurationFactory customRunConfigurationFactory;
|
||||
GdbServerProvidersSettingsPage gdbServerProviderSettinsPage;
|
||||
GdbServerProviderManager gdbServerProviderManager;
|
||||
BareMetalDeployConfigurationFactory deployConfigurationFactory;
|
||||
|
||||
RunWorkerFactory runWorkerFactory{
|
||||
RunWorkerFactory::make<BareMetalDebugSupport>(),
|
||||
|
Reference in New Issue
Block a user