diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2016-02-29 10:49:43 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2016-02-29 17:40:13 +0000 |
commit | de54bca47ff6a902edef6b4e1730edafc35581af (patch) | |
tree | 20e2a5028b160b755065a5a5b4a16d8c613ba387 /BUILD | |
parent | a39d6f84e106a80bd63d8ec89e86d65c2c70aede (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-- | BUILD | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -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") |