forked from qt-creator/qt-creator
BareMetal: Split runconfigs into independent classes
Since the need for code reuse is gone due to the recent changes in the RunConfiguration base infrastructure, it's easier and less code to completely separate the cases. Change-Id: I3fc558ea60e02f34b50869d4b55a43a6360e9208 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -75,7 +75,9 @@ bool BareMetalPlugin::initialize(const QStringList &arguments, QString *errorStr
|
||||
|
||||
auto constraint = [](RunConfiguration *runConfig) {
|
||||
const QByteArray idStr = runConfig->id().name();
|
||||
return runConfig->isEnabled() && idStr.startsWith(BareMetalRunConfiguration::IdPrefix);
|
||||
const bool res = idStr.startsWith(BareMetalRunConfiguration::IdPrefix)
|
||||
|| idStr == BareMetalCustomRunConfiguration::Id;
|
||||
return res;
|
||||
};
|
||||
|
||||
RunControl::registerWorker<BareMetalDebugSupport>
|
||||
|
||||
Reference in New Issue
Block a user