mirror of https://github.com/bazelbuild/rules_cc
Add //cc:srcs filegroup that Bazel can depend on in unittests
RELNOTES: None. PiperOrigin-RevId: 279041716 Change-Id: I90ce28031a4f2ac737cffbe57d42030c0d1d862b
This commit is contained in:
parent
e7c97c3af7
commit
fe8f0a4cf9
12
cc/BUILD
12
cc/BUILD
|
@ -45,6 +45,18 @@ filegroup(
|
||||||
visibility = ["//visibility:public"],
|
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.
|
# TODO(aiuto): Find a way to strip this rule from the distribution tarball.
|
||||||
filegroup(
|
filegroup(
|
||||||
name = "distribution",
|
name = "distribution",
|
||||||
|
|
|
@ -4,11 +4,8 @@ licenses(["notice"]) # Apache 2.0
|
||||||
|
|
||||||
filegroup(
|
filegroup(
|
||||||
name = "srcs",
|
name = "srcs",
|
||||||
srcs = glob(
|
srcs = glob([
|
||||||
["**"],
|
"**/*.bzl",
|
||||||
exclude = [
|
"**/BUILD",
|
||||||
".*",
|
]),
|
||||||
"*~",
|
|
||||||
],
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue