Skip to content

Commit

Permalink
use cup.bzl from bazeel rules
Browse files Browse the repository at this point in the history
  • Loading branch information
regisd committed Oct 17, 2018
1 parent e9f2f1e commit 57676bf
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")

git_repository(
name = "jflex_rules",
tag = "stable",
tag = "v3",
remote = "https://github.com/jflex-de/bazel_rules.git",
)

Expand Down
14 changes: 0 additions & 14 deletions cup/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@ package(default_visibility = ["//visibility:public"])

licenses(["notice"]) # GPL-compatible

java_binary(
name = "cup_bin",
main_class = "java_cup.Main",
runtime_deps = [
":cup",
],
)

# This is the full Java CUP (with runtime)
java_import(
name = "cup",
jars = ["cup/java-cup-11b.jar"],
)

alias(
name = "cup_runtime",
actual = "//cup/cup_runtime",
Expand Down
1 change: 1 addition & 0 deletions cup/sample-project/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ load("@jflex_rules//cup:cup.bzl", "cup")
cup(
name = "gen_parser",
src = "src/main/cup/calculator.cup",
cup_bin = "@jflex_rules//cup:cup_bin",
)
3 changes: 2 additions & 1 deletion jflex/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ java_library(
resources = glob(["src/main/resources/**"]),
visibility = ["//visibility:public"],
deps = [
"//cup",
"//cup:cup_runtime",
"//third_party/org/apache/ant",
],
)

cup(
name = "gen_parser",
src = "src/main/cup/LexParse.cup",
cup_bin = "@jflex_rules//cup:cup_bin",
interface = True,
parser = "LexParse",
symbols = "sym",
Expand Down

0 comments on commit 57676bf

Please sign in to comment.