Files
codeql/swift/third_party/swift-llvm-support/BUILD.swift-prebuilt.bazel
2022-10-26 07:05:56 +02:00

40 lines
910 B
Plaintext

load("@rules_pkg//:mappings.bzl", "pkg_files", "strip_prefix")
cc_library(
name = "swift-llvm-support",
srcs = [
"libCodeQLSwiftFrontendTool.a",
] + select({
"@platforms//os:linux": [
"libCodeQLSwiftFrontendTool.so",
],
"@platforms//os:macos": [
"libCodeQLSwiftFrontendTool.dylib",
],
}),
hdrs = glob(["include/**/*", "stdlib/**/*" ]),
linkopts = [
"-lm",
"-lz",
] + select({
"@platforms//os:linux": [
"-luuid",
"-lrt",
"-lpthread",
"-ldl",
],
"//conditions:default": [],
}),
includes = [ "include" ],
visibility = ["//visibility:public"],
)
pkg_files(
name = "swift-test-sdk",
srcs = glob([
"sdk/**/*",
]),
strip_prefix = strip_prefix.from_pkg(),
visibility = ["//visibility:public"],
)