2024-03-07 16:41:35 +03:00
|
|
|
load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup", "pkg_files")
|
2024-05-30 12:24:28 +03:00
|
|
|
load("//misc/bazel:pkg.bzl", "codeql_pack", "codeql_pkg_files")
|
2024-02-12 19:10:35 +03:00
|
|
|
|
2023-10-05 10:00:38 +03:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
alias(
|
|
|
|
name = "dbscheme",
|
|
|
|
actual = "//python/ql/lib:dbscheme",
|
|
|
|
)
|
|
|
|
|
|
|
|
alias(
|
|
|
|
name = "dbscheme-stats",
|
|
|
|
actual = "//python/ql/lib:dbscheme-stats",
|
|
|
|
)
|
2024-02-12 19:10:35 +03:00
|
|
|
|
|
|
|
pkg_files(
|
|
|
|
name = "dbscheme-group",
|
|
|
|
srcs = [
|
|
|
|
":dbscheme",
|
|
|
|
":dbscheme-stats",
|
|
|
|
],
|
|
|
|
strip_prefix = None,
|
|
|
|
)
|
|
|
|
|
|
|
|
pkg_filegroup(
|
|
|
|
name = "db-files",
|
|
|
|
srcs = [
|
|
|
|
":dbscheme-group",
|
|
|
|
"//python/downgrades",
|
|
|
|
],
|
|
|
|
)
|
2024-03-07 16:41:35 +03:00
|
|
|
|
|
|
|
pkg_files(
|
|
|
|
name = "codeql-extractor-yml",
|
|
|
|
srcs = ["codeql-extractor.yml"],
|
|
|
|
strip_prefix = None,
|
|
|
|
)
|
|
|
|
|
2024-05-30 12:24:28 +03:00
|
|
|
codeql_pkg_files(
|
|
|
|
name = "extractor-arch",
|
|
|
|
exes = [
|
|
|
|
"//python/extractor/tsg-python",
|
|
|
|
],
|
|
|
|
prefix = "tools/{CODEQL_PLATFORM}",
|
|
|
|
)
|
|
|
|
|
|
|
|
codeql_pack(
|
|
|
|
name = "python",
|
2024-03-07 16:41:35 +03:00
|
|
|
srcs = [
|
|
|
|
":codeql-extractor-yml",
|
|
|
|
":dbscheme-group",
|
2024-05-30 12:24:28 +03:00
|
|
|
":extractor-arch",
|
2024-03-07 16:41:35 +03:00
|
|
|
"//python/downgrades",
|
|
|
|
"//python/extractor",
|
|
|
|
"//python/tools",
|
|
|
|
],
|
|
|
|
)
|