summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/artifact.h
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2013-06-24 15:10:52 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2013-06-24 16:28:04 +0200
commitc6ecdbdbe84f24eb7ba9c1acb780339edf007624 (patch)
treeea3aa1b2a834fd3ecea79197bb3c2a5860da0d54 /src/lib/buildgraph/artifact.h
parent3104e3053dbff443122165d28ff12b5e14e0cdac (diff)
downloadqbs-c6ecdbdbe84f24eb7ba9c1acb780339edf007624.tar.gz
Improve handling of changes to restored build graph.
Instead of painstakingly inserting new product pointers into an existing build graph, do it the other way around and put existing build data into the newly resolved project. This is much more robust. Change-Id: If38e4a5e14c6a5faedb0c590e86aa5efc7844e39 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/lib/buildgraph/artifact.h')
-rw-r--r--src/lib/buildgraph/artifact.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/buildgraph/artifact.h b/src/lib/buildgraph/artifact.h
index 88d9b677f..bc2a8025d 100644
--- a/src/lib/buildgraph/artifact.h
+++ b/src/lib/buildgraph/artifact.h
@@ -59,7 +59,7 @@ public:
// include language.h in every file that includes artifact.h due to Qt 4's weird
// QSharedPointer implementation.
Artifact();
- explicit Artifact(const ResolvedProjectPtr &project);
+ explicit Artifact(TopLevelProject *project);
~Artifact();
@@ -67,7 +67,7 @@ public:
ArtifactList children;
ArtifactList fileDependencies;
FileTags fileTags;
- WeakPointer<ResolvedProject> project;
+ TopLevelProject *topLevelProject;
WeakPointer<ResolvedProduct> product; // Note: file dependency artifacts don't belong to a product.
TransformerPtr transformer;
PropertyMapPtr properties;
@@ -102,7 +102,6 @@ public:
QString dirPath() const { return m_dirPath.toString(); }
QString fileName() const { return m_fileName.toString(); }
void disconnectAll(const Logger &logger);
- TopLevelProject *topLevelProject() const;
private:
void load(PersistentPool &pool);