0c36f1f74a
Change-Id: I75d6bc4d7af2cb17622ef0f722f88f068509cb46
18 lines
501 B
Python
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"],
|
|
)
|