mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-30 16:42:07 +00:00
aa61b9ad8b
* Remove `BUILD` files from source globs in examples * Updated example urls
25 lines
545 B
Plaintext
25 lines
545 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 = "zlib",
|
|
generate_args = select({
|
|
"@platforms//os:windows": ["-GNinja"],
|
|
"//conditions:default": [],
|
|
}),
|
|
lib_source = ":all_srcs",
|
|
out_static_libs = select({
|
|
"@platforms//os:windows": ["zlibstatic.lib"],
|
|
"//conditions:default": ["libz.a"],
|
|
}),
|
|
)
|