Add //cc:srcs filegroup that Bazel can depend on in unittests

RELNOTES: None.
PiperOrigin-RevId: 279041716
Change-Id: I90ce28031a4f2ac737cffbe57d42030c0d1d862b
This commit is contained in:
Googler 2019-11-07 02:26:50 -08:00 committed by Copybara-Service
parent e7c97c3af7
commit fe8f0a4cf9
2 changed files with 16 additions and 7 deletions

View File

@ -45,6 +45,18 @@ filegroup(
visibility = ["//visibility:public"],
)
filegroup(
name = "srcs",
srcs = glob([
"**/*.bzl",
"**/BUILD",
]) + [
"//cc/private/rules_impl:srcs",
"//cc/private/toolchain:srcs",
],
visibility = ["//visibility:public"],
)
# TODO(aiuto): Find a way to strip this rule from the distribution tarball.
filegroup(
name = "distribution",

View File

@ -4,11 +4,8 @@ licenses(["notice"]) # Apache 2.0
filegroup(
name = "srcs",
srcs = glob(
["**"],
exclude = [
".*",
"*~",
],
),
srcs = glob([
"**/*.bzl",
"**/BUILD",
]),
)