forked from qt-creator/qt-creator
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user