mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-12-03 02:52:58 +00:00
24 lines
528 B
Plaintext
24 lines
528 B
Plaintext
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
filegroup(
|
|
name = "all_srcs",
|
|
srcs = glob(["**"]),
|
|
)
|
|
|
|
cmake(
|
|
name = "cares",
|
|
cache_entries = {
|
|
"CARES_BUILD_TOOLS": "off",
|
|
"CARES_SHARED": "off",
|
|
"CARES_STATIC": "on",
|
|
},
|
|
generate_args = ["-GNinja"],
|
|
lib_source = ":all_srcs",
|
|
out_static_libs = select({
|
|
"@platforms//os:windows": ["cares.lib"],
|
|
"//conditions:default": ["libcares.a"],
|
|
}),
|
|
)
|