2
0
Fork 0
mirror of https://github.com/bazelbuild/platforms synced 2024-11-30 04:41:19 +00:00
platforms/os/BUILD
Googler 5f13869557 Use cpu and os constraints from Bazel platforms repository
https://github.com/bazelbuild/bazel/issues/6516
https://github.com/bazelbuild/bazel/issues/6521

RELNOTES: None.
PiperOrigin-RevId: 253828017
Change-Id: I15f0295e8759357f481984d361977de2deebac13
2019-06-18 11:15:23 -07:00

48 lines
818 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",
visibility = ["//visibility:private"],
)
constraint_value(
name = "osx",
constraint_setting = ":os",
)
constraint_value(
name = "ios",
constraint_setting = ":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",
)