diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-12-14 14:41:22 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-12-14 15:45:57 +0100 |
commit | 1d1cec4be0953ffa9e775cfb3eff4d53a4940077 (patch) | |
tree | 315acf3298b66132668f27d8ef70d1e580a190c6 /rules | |
parent | 441d211fd6194f79303edf8c2b83efae18b32f2e (diff) | |
download | justbuild-1d1cec4be0953ffa9e775cfb3eff4d53a4940077.tar.gz |
rules: Collect artifacts from "srcs" targets for ["data", "staged"]
Diffstat (limited to 'rules')
-rw-r--r-- | rules/data/RULES | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/rules/data/RULES b/rules/data/RULES index 99c8e5cb..feb1a73b 100644 --- a/rules/data/RULES +++ b/rules/data/RULES @@ -19,7 +19,10 @@ , "specied in the field \"deps\" (in their original location)." ] , "runfiles_doc": ["Same as artifacts"] - , "imports": {"runfiles": ["./", "..", "field_runfiles"]} + , "imports": + { "runfiles": ["./", "..", "field_runfiles"] + , "artifacts": ["./", "..", "field_artifacts"] + } , "expression": { "type": "let*" , "bindings": @@ -32,7 +35,13 @@ , [ "srcs" , { "type": "let*" , "bindings": [["fieldname", "srcs"]] - , "body": {"type": "CALL_EXPRESSION", "name": "runfiles"} + , "body": + { "type": "map_union" + , "$1": + [ {"type": "CALL_EXPRESSION", "name": "runfiles"} + , {"type": "CALL_EXPRESSION", "name": "artifacts"} + ] + } } ] , [ "staged" |