2
0
Fork 0
mirror of https://github.com/bazelbuild/platforms synced 2024-11-27 02:43:23 +00:00
platforms/host/BUILD
John Cater d5fcb55bf8
Various cleanups (#101)
* Rename BUILD files to match the rest of the repo.

* Move host tests to a specific subpackage

* Add a gitignore file
2024-08-26 19:02:58 +02:00

35 lines
696 B
Python

# 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,
)
# 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",
],
)