Created
August 15, 2017 18:46
-
-
Save ttsugriy/cf1d8eccd7c45e0b8298cc205796bf75 to your computer and use it in GitHub Desktop.
Patch to turn skylark-lang into java_binary.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/main/java/com/google/devtools/build/lib/BUILD b/src/main/java/com/google/devtools/build/lib/BUILD | |
index d4e18ecf8..0beac7230 100644 | |
--- a/src/main/java/com/google/devtools/build/lib/BUILD | |
+++ b/src/main/java/com/google/devtools/build/lib/BUILD | |
@@ -434,14 +434,34 @@ java_library( | |
# | |
# IMPORTANT: NOT A PUBLIC INTERFACE. TARGETS SHOULDN'T DEPEND ON THIS. | |
# | |
-java_library( | |
+java_binary( | |
name = "skylark-lang", | |
+ srcs = glob([ | |
+ "syntax/**/*.java", | |
+ ]) + glob(["events/*.java"]) + glob(["vfs/inmemoryfs/*.java"]) + glob([ | |
+ "skylarkinterface/*.java", | |
+ ]), | |
visibility = ["//visibility:public"], | |
- exports = [ | |
+ deps = [ | |
+ "//src/main/java/com/google/devtools/build/lib/cmdline", | |
+ "//src/main/java/com/google/devtools/common/options", | |
+ "//third_party:asm", | |
+ "//third_party:asm-commons", | |
+ "//third_party:asm-util", | |
+ "//third_party:auto_value", | |
+ "//third_party:bytebuddy", | |
+ "//third_party:guava", | |
+ "//third_party:jsr305", | |
+ ":clock", | |
+ ":collect", | |
+ ":concurrent", | |
":events", | |
- ":inmemoryfs", | |
+ ":io", | |
+ ":os_util", | |
+ ":preconditions", | |
":skylarkinterface", | |
- ":syntax", | |
+ ":unix", | |
+ ":util", | |
":vfs", | |
], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment