forked from qt-creator/qt-creator
QbsProjectManager: Take product profiles into account.
- Identify products by the name/profile tuple instead of just the name. - If the product's profile differs from that of the overall project, add it to the visual representation. Change-Id: I4a89db60911277977458370157e435472bbe428f Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
@@ -398,7 +398,7 @@ void QbsProjectManagerPlugin::buildSubprojectContextMenu()
|
||||
|
||||
QStringList toBuild;
|
||||
foreach (const qbs::ProductData &data, subProject->qbsProjectData().allProducts())
|
||||
toBuild << data.name();
|
||||
toBuild << QbsProject::uniqueProductName(data);
|
||||
|
||||
buildProducts(m_selectedProject, toBuild);
|
||||
}
|
||||
@@ -424,7 +424,7 @@ void QbsProjectManagerPlugin::buildSubproject()
|
||||
|
||||
QStringList toBuild;
|
||||
foreach (const qbs::ProductData &data, subproject->qbsProjectData().allProducts())
|
||||
toBuild << data.name();
|
||||
toBuild << QbsProject::uniqueProductName(data);
|
||||
|
||||
buildProducts(m_editorProject, toBuild);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user