aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD
diff options
context:
space:
mode:
authorGravatar Ulf Adams <ulfjack@google.com>2017-06-13 10:53:13 +0200
committerGravatar Yun Peng <pcloudy@google.com>2017-06-13 12:27:38 +0200
commit3e87c626ed76536420aa06e4c258209b32bb76e0 (patch)
tree7e2f3d472885fcbc124ddcd8dd6a23d775244868 /BUILD
parent019935dfbb61e61d08d1351b0365fb4e2d0df305 (diff)
Update BUILD files
We're currently maintaining two sets of BUILD files; one at Google, and one in the Git repository. We'd like to not do that. This change makes some of the Bazel BUILD files more closely match their counterparts, in preparation for removing the internal ones. Closes #3094. PiperOrigin-RevId: 158820490
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD44
1 files changed, 23 insertions, 21 deletions
diff --git a/BUILD b/BUILD
index 4680429dcc..5b7f88b7bf 100644
--- a/BUILD
+++ b/BUILD
@@ -1,8 +1,31 @@
+# Bazel - Google's Build System
+
package(default_visibility = ["//scripts/release:__pkg__"])
exports_files(["LICENSE"])
filegroup(
+ name = "srcs",
+ srcs = glob(
+ ["*"],
+ exclude = [
+ "bazel-*", # convenience symlinks
+ "out", # IntelliJ with setup-intellij.sh
+ "output", # output of compile.sh
+ ".*", # mainly .git* files
+ ],
+ ) + [
+ "//examples:srcs",
+ "//scripts:srcs",
+ "//site:srcs",
+ "//src:srcs",
+ "//tools:srcs",
+ "//third_party:srcs",
+ ],
+ visibility = ["//visibility:private"],
+)
+
+filegroup(
name = "git",
srcs = glob([".git/**"]),
)
@@ -30,27 +53,6 @@ filegroup(
)
filegroup(
- name = "srcs",
- srcs = glob(
- ["*"],
- exclude = [
- "bazel-*", # convenience symlinks
- "out", # IntelliJ with setup-intellij.sh
- "output", # output of compile.sh
- ".*", # mainly .git* files
- ],
- ) + [
- "//examples:srcs",
- "//scripts:srcs",
- "//site:srcs",
- "//src:srcs",
- "//tools:srcs",
- "//third_party:srcs",
- ],
- visibility = ["//visibility:private"],
-)
-
-filegroup(
name = "bootstrap-derived-java-srcs",
srcs = glob(["derived/**/*.java"]),
visibility = ["//:__subpackages__"],