2022-03-16 00:36:22 +00:00
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
2024-08-08 19:56:11 +00:00
A rule that provides file(s) specific via DefaultInfo from a given target's DefaultInfo or OutputGroupInfo.
2022-03-16 00:36:22 +00:00
2024-08-08 19:56:11 +00:00
See also [select_file ](https://github.com/bazelbuild/bazel-skylib/blob/main/docs/select_file_doc.md ) from bazel-skylib.
2022-03-16 00:36:22 +00:00
2022-06-10 20:05:19 +00:00
< a id = "output_files" > < / a >
2022-03-16 00:36:22 +00:00
## output_files
< pre >
output_files(< a href = "#output_files-name" > name< / a > , < a href = "#output_files-output_group" > output_group< / a > , < a href = "#output_files-paths" > paths< / a > , < a href = "#output_files-target" > target< / a > )
< / pre >
A rule that provides file(s) specific via DefaultInfo from a given target's DefaultInfo or OutputGroupInfo
**ATTRIBUTES**
| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
2023-11-15 23:07:03 +00:00
| < a id = "output_files-name" > < / a > name | A unique name for this target. | < a href = "https://bazel.build/concepts/labels#target-names" > Name< / a > | required | |
2024-08-08 19:56:11 +00:00
| < a id = "output_files-output_group" ></ a > output_group | if set, we look in the specified output group for paths instead of DefaultInfo | String | optional | `""` |
2022-03-16 00:36:22 +00:00
| < a id = "output_files-paths" > < / a > paths | the paths of the file(s), relative to their roots, to provide via DefaultInfo from the given target's DefaultInfo or OutputGroupInfo | List of strings | required | |
2023-11-15 23:07:03 +00:00
| < a id = "output_files-target" > < / a > target | the target to look in for requested paths in its' DefaultInfo or OutputGroupInfo | < a href = "https://bazel.build/concepts/labels" > Label< / a > | required | |
2022-03-16 00:36:22 +00:00
2022-06-10 20:05:19 +00:00
< a id = "make_output_files" > < / a >
2022-03-16 00:36:22 +00:00
## make_output_files
< pre >
make_output_files(< a href = "#make_output_files-name" > name< / a > , < a href = "#make_output_files-target" > target< / a > , < a href = "#make_output_files-paths" > paths< / a > , < a href = "#make_output_files-kwargs" > kwargs< / a > )
< / pre >
Helper function to generate a output_files target and return its label.
**PARAMETERS**
| Name | Description | Default Value |
| :------------- | :------------- | :------------- |
2024-08-08 19:56:11 +00:00
| < a id = "make_output_files-name" ></ a > name | unique name for the generated `output_files` target | none |
| < a id = "make_output_files-target" ></ a > target | `target` attribute passed to generated `output_files` target | none |
| < a id = "make_output_files-paths" ></ a > paths | `paths` attribute passed to generated `output_files` target | none |
| < a id = "make_output_files-kwargs" ></ a > kwargs | parameters to pass to generated `output_files` target | none |
2022-03-16 00:36:22 +00:00
**RETURNS**
The label `name`