gerrit/antlr3/BUILD
David Ostrovsky 0c36f1f74a Move gerrit-index/antlr3 sources to top-level antlr3 directory
Change-Id: I75d6bc4d7af2cb17622ef0f722f88f068509cb46
2017-10-31 11:02:36 -04:00

18 lines
501 B
Python

load("//tools/bzl:genrule2.bzl", "genrule2")
genrule2(
name = "query",
srcs = ["com/google/gerrit/index/query/Query.g"],
outs = ["query_antlr.srcjar"],
cmd = " && ".join([
"$(location //lib/antlr:antlr-tool) -o $$TMP $<",
"cd $$TMP",
"$$ROOT/$(location @bazel_tools//tools/zip:zipper) cC $$ROOT/$@ $$(find *)",
]),
tools = [
"//lib/antlr:antlr-tool",
"@bazel_tools//tools/zip:zipper",
],
visibility = ["//visibility:public"],
)