RemoteLinux: Create run configs by target name, not by project file.

The current approach fails for all build systems where one project file
can define more than one executable.

Change-Id: Ieda413975709fbd6e7ea87b185aa962f63cb7c1f
Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
Christian Kandeler
2014-08-07 15:53:54 +02:00
parent 758e189dca
commit 0c3eeab464
10 changed files with 67 additions and 49 deletions

View File

@@ -1497,8 +1497,11 @@ void QmakeProject::updateBuildSystemData()
target->setDeploymentData(deploymentData);
BuildTargetInfoList appTargetList;
foreach (const QmakeProFileNode * const node, applicationProFiles())
appTargetList.list << BuildTargetInfo(executableFor(node), node->path());
foreach (const QmakeProFileNode * const node, applicationProFiles()) {
appTargetList.list << BuildTargetInfo(node->targetInformation().target,
Utils::FileName::fromString(executableFor(node)),
Utils::FileName::fromString(node->path()));
}
target->setApplicationTargets(appTargetList);
}