aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-02-29 10:49:43 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-02-29 17:40:13 +0000
commitde54bca47ff6a902edef6b4e1730edafc35581af (patch)
tree20e2a5028b160b755065a5a5b4a16d8c613ba387 /BUILD
parenta39d6f84e106a80bd63d8ec89e86d65c2c70aede (diff)
Add a bazel-srcs target to the top-level package containing all Bazel sources
This target include all non tests targets of Bazel to do integration tests of bootstrapping. -- MOS_MIGRATED_REVID=115830741
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/BUILD b/BUILD
index af40a420db..9205775111 100644
--- a/BUILD
+++ b/BUILD
@@ -10,6 +10,36 @@ filegroup(
visibility = ["//visibility:public"],
)
+filegroup(
+ name = "srcs",
+ srcs = glob(
+ ["**"],
+ exclude = [
+ "bazel-*/**",
+ "output/**",
+ ".*/**",
+ ],
+ ) + [
+ "//examples:srcs",
+ "//scripts:srcs",
+ "//site:srcs",
+ "//src:srcs",
+ "//tools:srcs",
+ "//third_party:srcs",
+ ],
+ visibility = ["//visibility:private"],
+)
+
+load("//tools/build_defs/pkg:pkg.bzl", "pkg_tar")
+
+pkg_tar(
+ name = "bazel-srcs",
+ files = [":srcs"],
+ strip_prefix = ".",
+ # Public but bazel-only visibility.
+ visibility = ["//:__subpackages__"],
+)
+
load("//tools/build_rules/go:def.bzl", "go_prefix")
go_prefix("github.com/bazelbuild/bazel")