Files
codeql/swift/codegen/BUILD.bazel
2022-05-04 18:20:06 +02:00

25 lines
662 B
Python

load("@swift_codegen_deps//:requirements.bzl", "requirement")
py_binary(
name = "codegen",
srcs = glob(
["*.py"],
exclude = ["trapgen.py"],
),
visibility = ["//swift/codegen/test:__pkg__"],
deps = ["//swift/codegen/lib"],
)
# as opposed to the above, that is meant to only be run with bazel run,
# we need to be precise with data dependencies of this which is meant be run during build
py_binary(
name = "trapgen",
srcs = ["trapgen.py"],
data = ["//swift/codegen/templates:cpp"],
visibility = ["//swift:__subpackages__"],
deps = [
"//swift/codegen/lib",
requirement("toposort"),
],
)