-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathBUILD.bazel
More file actions
72 lines (63 loc) · 1.57 KB
/
Copy pathBUILD.bazel
File metadata and controls
72 lines (63 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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",
],
)