mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
Swift: fix bazel packaging
This commit is contained in:
@@ -23,19 +23,6 @@ pkg_files(
|
||||
],
|
||||
)
|
||||
|
||||
pkg_files(
|
||||
name = "scripts",
|
||||
srcs = ["tools/qltest.sh", "tools/autobuild.sh"],
|
||||
attributes = pkg_attributes(mode = "0755"),
|
||||
prefix = "tools",
|
||||
)
|
||||
|
||||
pkg_files(
|
||||
name = "tracing-config",
|
||||
srcs = ["tools/tracing-config.lua"],
|
||||
prefix = "tools",
|
||||
)
|
||||
|
||||
pkg_files(
|
||||
name = "manifest",
|
||||
srcs = ["codeql-extractor.yml"],
|
||||
@@ -46,8 +33,7 @@ pkg_filegroup(
|
||||
srcs = [
|
||||
":dbscheme_files",
|
||||
":manifest",
|
||||
":tracing-config",
|
||||
":scripts",
|
||||
"//swift/tools",
|
||||
],
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
@@ -79,7 +65,7 @@ pkg_filegroup(
|
||||
] + select({
|
||||
"@platforms//os:linux": [],
|
||||
"@platforms//os:macos": [
|
||||
":xcode-autobuilder"
|
||||
":xcode-autobuilder",
|
||||
],
|
||||
}),
|
||||
visibility = ["//visibility:public"],
|
||||
@@ -101,7 +87,7 @@ pkg_install(
|
||||
|
||||
py_binary(
|
||||
name = "create-extractor-pack",
|
||||
srcs = ["tools/create_extractor_pack.py"],
|
||||
main = "tools/create_extractor_pack.py",
|
||||
srcs = ["create_extractor_pack.py"],
|
||||
main = "create_extractor_pack.py",
|
||||
deps = [":_create_extractor_pack"],
|
||||
)
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load("@rules_pkg//:mappings.bzl", "pkg_attributes", "pkg_files")
|
||||
load("@rules_pkg//:mappings.bzl", "pkg_attributes", "pkg_filegroup", "pkg_files")
|
||||
|
||||
sh_binary(
|
||||
name = "qltest",
|
||||
srcs = ["qltest.sh"],
|
||||
visibility = ["//swift/tools/test/qltest:__pkg__"],
|
||||
)
|
||||
|
||||
sh_binary(
|
||||
@@ -13,7 +12,7 @@ sh_binary(
|
||||
)
|
||||
|
||||
pkg_files(
|
||||
name = "tools",
|
||||
name = "scripts",
|
||||
srcs = [
|
||||
":autobuild",
|
||||
":qltest",
|
||||
@@ -21,3 +20,18 @@ pkg_files(
|
||||
attributes = pkg_attributes(mode = "0755"),
|
||||
prefix = "tools",
|
||||
)
|
||||
|
||||
pkg_files(
|
||||
name = "tracing-config",
|
||||
srcs = ["tracing-config.lua"],
|
||||
prefix = "tools",
|
||||
)
|
||||
|
||||
pkg_filegroup(
|
||||
name = "tools",
|
||||
srcs = [
|
||||
":scripts",
|
||||
":tracing-config",
|
||||
],
|
||||
visibility = ["//swift:__pkg__"],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user