summaryrefslogtreecommitdiff
path: root/src/plugins/remotelinux/abstractremotelinuxdeployservice.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2012-04-24 15:49:09 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2012-06-21 12:08:12 +0200
commit24314562165588b56a318b3b8a846bf5deda7c41 (patch)
treeb5dcf951e76d003c2623011b0e91994e06e7e061 /src/plugins/remotelinux/abstractremotelinuxdeployservice.cpp
parent8c77b8c9d7b25d0c89003c8c4a54e8da5bfb7edd (diff)
downloadqt-creator-24314562165588b56a318b3b8a846bf5deda7c41.tar.gz
Profile introduction
Introduce Profiles to store sets of values that describe a system/device. These profiles are held by a target, getting rid of much of the information stored in the Build-/Run-/DeployConfigurations, greatly simplifying those. This is a squash of the wip/profile branch which has been on gerrit for a while, rebased to current master. Change-Id: I25956c8dd4d1962b2134bfaa8a8076ae3909460f Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/plugins/remotelinux/abstractremotelinuxdeployservice.cpp')
-rw-r--r--src/plugins/remotelinux/abstractremotelinuxdeployservice.cpp21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/plugins/remotelinux/abstractremotelinuxdeployservice.cpp b/src/plugins/remotelinux/abstractremotelinuxdeployservice.cpp
index 7f84926544..a534857da2 100644
--- a/src/plugins/remotelinux/abstractremotelinuxdeployservice.cpp
+++ b/src/plugins/remotelinux/abstractremotelinuxdeployservice.cpp
@@ -34,7 +34,9 @@
#include "deployablefile.h"
#include "linuxdeviceconfiguration.h"
+#include <projectexplorer/target.h>
#include <qt4projectmanager/qt4buildconfiguration.h>
+#include <qtsupport/qtprofileinformation.h>
#include <utils/qtcassert.h>
#include <ssh/sshconnection.h>
#include <ssh/sshconnectionmanager.h>
@@ -127,23 +129,32 @@ void AbstractRemoteLinuxDeployService::saveDeploymentTimeStamp(const DeployableF
{
if (!d->buildConfiguration)
return;
- const QtSupport::BaseQtVersion * const qtVersion = d->buildConfiguration->qtVersion();
+ const QtSupport::BaseQtVersion *const qtVersion
+ = QtSupport::QtProfileInformation::qtVersion(d->buildConfiguration->target()->profile());
+ QString systemRoot;
+ if (ProjectExplorer::SysRootProfileInformation::hasSysRoot(d->buildConfiguration->target()->profile()))
+ systemRoot = ProjectExplorer::SysRootProfileInformation::sysRoot(d->buildConfiguration->target()->profile()).toString();
if (!qtVersion || !qtVersion->isValid())
return;
d->lastDeployed.insert(DeployParameters(deployableFile,
- deviceConfiguration()->sshParameters().host,
- qtVersion->systemRoot()), QDateTime::currentDateTime());
+ deviceConfiguration()->sshParameters().host,
+ systemRoot),
+ QDateTime::currentDateTime());
}
bool AbstractRemoteLinuxDeployService::hasChangedSinceLastDeployment(const DeployableFile &deployableFile) const
{
if (!d->buildConfiguration)
return true;
- const QtSupport::BaseQtVersion * const qtVersion = d->buildConfiguration->qtVersion();
+ const QtSupport::BaseQtVersion *const qtVersion
+ = QtSupport::QtProfileInformation::qtVersion(d->buildConfiguration->target()->profile());
if (!qtVersion || !qtVersion->isValid())
return true;
+ QString systemRoot;
+ if (ProjectExplorer::SysRootProfileInformation::hasSysRoot(d->buildConfiguration->target()->profile()))
+ systemRoot = ProjectExplorer::SysRootProfileInformation::sysRoot(d->buildConfiguration->target()->profile()).toString();
const QDateTime &lastDeployed = d->lastDeployed.value(DeployParameters(deployableFile,
- deviceConfiguration()->sshParameters().host, qtVersion->systemRoot()));
+ deviceConfiguration()->sshParameters().host, systemRoot));
return !lastDeployed.isValid()
|| QFileInfo(deployableFile.localFilePath).lastModified() > lastDeployed;
}