2019-06-06 09:18:26 +00:00
|
|
|
# Standard constraint_setting and constraint_values to be used in platforms.
|
|
|
|
licenses(["notice"])
|
|
|
|
|
|
|
|
package(
|
|
|
|
default_visibility = ["//visibility:public"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
)
|
|
|
|
|
2019-06-18 18:15:05 +00:00
|
|
|
# To add a new constraint_value see https://github.com/bazelbuild/platforms.
|
2019-06-18 18:35:25 +00:00
|
|
|
constraint_setting(name = "os")
|
2019-06-06 09:18:26 +00:00
|
|
|
|
|
|
|
constraint_value(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "freebsd",
|
2019-06-06 09:18:26 +00:00
|
|
|
constraint_setting = ":os",
|
|
|
|
)
|
|
|
|
|
2019-08-09 15:39:40 +00:00
|
|
|
constraint_value(
|
|
|
|
name = "openbsd",
|
|
|
|
constraint_setting = ":os",
|
|
|
|
)
|
|
|
|
|
2019-06-06 09:18:26 +00:00
|
|
|
constraint_value(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "android",
|
2019-06-06 09:18:26 +00:00
|
|
|
constraint_setting = ":os",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "linux",
|
2019-06-06 09:18:26 +00:00
|
|
|
constraint_setting = ":os",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "windows",
|
2019-07-30 19:29:49 +00:00
|
|
|
constraint_setting = ":os",
|
|
|
|
)
|
|
|
|
|
2019-08-05 16:40:46 +00:00
|
|
|
### Apple OS Values
|
|
|
|
|
2019-07-30 19:29:49 +00:00
|
|
|
constraint_value(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "ios",
|
2019-07-30 19:29:49 +00:00
|
|
|
constraint_setting = ":os",
|
|
|
|
)
|
|
|
|
|
2019-08-05 16:40:46 +00:00
|
|
|
# TODO(b/138656886): Rename this to macos instead of osx.
|
2019-07-30 19:29:49 +00:00
|
|
|
constraint_value(
|
2019-08-05 16:40:46 +00:00
|
|
|
name = "osx",
|
|
|
|
constraint_setting = ":os",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "tvos",
|
|
|
|
constraint_setting = ":os",
|
|
|
|
)
|
|
|
|
|
|
|
|
constraint_value(
|
|
|
|
name = "watchos",
|
2019-06-06 09:18:26 +00:00
|
|
|
constraint_setting = ":os",
|
|
|
|
)
|