23 lines
598 B
Plaintext
23 lines
598 B
Plaintext
![]() |
# copied from: https://github.com/bazelbuild/bazel/blob/master/third_party/zlib/BUILD
|
||
|
|
||
|
licenses(["notice"]) # BSD/MIT-like license (for zlib)
|
||
|
|
||
|
cc_library(
|
||
|
name = "zlib",
|
||
|
srcs = glob(["*.c"]),
|
||
|
hdrs = glob(["*.h"]),
|
||
|
# Use -Dverbose=-1 to turn off zlib's trace logging. (bazelbuild/bazel#3280)
|
||
|
copts = [
|
||
|
"-w",
|
||
|
"-Dverbose=-1",
|
||
|
],
|
||
|
includes = ["."],
|
||
|
local_defines = select({
|
||
|
"@bazel_tools//src/conditions:windows": [],
|
||
|
"//conditions:default": [
|
||
|
"Z_HAVE_UNISTD_H",
|
||
|
],
|
||
|
}),
|
||
|
visibility = ["//visibility:public"],
|
||
|
)
|