transitions
Rules for working with transitions.
Rules
platform_transition_binary
Transitions the binary to use the provided platform.
Example usage (generated):
load("@aspect_bazel_lib//lib:transitions.bzl", "platform_transition_binary")
platform_transition_binary(
# A unique name for this target.
name = "",
# The target platform to transition the binary.
target_platform = "",
)
name
Required name.
A unique name for this target.
basename
Optional string.
Default: ""
binary
Optional label.
Default: None
target_platform
Required label.
The target platform to transition the binary.
platform_transition_filegroup
Transitions the srcs to use the provided platform. The filegroup will contain artifacts for the target platform.
Example usage (generated):
load("@aspect_bazel_lib//lib:transitions.bzl", "platform_transition_filegroup")
platform_transition_filegroup(
# A unique name for this target.
name = "",
# The target platform to transition the srcs.
target_platform = "",
)
name
Required name.
A unique name for this target.
srcs
Optional list of labels.
Default: []
The input to be transitioned to the target platform.
target_platform
Required label.
The target platform to transition the srcs.