2024-03-21 17:06:19 +00:00
|
|
|
# Host platform detection
|
|
|
|
|
|
|
|
load("@host_platform//:constraints.bzl", "HOST_CONSTRAINTS")
|
|
|
|
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
exports_files(["constraints.bzl", "extension.bzl"])
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
)
|
|
|
|
|
|
|
|
platform(
|
|
|
|
name = "host",
|
|
|
|
constraint_values = HOST_CONSTRAINTS,
|
|
|
|
)
|
|
|
|
|
2024-04-25 14:18:48 +00:00
|
|
|
# The following filegroup targets are essentially bzl_library targets.
|
|
|
|
# We don't directly use bzl_library to avoid a dependency on bazel-skylib.
|
|
|
|
filegroup(
|
|
|
|
name = "constraints_lib",
|
|
|
|
srcs = [
|
|
|
|
"constraints.bzl",
|
|
|
|
"@host_platform//:constraints.bzl",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "extension_lib",
|
|
|
|
srcs = [
|
|
|
|
"extension.bzl",
|
|
|
|
],
|
|
|
|
)
|