mirror of
https://github.com/github/codeql.git
synced 2026-07-31 07:22:56 +02:00
73 lines
1.6 KiB
Python
73 lines
1.6 KiB
Python
load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup")
|
|
load("//misc/bazel:pkg.bzl", "codeql_pack", "codeql_pkg_files")
|
|
load("//misc/bazel:utils.bzl", "select_os")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
alias(
|
|
name = "dbscheme",
|
|
actual = "//unified/ql/lib:dbscheme",
|
|
)
|
|
|
|
alias(
|
|
name = "dbscheme-stats",
|
|
actual = "//unified/ql/lib:dbscheme-stats",
|
|
)
|
|
|
|
codeql_pkg_files(
|
|
name = "dbscheme-group",
|
|
srcs = [
|
|
":dbscheme",
|
|
":dbscheme-stats",
|
|
],
|
|
strip_prefix = None,
|
|
)
|
|
|
|
pkg_filegroup(
|
|
name = "db-files",
|
|
srcs = [
|
|
":dbscheme-group",
|
|
],
|
|
)
|
|
|
|
codeql_pkg_files(
|
|
name = "codeql-extractor-yml",
|
|
srcs = [
|
|
"codeql-extractor.yml",
|
|
"//:LICENSE",
|
|
],
|
|
strip_prefix = None,
|
|
)
|
|
|
|
codeql_pkg_files(
|
|
name = "extractor-arch",
|
|
exes = [
|
|
"//unified/extractor",
|
|
],
|
|
prefix = "tools/{CODEQL_PLATFORM}",
|
|
)
|
|
|
|
# The Swift front-end parser (wrapper + real binary + bundled Swift runtime),
|
|
# shipped next to the extractor. Only on platforms where swift-syntax builds
|
|
# (Linux/macOS); elsewhere the group is empty so the pack still builds (Swift
|
|
# extraction is simply unavailable there).
|
|
pkg_filegroup(
|
|
name = "swift-syntax-parse-arch",
|
|
srcs = select_os(
|
|
otherwise = [],
|
|
posix = ["//unified/swift-syntax-rs:swift-syntax-parse-pkg"],
|
|
),
|
|
prefix = "tools/{CODEQL_PLATFORM}",
|
|
)
|
|
|
|
codeql_pack(
|
|
name = "unified",
|
|
srcs = [
|
|
":codeql-extractor-yml",
|
|
":dbscheme-group",
|
|
":extractor-arch",
|
|
":swift-syntax-parse-arch",
|
|
"//unified/tools",
|
|
],
|
|
)
|