Skip to content

Commit

Permalink
Swift: fix pack
Browse files Browse the repository at this point in the history
  • Loading branch information
redsun82 committed Dec 13, 2024
1 parent a75f5fa commit a8238b1
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions swift/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ pkg_filegroup(
prefix = "tools/{CODEQL_PLATFORM}",
)

pkg_filegroup(
name = "tools",
srcs = ["//swift/tools"],
prefix = "tools",
)

pkg_filegroup(
name = "extractor",
srcs = select_os(
Expand All @@ -67,15 +73,6 @@ codeql_pkg_files(
],
)

pkg_filegroup(
name = "common",
srcs = [
":autobuilder",
":root-files",
"//swift/downgrades",
],
)

zip_map = {
"//swift/third_party/resources:dir": "resource-dir/{CODEQL_PLATFORM}",
}
Expand All @@ -84,13 +81,17 @@ zip_map = {
codeql_pack(
name = "swift-linux-included" if linux_included else "swift",
srcs = [
":common",
":autobuilder",
":root-files",
":tools",
"//swift/downgrades",
] + select_os(
linux = [":extractor"] if linux_included else [],
macos = [":extractor"],
windows = [],
),
installer_alias = "install-linux" if linux_included else "install-other",
pack_prefix = "swift",
zips = select_os(
linux = zip_map if linux_included else {},
macos = zip_map,
Expand All @@ -105,7 +106,7 @@ zip_map = {

alias(
name = "create-extractor-pack",
actual = ":swift-installer",
actual = ":install",
)

alias(
Expand Down

0 comments on commit a8238b1

Please sign in to comment.