Files
codeql/csharp/scripts/BUILD.bazel
2024-06-04 11:18:22 -07:00

18 lines
596 B
Python

py_binary(
name = "gen-assembly-info",
srcs = ["gen-assembly-info.py"],
deps = ["@rules_python//python/runfiles"],
)
# this is an instance of the dbscheme kept in the bazel build tree
# this allows everything that bazel builds to be up-to-date,
# independently from whether //go:gen was already run to update the checked in files
genrule(
name = "assembly-info-src",
srcs = ["@semmle_code//:git_info"],
outs = ["AssemblyInfo.cs"],
cmd = "$(execpath :gen-assembly-info) $@ $(SRCS)",
tools = [":gen-assembly-info"],
visibility = ["//csharp:__subpackages__"],
)