forked from qt-creator/qt-creator
BareMetalRunConfigurationFactory: remove availableCreators reimp
The base version adds "(on $devicename)" which is even more information than the generic "(on GDB server or hardware debugger)" here. If the bti.projectFilePath extra path bits are needed, the feature could be made generally available in the base implementation. Also fix a typo in the BareMetalCustomRunConfiguration title Change-Id: I293e36c7edd2a9459e29a7025ca5bb19fb39b4b0 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -46,18 +46,10 @@ BareMetalRunConfigurationFactory::BareMetalRunConfigurationFactory()
|
|||||||
addSupportedTargetDeviceType(BareMetal::Constants::BareMetalOsType);
|
addSupportedTargetDeviceType(BareMetal::Constants::BareMetalOsType);
|
||||||
}
|
}
|
||||||
|
|
||||||
QList<RunConfigurationCreationInfo> BareMetalRunConfigurationFactory::availableCreators(Target *parent) const
|
|
||||||
{
|
|
||||||
return Utils::transform(parent->applicationTargets().list, [this](const BuildTargetInfo &bti) {
|
|
||||||
return convert(tr("%1 (on GDB server or hardware debugger)").arg(QFileInfo(bti.targetName).fileName()),
|
|
||||||
bti.projectFilePath.toString() + '/' + bti.targetName);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// BareMetalCustomRunConfigurationFactory
|
// BareMetalCustomRunConfigurationFactory
|
||||||
|
|
||||||
BareMetalCustomRunConfigurationFactory::BareMetalCustomRunConfigurationFactory() :
|
BareMetalCustomRunConfigurationFactory::BareMetalCustomRunConfigurationFactory() :
|
||||||
FixedRunConfigurationFactory(BareMetalCustomRunConfiguration::tr("Custom Executable)"), true)
|
FixedRunConfigurationFactory(BareMetalCustomRunConfiguration::tr("Custom Executable"), true)
|
||||||
{
|
{
|
||||||
registerRunConfiguration<BareMetalCustomRunConfiguration>("BareMetal.CustomRunConfig");
|
registerRunConfiguration<BareMetalCustomRunConfiguration>("BareMetal.CustomRunConfig");
|
||||||
addSupportedTargetDeviceType(BareMetal::Constants::BareMetalOsType);
|
addSupportedTargetDeviceType(BareMetal::Constants::BareMetalOsType);
|
||||||
|
@@ -36,9 +36,6 @@ class BareMetalRunConfigurationFactory : public ProjectExplorer::RunConfiguratio
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
BareMetalRunConfigurationFactory();
|
BareMetalRunConfigurationFactory();
|
||||||
|
|
||||||
QList<ProjectExplorer::RunConfigurationCreationInfo>
|
|
||||||
availableCreators(ProjectExplorer::Target *parent) const override;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class BareMetalCustomRunConfigurationFactory : public ProjectExplorer::FixedRunConfigurationFactory
|
class BareMetalCustomRunConfigurationFactory : public ProjectExplorer::FixedRunConfigurationFactory
|
||||||
|
Reference in New Issue
Block a user