Add filegroup targets for .bzl files in the `host` package (#90)

This allows users of e.g. `//host:constraints.bzl` to use Stardoc.
This commit is contained in:
Xùdōng Yáng 2024-04-25 10:18:48 -04:00 committed by GitHub
parent 2af915c086
commit 5074be0702
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 0 deletions

View File

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