diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-10-17 10:47:06 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-11-07 15:56:33 +0000 |
commit | 8ca922793f2a7a10023784d1c18e4b86f552209d (patch) | |
tree | 5150fddc8c4fb0e79fc41f65af210feb41a67c38 /src/lib/corelib/buildgraph/artifact.h | |
parent | 98e4cef3ea23842d6bceb438e0f1f8285a01d979 (diff) |
Enable modules to declare target artifacts
Such artifacts appear to rules just like target artifacts of products.
This functionality will be useful for auto-generating qbs modules from
products.
[ChangeLog] Modules can now declare target artifacts using the new
filesAreTargets property of the Group item.
Task-number: QBS-882
Change-Id: I3bba000be9a1057d9fef01e5576363719ff1f244
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/artifact.h')
-rw-r--r-- | src/lib/corelib/buildgraph/artifact.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/corelib/buildgraph/artifact.h b/src/lib/corelib/buildgraph/artifact.h index ea0b6a6dc..e08b4181e 100644 --- a/src/lib/corelib/buildgraph/artifact.h +++ b/src/lib/corelib/buildgraph/artifact.h @@ -83,6 +83,7 @@ public: Set<FileDependency *> fileDependencies; TransformerPtr transformer; PropertyMapPtr properties; + QString targetOfModule; enum ArtifactType { @@ -102,6 +103,8 @@ public: const TypeFilter<Artifact> childArtifacts() const; void onChildDisconnected(BuildGraphNode *child); + bool isTargetOfModule() const { return !targetOfModule.isEmpty(); } + private: void load(PersistentPool &pool); void store(PersistentPool &pool) const; |