diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-06-02 17:45:16 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-06-08 11:03:14 +0000 |
commit | 08b00f86891ec157e3fb354afc04ff33ebfdb44c (patch) | |
tree | 331bffbe8ce5636cfcb9f41d254f883da1cc19d5 /src/lib/corelib/buildgraph/buildgraphloader.h | |
parent | 2fd4c0a8e8a4a4dda54e29fb59a9b82a86d58643 (diff) |
Re-run process commands if a relevant environment variable has changed
Process commands can now declare that they are sensitive to certain
environment variables. If such a variable changes its value, we
invalidate the respective transformer.
[ChangeLog] Added new property "relevantEnvironmentVariables" to the
Command class
Change-Id: Id866dc676b3b483a5d843e6125c91829f5094eba
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/buildgraphloader.h')
-rw-r--r-- | src/lib/corelib/buildgraph/buildgraphloader.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/corelib/buildgraph/buildgraphloader.h b/src/lib/corelib/buildgraph/buildgraphloader.h index b27836ab4..bda8f3aae 100644 --- a/src/lib/corelib/buildgraph/buildgraphloader.h +++ b/src/lib/corelib/buildgraph/buildgraphloader.h @@ -103,12 +103,13 @@ private: const ResolvedProductPtr &newlyResolvedProduct); bool checkForPropertyChanges(const ResolvedProductPtr &restoredProduct, const ResolvedProductPtr &newlyResolvedProduct); - bool checkTransformersForPropertyChanges(const ResolvedProductPtr &restoredProduct, + bool checkTransformersForChanges(const ResolvedProductPtr &restoredProduct, const ResolvedProductPtr &newlyResolvedProduct); void onProductRemoved(const ResolvedProductPtr &product, ProjectBuildData *projectBuildData, bool removeArtifactsFromDisk = true); bool checkForPropertyChanges(const TransformerPtr &restoredTrafo, const ResolvedProductPtr &freshProduct); + bool checkForEnvChanges(const TransformerPtr &restoredTrafo); bool checkForPropertyChange(const Property &restoredProperty, const QVariantMap &newProperties); void replaceFileDependencyWithArtifact(const ResolvedProductPtr &fileDepProduct, @@ -140,6 +141,8 @@ private: // These must only be deleted at the end so we can still peek into the old look-up table. QList<FileResourceBase *> m_objectsToDelete; + + bool m_envChange = false; }; } // namespace Internal |