diff options
author | 2015-02-19 18:28:40 +0000 | |
---|---|---|
committer | 2015-02-19 18:28:40 +0000 | |
commit | 3671ff634e85e5c3307f37e7c86d88bdf7bf911b (patch) | |
tree | fdbdf561be80588f69c0866959b8db4b316db9e7 /tools/jdk | |
parent | 8af211fbae32910d2d3ea20fd3cfa651ea8df49b (diff) |
Add symlinks to third_party/ and tools/ to base_workspace
While attempting to clean up the Bazel examples, I noticed that the example
tests don't actually work because they expect a third_party directory. We could
link third_party/ from the top-level bazel directory, but then we'd have
crossing symlinks (base_workspace/tools->tools and
third_party->base_workspace/third_party). Linking everything in one direction
seemed like a better option, but alternative suggestions are welcome.
--
MOS_MIGRATED_REVID=86703332
Diffstat (limited to 'tools/jdk')
-rw-r--r-- | tools/jdk/BUILD | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/tools/jdk/BUILD b/tools/jdk/BUILD new file mode 100644 index 0000000000..89241c1aa5 --- /dev/null +++ b/tools/jdk/BUILD @@ -0,0 +1,75 @@ +package(default_visibility = ["//visibility:public"]) + +filegroup( + name = "jni_header", + srcs = ["jdk/include/jni.h"], +) + +filegroup( + name = "jni_md_header-darwin", + srcs = ["jdk/include/darwin/jni_md.h"], +) + +filegroup( + name = "jni_md_header-linux", + srcs = ["jdk/include/linux/jni_md.h"], +) + +filegroup( + name = "java", + srcs = ["jdk/jre/bin/java"], +) + +BOOTCLASS_JARS = [ + "rt.jar", + "resources.jar", + "jsse.jar", + "jce.jar", + "charsets.jar", +] + +filegroup( + name = "bootclasspath", + srcs = ["jdk/jre/lib/%s" % jar for jar in BOOTCLASS_JARS], +) + +filegroup( + name = "langtools", + srcs = ["jdk/lib/tools.jar"], +) + +java_import( + name = "langtools-neverlink", + jars = ["jdk/lib/tools.jar"], + neverlink = 1, +) + +# This one is just needed because of how filegroup redirection works. +filegroup(name = "jdk-null") + +filegroup( + name = "jdk-default", + srcs = [":java"], + path = "jdk/jre", +) + +filegroup( + name = "jdk", + srcs = [ + ":jdk-default", + ":jdk-null", + ], +) + +java_toolchain( + name = "toolchain", + encoding = "UTF-8", + source_version = "8", + target_version = "8", +) + +exports_files([ + "JavaBuilder_deploy.jar", + "ijar", + "SingleJar_deploy.jar", +]) |