aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXùdōng Yáng <wyverald@gmail.com>2024-04-25 10:18:48 -0400
committerGitHub <noreply@github.com>2024-04-25 16:18:48 +0200
commit5074be07020864ed7724d8eaff2c43076b59b1a7 (patch)
tree422576674fc691565313d218a0ff29799670bd6c
parent2af915c086d82ab0b233c8ff420ca72e128b8790 (diff)
downloadbazelbuild-platforms-5074be07020864ed7724d8eaff2c43076b59b1a7.tar.gz
Add filegroup targets for .bzl files in the `host` package (#90)
This allows users of e.g. `//host:constraints.bzl` to use Stardoc.
-rw-r--r--host/BUILD.bazel16
1 files changed, 16 insertions, 0 deletions
diff --git a/host/BUILD.bazel b/host/BUILD.bazel
index 1989bba..48531bc 100644
--- a/host/BUILD.bazel
+++ b/host/BUILD.bazel
@@ -16,3 +16,19 @@ platform(
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",
+ ],
+)