2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-12-04 08:02:31 +00:00
rules_foreign_cc/examples/third_party/cares/BUILD.cares.bazel
UebelAndre aa61b9ad8b
Minor cleanup for examples (#835)
* Remove `BUILD` files from source globs in examples

* Updated example urls
2021-12-30 16:37:31 +00:00

27 lines
584 B
Plaintext

load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
package(default_visibility = ["//visibility:public"])
filegroup(
name = "all_srcs",
srcs = glob(
include = ["**"],
exclude = ["*.bazel"],
),
)
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"],
}),
)