mirror of
https://github.com/github/codeql.git
synced 2025-12-23 20:26:32 +01:00
43 lines
990 B
Plaintext
43 lines
990 B
Plaintext
load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")
|
|
|
|
cc_library(
|
|
name = "swift-llvm-support",
|
|
srcs = glob(["*.a", "*.so", "*.dylib"]),
|
|
hdrs = glob(["include/**/*", "stdlib/**/*" ]),
|
|
linkopts = [
|
|
"-lm",
|
|
"-lz",
|
|
] + select({
|
|
"@platforms//os:linux": [
|
|
"-luuid",
|
|
"-lrt",
|
|
"-lpthread",
|
|
"-ldl",
|
|
],
|
|
"@platforms//os:macos": [
|
|
"-L/usr/lib/swift",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
includes = ["include", "stdlib/public/SwiftShims"],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
pkg_files(
|
|
name = "swift-test-sdk",
|
|
srcs = glob([
|
|
"sdk/**/*",
|
|
]),
|
|
strip_prefix = strip_prefix.from_pkg(),
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
pkg_files(
|
|
name = "swift-resource-dir",
|
|
srcs = glob([
|
|
"toolchain/lib/swift/**/*",
|
|
]),
|
|
strip_prefix = "toolchain/lib/swift",
|
|
visibility = ["//visibility:public"],
|
|
)
|