From 5074be07020864ed7724d8eaff2c43076b59b1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=B9d=C5=8Dng=20Y=C3=A1ng?= Date: Thu, 25 Apr 2024 10:18:48 -0400 Subject: [PATCH] Add filegroup targets for .bzl files in the `host` package (#90) This allows users of e.g. `//host:constraints.bzl` to use Stardoc. --- host/BUILD.bazel | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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", + ], +)