2022-03-31 04:04:14 +00:00
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
Rules for working with transitions.
2022-12-14 19:21:08 +00:00
< a id = "platform_transition_binary" > < / a >
## platform_transition_binary
< pre >
platform_transition_binary(< a href = "#platform_transition_binary-name" > name< / a > , < a href = "#platform_transition_binary-basename" > basename< / a > , < a href = "#platform_transition_binary-binary" > binary< / a > , < a href = "#platform_transition_binary-target_platform" > target_platform< / a > )
< / pre >
Transitions the binary to use the provided platform.
**ATTRIBUTES**
| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
2023-11-15 23:07:03 +00:00
| < a id = "platform_transition_binary-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 = "platform_transition_binary-basename" ></ a > basename | - | String | optional | `""` |
| < a id = "platform_transition_binary-binary" ></ a > binary | - | < a href = "https://bazel.build/concepts/labels" > Label</ a > | optional | `None` |
2023-11-15 23:07:03 +00:00
| < a id = "platform_transition_binary-target_platform" > < / a > target_platform | The target platform to transition the binary. | < a href = "https://bazel.build/concepts/labels" > Label< / a > | required | |
2022-12-14 19:21:08 +00:00
2022-06-10 20:05:19 +00:00
< a id = "platform_transition_filegroup" > < / a >
2022-03-31 04:04:14 +00:00
## platform_transition_filegroup
< pre >
platform_transition_filegroup(< a href = "#platform_transition_filegroup-name" > name< / a > , < a href = "#platform_transition_filegroup-srcs" > srcs< / a > , < a href = "#platform_transition_filegroup-target_platform" > target_platform< / a > )
< / pre >
Transitions the srcs to use the provided platform. The filegroup will contain artifacts for the target platform.
**ATTRIBUTES**
| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
2023-11-15 23:07:03 +00:00
| < a id = "platform_transition_filegroup-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 = "platform_transition_filegroup-srcs" ></ a > srcs | The input to be transitioned to the target platform. | < a href = "https://bazel.build/concepts/labels" > List of labels</ a > | optional | `[]` |
2023-11-15 23:07:03 +00:00
| < a id = "platform_transition_filegroup-target_platform" > < / a > target_platform | The target platform to transition the srcs. | < a href = "https://bazel.build/concepts/labels" > Label< / a > | required | |
2022-03-31 04:04:14 +00:00
2024-04-03 21:42:07 +00:00
< a id = "platform_transition_test" > < / a >
## platform_transition_test
< pre >
platform_transition_test(< a href = "#platform_transition_test-name" > name< / a > , < a href = "#platform_transition_test-basename" > basename< / a > , < a href = "#platform_transition_test-binary" > binary< / a > , < a href = "#platform_transition_test-target_platform" > target_platform< / a > )
< / pre >
Transitions the test to use the provided platform.
**ATTRIBUTES**
| Name | Description | Type | Mandatory | Default |
| :------------- | :------------- | :------------- | :------------- | :------------- |
| < a id = "platform_transition_test-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 = "platform_transition_test-basename" ></ a > basename | - | String | optional | `""` |
| < a id = "platform_transition_test-binary" ></ a > binary | - | < a href = "https://bazel.build/concepts/labels" > Label</ a > | optional | `None` |
2024-04-03 21:42:07 +00:00
| < a id = "platform_transition_test-target_platform" > < / a > target_platform | The target platform to transition the binary. | < a href = "https://bazel.build/concepts/labels" > Label< / a > | required | |