select_file() build rule implementation.
Selects a single file from the outputs of a target by given relative path.
load("@bazel_skylib//rules:select_file.bzl", "select_file") select_file(<a href="#select_file-name">name</a>, <a href="#select_file-srcs">srcs</a>, <a href="#select_file-subpath">subpath</a>)
Selects a single file from the outputs of a target by given relative path
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| srcs | The target producing the file among other outputs | Label | required | |
| subpath | Relative path to the file | String | required |