Skip to content

Commit

Permalink
Export .bzl files in @bazel_tools//tools/...
Browse files Browse the repository at this point in the history
With this change it is now possible to create a `bzl_library` entry that has a `deps` entry for all its inputs.

Closes #12258.

PiperOrigin-RevId: 340281874
  • Loading branch information
achew22 authored and Copybara-Service committed Nov 2, 2020
1 parent ec921a4 commit fb309f3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tools/build_defs/repo/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ load("@rules_pkg//:pkg.bzl", "pkg_tar")

licenses(["notice"]) # Apache 2.0

exports_files(glob(["*.bzl"]))

filegroup(
name = "srcs",
srcs = glob(["**"]),
Expand Down
4 changes: 3 additions & 1 deletion tools/build_defs/repo/BUILD.repo
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
exports_files(glob(["*.bzl"]))

filegroup(
name = "bzl_srcs",
srcs = glob(["*.bzl"]),
visibility = ["//tools/build_defs:__pkg__"],
)
)
2 changes: 2 additions & 0 deletions tools/cpp/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # Apache 2.0

exports_files(glob(["*.bzl"]))

filegroup(
name = "srcs",
srcs = glob(["**"]) + [
Expand Down
1 change: 1 addition & 0 deletions tools/osx/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ filegroup(

exports_files([
"xcode_locator.m",
"xcode_configure.bzl",
])

DARWIN_XCODE_LOCATOR_COMPILE_COMMAND = """
Expand Down

0 comments on commit fb309f3

Please sign in to comment.