From de54bca47ff6a902edef6b4e1730edafc35581af Mon Sep 17 00:00:00 2001 From: Damien Martin-Guillerez Date: Mon, 29 Feb 2016 10:49:43 +0000 Subject: 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 --- BUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'BUILD') 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") -- cgit v1.2.3