summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/buildgraphloader.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-08-15 13:18:40 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-08-19 11:10:06 +0200
commit68ee1563d1d99d05b1ce8e74263fdbbc32d27c21 (patch)
treee23a7fc9c7d0273bd6c4c149f6f8da45d2ce0b5f /src/lib/buildgraph/buildgraphloader.h
parentcfcf54a97112a7f50de96bab8161fce5e0502a99 (diff)
downloadqbs-68ee1563d1d99d05b1ce8e74263fdbbc32d27c21.tar.gz
Even better handling of property changes when restoring a build graph.
In detail: - Fix the build config comparison function so that it not only checks whether keys present in both maps are the same, but also whether there are additional keys in one of the maps. - Do not abort loading a restored build graph when the comparison fails; instead, handle that condition the same way we handle changes in build system files, environment variables etc; that is, re-resolve the project and check whether the build data needs to be set up from scratch for any products. - Take overridden properties into account when comparing the old and new property maps. This has no effect on the command line client at the moment, because it does its own merging, but other API clients will benefit. A particularly nice "side effect" of this patch is that changing properties on the command line now works as expected with regards to change tracking. Task-number: QBS-374 Change-Id: I55583fb7a2ae78b80de225b09aa559229d851339 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/buildgraphloader.h')
-rw-r--r--src/lib/buildgraph/buildgraphloader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/buildgraph/buildgraphloader.h b/src/lib/buildgraph/buildgraphloader.h
index 3086a0217..0335481bf 100644
--- a/src/lib/buildgraph/buildgraphloader.h
+++ b/src/lib/buildgraph/buildgraphloader.h
@@ -63,7 +63,8 @@ public:
private:
void trackProjectChanges(const SetupProjectParameters &parameters,
const QString &buildGraphFilePath,
- const TopLevelProjectPtr &restoredProject);
+ const TopLevelProjectPtr &restoredProject,
+ const QVariantMap &oldProjectConfig);
bool hasEnvironmentChanged(const TopLevelProjectConstPtr &restoredProject) const;
bool hasFileExistsResultChanged(const TopLevelProjectConstPtr &restoredProject) const;
bool hasProductFileChanged(const QList<ResolvedProductPtr> &restoredProducts,