File: zlib.BUILD

package info (click to toggle)
prometheus-cpp 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 792 kB
  • sloc: cpp: 3,596; sh: 37; makefile: 12
file content (22 lines) | stat: -rw-r--r-- 595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# copied from: https://github.com/bazelbuild/bazel/blob/master/third_party/zlib/BUILD

licenses(["notice"])  # BSD/MIT-like license (for zlib)

cc_library(
    name = "z",
    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"],
)