Commit 03b6e23d authored by Christian Kandeler's avatar Christian Kandeler
Browse files

QbsProjectManager: Make sure run configs are available before a build.



This already works for Desktop run configurations, because they get
special treatment for historical reasons. But it does not currently work
for targets such as RemoteLinux.

Change-Id: Iba5191538314146909567bc7b5993dcc0b9d21cd
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
parent 4d8966ab
...@@ -749,6 +749,13 @@ void QbsProject::updateApplicationTargets(const qbs::ProjectData &projectData) ...@@ -749,6 +749,13 @@ void QbsProject::updateApplicationTargets(const qbs::ProjectData &projectData)
{ {
ProjectExplorer::BuildTargetInfoList applications; ProjectExplorer::BuildTargetInfoList applications;
foreach (const qbs::ProductData &productData, projectData.allProducts()) { foreach (const qbs::ProductData &productData, projectData.allProducts()) {
if (!productData.isEnabled() || !productData.isRunnable())
continue;
if (productData.targetArtifacts().isEmpty()) { // No build yet.
applications.list << ProjectExplorer::BuildTargetInfo(Utils::FileName(),
Utils::FileName::fromString(productData.location().fileName()));
continue;
}
foreach (const qbs::TargetArtifact &ta, productData.targetArtifacts()) { foreach (const qbs::TargetArtifact &ta, productData.targetArtifacts()) {
QTC_ASSERT(ta.isValid(), continue); QTC_ASSERT(ta.isValid(), continue);
if (!ta.isExecutable()) if (!ta.isExecutable())
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment