Artifact
Describes a file produced by a Rule. More...
Properties
- alwaysUpdated : bool
- filePath : string
- fileTags : stringList
Detailed Description
An Artifact represents a single file produced by a Rule.
For example, if a rule produces three files, it needs to contain three Artifact items.
In addition to Artifact properties, you can set module properties within an Artifact item, as follows:
Artifact { filePath: "somefile.cpp" fileTags: ["cpp"] cpp.cxxLanguageVersion: "c++11" // ... }
Note: The code on the right-hand side of Artifact properties has access to the set of input artifacts. That is, it can refer to the inputs
map and, if the rule is not a multiplex rule, the input
variable.
Property Documentation
Setting this property to false
means the file is not necessarily always written to by any command run by the rule. If all artifacts of a rule have this property set to false
, the commands of the rule are only executed if all of them are out of date compared to the inputs.
Default: true
A list of tags to attach to the target file. These can then be matched by a Rule.
Default: An empty list
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.