forked from Pailowmenah/rules_boost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bzip2
39 lines (34 loc) · 837 Bytes
/
BUILD.bzip2
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",
visibility = ["//visibility:public"],
actual = selects.with_or({
("@platforms//os:osx", "@platforms//os:ios", "@platforms//os:watchos", "@platforms//os:tvos"): ":bz2lib_system",
"//conditions:default": ":bz2lib_source",
})
)
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"],
)