aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/tools/runfiles/BUILD
diff options
context:
space:
mode:
authorGravatar Laszlo Csomor <laszlocsomor@google.com>2018-01-16 01:30:27 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-01-16 01:31:48 -0800
commit68371172ae9012a1b368d05c4a0d6483812fcd42 (patch)
tree5722049e2d8f07a0a35e3f9434d3352f0ebe830b /src/tools/runfiles/BUILD
parent89eaee567429b559ca9983fff146ae60477688ad (diff)
java,runfiles: runfiles library in @bazel_tools
Also make most targets in `//src/tools/runfiles` private. The user should depend on `@bazel_tools//tools/runfiles:$LANG-runfiles` instead. See https://github.com/bazelbuild/bazel/issues/4460 RELNOTES[NEW]: java,runfiles: You can now depend on `@bazel_tools//tools/runfiles:java-runfiles` to get a platform-independent runfiles library for Java. See JavaDoc of https://github.com/bazelbuild/bazel/blob/master/src/tools/runfiles/java/com/google/devtools/build/runfiles/Runfiles.java for usage information. Change-Id: Iba9113453222ae74ce42a324272711f613104891 PiperOrigin-RevId: 182022851
Diffstat (limited to 'src/tools/runfiles/BUILD')
-rw-r--r--src/tools/runfiles/BUILD26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/tools/runfiles/BUILD b/src/tools/runfiles/BUILD
index 3627e4330d..e0ba09f1a6 100644
--- a/src/tools/runfiles/BUILD
+++ b/src/tools/runfiles/BUILD
@@ -1,9 +1,9 @@
-package(default_visibility = ["//visibility:private"])
+# This package contains sources for language-specific runfiles libraries.
+#
+# Do not depend on these rules. Depend on the ones in @bazel_tools//tools/runfiles instead, that way
+# your binary won't require the Bazel source tree to work correctly.
-exports_files(
- ["runfiles.sh"],
- visibility = ["//visibility:public"],
-)
+package(default_visibility = ["//visibility:private"])
filegroup(
name = "srcs",
@@ -16,10 +16,18 @@ filegroup(
visibility = ["//src:__pkg__"],
)
+filegroup(
+ name = "embedded_tools",
+ srcs = [
+ "BUILD.tools",
+ "//src/tools/runfiles/java/com/google/devtools/build/runfiles:embedded_tools",
+ ],
+ visibility = ["//src:__pkg__"],
+)
+
sh_library(
name = "runfiles_sh_lib",
srcs = ["runfiles.sh"],
- visibility = ["//visibility:public"],
)
sh_test(
@@ -31,12 +39,6 @@ sh_test(
deps = [":runfiles_sh_lib"],
)
-alias(
- name = "java-runfiles",
- actual = "//src/tools/runfiles/java/com/google/devtools/build/runfiles",
- visibility = ["//visibility:public"],
-)
-
test_suite(
name = "windows_tests",
tags = [