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:
Tobias Hunger
2017-01-27 14:28:49 +01:00
parent 836252990a
commit e8b4e180cd
19 changed files with 66 additions and 3 deletions

View File

@@ -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;
}