RemoteLinux: Let user override deployment data

That is, instead of what is specified in the project files of the
respective build system, let the user manually set the data in the
deploy configuration.
This is intended as a last resort for use in project managers that are
not able to deduce any deployment information from the project.

Fixes: QTCREATORBUG-21854
Change-Id: I2fefb89a4aa846e52aeca69749ca03534f4f0a67
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2020-01-24 14:38:13 +01:00
parent 6355796f11
commit c4254722df
6 changed files with 142 additions and 22 deletions

View File

@@ -221,6 +221,14 @@ BuildSystem *Target::fallbackBuildSystem() const
}
DeploymentData Target::deploymentData() const
{
const DeployConfiguration * const dc = activeDeployConfiguration();
if (dc && dc->usesCustomDeploymentData())
return dc->customDeploymentData();
return buildSystemDeploymentData();
}
DeploymentData Target::buildSystemDeploymentData() const
{
QTC_ASSERT(buildSystem(), return {});
return buildSystem()->deploymentData();