forked from qt-creator/qt-creator
RunConfiguration: Introduce buildSystemTarget()
Introduce a method that maps a RunConfiguration to the build system target that created the executable. Implement the method in all RunConfigurations where that makes sense (e.g. no CustomExecutables). Change-Id: Ifaac859c2cd9b2806a0d7c185b2239312a67752a Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -665,7 +665,7 @@ QList<ProjectExplorer::RunConfiguration *> QbsProductNode::runConfigurations() c
|
||||
QbsRunConfiguration *qbsRc = qobject_cast<QbsRunConfiguration *>(rc);
|
||||
if (!qbsRc)
|
||||
continue;
|
||||
if (qbsRc->uniqueProductName() == QbsProject::uniqueProductName(qbsProductData()))
|
||||
if (qbsRc->buildSystemTarget() == QbsProject::uniqueProductName(qbsProductData()))
|
||||
result << qbsRc;
|
||||
}
|
||||
|
||||
|
||||
@@ -297,7 +297,7 @@ void QbsRunConfiguration::addToBaseEnvironment(Utils::Environment &env) const
|
||||
env.prependOrSetLibrarySearchPath(qtVersion->qmakeProperty("QT_INSTALL_LIBS"));
|
||||
}
|
||||
|
||||
QString QbsRunConfiguration::uniqueProductName() const
|
||||
QString QbsRunConfiguration::buildSystemTarget() const
|
||||
{
|
||||
return m_uniqueProductName;
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
|
||||
void addToBaseEnvironment(Utils::Environment &env) const;
|
||||
|
||||
QString uniqueProductName() const;
|
||||
QString buildSystemTarget() const final;
|
||||
bool isConsoleApplication() const;
|
||||
|
||||
signals:
|
||||
|
||||
Reference in New Issue
Block a user