From 0913abc3be0edff60af681c0473518f51fb9eeef Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Thu, 12 Aug 2021 07:14:14 -0700 Subject: [PATCH] Added `bzl_srcs` targets which only contain `.bzl` files for use in stardoc --- cc/BUILD | 11 +++++++++++ cc/private/rules_impl/BUILD | 7 +++++++ cc/private/toolchain/BUILD | 5 +++++ tools/migration/BUILD | 5 ++++- 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/cc/BUILD b/cc/BUILD index 9bf862a..bcfa42f 100644 --- a/cc/BUILD +++ b/cc/BUILD @@ -45,6 +45,17 @@ filegroup( visibility = ["//visibility:public"], ) +filegroup( + name = "bzl_srcs", + srcs = glob([ + "**/*.bzl", + ]) + [ + "//cc/private/rules_impl:bzl_srcs", + "//cc/private/toolchain:bzl_srcs", + ], + visibility = ["//visibility:public"], +) + filegroup( name = "srcs", srcs = glob([ diff --git a/cc/private/rules_impl/BUILD b/cc/private/rules_impl/BUILD index 37f326d..dc74dfe 100644 --- a/cc/private/rules_impl/BUILD +++ b/cc/private/rules_impl/BUILD @@ -2,6 +2,13 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) # Apache 2.0 +filegroup( + name = "bzl_srcs", + srcs = glob([ + "**/*.bzl", + ]), +) + filegroup( name = "srcs", srcs = glob([ diff --git a/cc/private/toolchain/BUILD b/cc/private/toolchain/BUILD index 3026ac6..6915d5b 100644 --- a/cc/private/toolchain/BUILD +++ b/cc/private/toolchain/BUILD @@ -65,6 +65,11 @@ filegroup( srcs = [], ) +filegroup( + name = "bzl_srcs", + srcs = glob(["**/*.bzl"]), +) + filegroup( name = "srcs", srcs = glob(["**"]), diff --git a/tools/migration/BUILD b/tools/migration/BUILD index 443299b..91c5d54 100644 --- a/tools/migration/BUILD +++ b/tools/migration/BUILD @@ -132,7 +132,10 @@ filegroup( ], ) -exports_files(["ctoolchain_compare.bzl"]) +exports_files([ + "cc_toolchain_config_comparator.bzl", + "ctoolchain_compare.bzl", +]) bzl_library( name = "ctoolchain_compare_bzl",