forked from github/codeql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
34 lines (31 loc) · 789 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
load("@rules_shell//shell:sh_binary.bzl", "sh_binary")
_args = [
"//rust/ast-generator",
"//rust/ast-generator:rust.ungram",
"//rust/ast-generator:Cargo.toml",
"//misc/codegen",
"//rust:codegen-conf",
]
sh_binary(
name = "codegen",
srcs = ["codegen.sh"],
args = ["$(rlocationpath %s)" % a for a in _args],
data = _args,
visibility = ["//rust:__subpackages__"],
deps = [
"//misc/bazel:sh_runfiles",
],
)
native_binary(
name = "py",
src = "//misc/codegen",
out = "codegen",
args = [
"--configuration-file=$(location //rust:codegen-conf)",
],
data = [
"//rust:codegen-conf",
],
visibility = ["//rust:__subpackages__"],
)