Files
codeql/swift/xcode-autobuilder/BUILD.bazel
Paolo Tranquilli 400176f677 Swift: fix cmake generation
The bazel -> cmake generator is currently not capable of handling
separate included generated cmake files making use of common C/C++
dependencies.

To work around this limitation, a single generated cmake is now in
place. Long-term, we should either:
* make the cmake generator handle common dependencies gracefully, or
* make the cmake generation aspect travel up `pkg_` rules `srcs`
  attributes
so to avoid having to list the targets to be generated in the top-level
`BUILD` file.

Other things fixed:
* removed some warning spam about redefined `BAZEL_CURRENT_REPOSITORY`
* fixed the final link step, that was failing because `libswiftCore.so`
  was not being linked.
2023-06-05 11:12:11 +02:00

20 lines
413 B
Python

load("//swift:rules.bzl", "swift_cc_binary")
swift_cc_binary(
name = "xcode-autobuilder",
srcs = glob([
"*.cpp",
"*.h",
]),
linkopts = [
"-lxml2",
"-framework CoreFoundation",
],
target_compatible_with = ["@platforms//os:macos"],
visibility = ["//swift:__subpackages__"],
deps = [
"//swift/logging",
"@absl//absl/strings",
],
)