mirror of https://github.com/bazelbuild/platforms
45 lines
820 B
Python
45 lines
820 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(["**"]),
|
||
|
)
|
||
|
|
||
|
# These match values in https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/util/OS.java
|
||
|
constraint_setting(name = "os")
|
||
|
|
||
|
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",
|
||
|
)
|