From 521a5a2667264847ed88924cf92577cd1f689cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20D=C3=A9camps?= Date: Sat, 13 Oct 2018 02:23:38 +0200 Subject: [PATCH] Build cup_runtime with Bazel (#441) Simple java_library rule --- cup/BUILD | 4 ++-- cup/cup_runtime/BUILD | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 cup/cup_runtime/BUILD diff --git a/cup/BUILD b/cup/BUILD index 67f322bff..98028b6bb 100644 --- a/cup/BUILD +++ b/cup/BUILD @@ -7,7 +7,7 @@ java_import( jars = ["cup/target/cup-11b.jar"], ) -java_import( +alias( name = "cup_runtime", - jars = ["cup_runtime/target/cup_runtime-11b.jar"], + actual = "//cup/cup_runtime", ) diff --git a/cup/cup_runtime/BUILD b/cup/cup_runtime/BUILD new file mode 100644 index 000000000..c9eea2124 --- /dev/null +++ b/cup/cup_runtime/BUILD @@ -0,0 +1,6 @@ +licenses(["notice"]) # BSD-like +java_library( + name = "cup_runtime", + srcs = glob(["src/main/java/**/*.java"]), + visibility=["//visibility:public"] +) \ No newline at end of file