mirror of
https://github.com/github/codeql.git
synced 2026-02-24 10:53:49 +01:00
Previously, we were using 8.0.0rc1. In particular, this upgrade means we need to explicitly import more rules, as they've been moved out of the core bazel repo.
34 lines
749 B
Python
34 lines
749 B
Python
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: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__"],
|
|
)
|