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/icontext.h>
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
|
|
||||||
|
#include <projectexplorer/deployconfiguration.h>
|
||||||
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
namespace BareMetal {
|
namespace BareMetal {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
|
|
||||||
|
class BareMetalDeployConfigurationFactory : public DeployConfigurationFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
BareMetalDeployConfigurationFactory()
|
||||||
|
{
|
||||||
|
setConfigBaseId("BareMetal.DeployConfiguration");
|
||||||
|
setDefaultDisplayName(QCoreApplication::translate("BareMetalDeployConfiguration",
|
||||||
|
"Deploy to BareMetal Device"));
|
||||||
|
addSupportedTargetDeviceType(Constants::BareMetalOsType);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// BareMetalPluginPrivate
|
// BareMetalPluginPrivate
|
||||||
|
|
||||||
class BareMetalPluginPrivate
|
class BareMetalPluginPrivate
|
||||||
@@ -63,6 +78,7 @@ public:
|
|||||||
BareMetalCustomRunConfigurationFactory customRunConfigurationFactory;
|
BareMetalCustomRunConfigurationFactory customRunConfigurationFactory;
|
||||||
GdbServerProvidersSettingsPage gdbServerProviderSettinsPage;
|
GdbServerProvidersSettingsPage gdbServerProviderSettinsPage;
|
||||||
GdbServerProviderManager gdbServerProviderManager;
|
GdbServerProviderManager gdbServerProviderManager;
|
||||||
|
BareMetalDeployConfigurationFactory deployConfigurationFactory;
|
||||||
|
|
||||||
RunWorkerFactory runWorkerFactory{
|
RunWorkerFactory runWorkerFactory{
|
||||||
RunWorkerFactory::make<BareMetalDebugSupport>(),
|
RunWorkerFactory::make<BareMetalDebugSupport>(),
|
||||||
|
Reference in New Issue
Block a user