select_file
select_file() build rule implementation.
Selects a single file from the outputs of a target by given relative path.
Rules
select_file
Selects a single file from the outputs of a target by given relative path
Example usage (generated):
load("@bazel_skylib//rules:select_file.bzl", "select_file")
select_file(
# A unique name for this target.
name = "",
# The target producing the file among other outputs
srcs = "",
# Relative path to the file
subpath = "",
)
name
Required name.
A unique name for this target.
srcs
Required label.
The target producing the file among other outputs
subpath
Required string.
Relative path to the file