mirror of
https://github.com/bazelbuild/platforms
synced 2024-11-27 02:43:23 +00:00
6ad3cffd67
*** Reason for rollback ***
Roll forward
*** Original change description ***
Automated rollback of commit e50397c444
.
*** Reason for rollback ***
Breaks //third_party/arcore/unity/instant_preview/plugin/unity_plugin:unity_plugin_build_test_mac
[]
*** Original change description ***
Add Apple CPU and OS constraint values to bazel_platforms.
RELNOTES: None
PiperOrigin-RevId: 261704277
Change-Id: Id8a263c9258f448d402ae27cdf46576d6c7c8a49
58 lines
994 B
Python
58 lines
994 B
Python
# Standard constraint_setting and constraint_values to be used in platforms.
|
|
licenses(["notice"])
|
|
|
|
package(
|
|
default_visibility = ["//visibility:public"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "srcs",
|
|
srcs = glob(["**"]),
|
|
)
|
|
|
|
# To add a new constraint_value see https://github.com/bazelbuild/platforms.
|
|
constraint_setting(name = "os")
|
|
|
|
constraint_value(
|
|
name = "freebsd",
|
|
constraint_setting = ":os",
|
|
)
|
|
|
|
constraint_value(
|
|
name = "android",
|
|
constraint_setting = ":os",
|
|
)
|
|
|
|
constraint_value(
|
|
name = "linux",
|
|
constraint_setting = ":os",
|
|
)
|
|
|
|
constraint_value(
|
|
name = "windows",
|
|
constraint_setting = ":os",
|
|
)
|
|
|
|
### Apple OS Values
|
|
|
|
constraint_value(
|
|
name = "ios",
|
|
constraint_setting = ":os",
|
|
)
|
|
|
|
# TODO(b/138656886): Rename this to macos instead of osx.
|
|
constraint_value(
|
|
name = "osx",
|
|
constraint_setting = ":os",
|
|
)
|
|
|
|
constraint_value(
|
|
name = "tvos",
|
|
constraint_setting = ":os",
|
|
)
|
|
|
|
constraint_value(
|
|
name = "watchos",
|
|
constraint_setting = ":os",
|
|
)
|