forked from nelhage/rules_boost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bzip2.BUILD
39 lines (34 loc) · 837 Bytes
/
bzip2.BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Description:
# bzip2 is a high-quality data compressor.
load("@bazel_skylib//lib:selects.bzl", "selects")
licenses(["notice"]) # BSD derivative
alias(
name = "bz2lib",
actual = selects.with_or({
("@platforms//os:osx", "@platforms//os:ios", "@platforms//os:watchos", "@platforms//os:tvos"): ":bz2lib_system",
"//conditions:default": ":bz2lib_source",
}),
visibility = ["//visibility:public"],
)
cc_library(
name = "bz2lib_source",
srcs = [
"blocksort.c",
"bzlib.c",
"bzlib_private.h",
"compress.c",
"crctable.c",
"decompress.c",
"huffman.c",
"randtable.c",
],
hdrs = [
"bzlib.h",
],
includes = ["."],
)
# For OSs that bundle bz2lib
cc_library(
name = "bz2lib_system",
linkopts = ["-lbz2"],
)