summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-12-14 14:41:22 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-12-14 15:45:57 +0100
commitb1859c1ba4229812497da501e2843ab20d27682b (patch)
tree6db76d948a223f3a7845a2fe6853109464d46e27 /data
parent736cfaea8069781783a5039c9a942793c0c61245 (diff)
downloadrules-cc-b1859c1ba4229812497da501e2843ab20d27682b.tar.gz
rules: Collect artifacts from "srcs" targets for ["data", "staged"]
Diffstat (limited to 'data')
-rw-r--r--data/RULES13
1 files changed, 11 insertions, 2 deletions
diff --git a/data/RULES b/data/RULES
index 99c8e5c..feb1a73 100644
--- a/data/RULES
+++ b/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"