mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
25 lines
662 B
Python
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"),
|
|
],
|
|
)
|