blob: 5083ccb4a92ebb316f0f0290bd8bdbb12861d04c [file] [log] [blame]
load("@rules_license//rules:license.bzl", "license")
package(default_applicable_licenses = [":license"])
licenses(["notice"]) # BSD/MIT-like license
license(
name = "license",
package_name = "zlib",
copyright_notice = "(C) 1995-2022 Jean-loup Gailly and Mark Adler",
license_kinds = [
"@rules_license//licenses/spdx:0BSD",
],
license_text = "LICENSE",
package_version = "1.3",
)
cc_library(
name = "zlib",
srcs = glob(["*.c"]),
hdrs = glob(["*.h"]),
copts = select({
"@platforms//os:windows": [],
"//conditions:default": [
"-Wno-deprecated-non-prototype",
"-Wno-unused-variable",
"-Wno-implicit-function-declaration",
],
}),
includes = ["."],
visibility = ["//visibility:public"],
)