aboutsummaryrefslogtreecommitdiffhomepage
path: root/bzip2.BUILD
blob: 8865054d70c6a232bed20cae222414d69ea425d9 (plain)
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
package(default_visibility = ["//visibility:public"])

licenses(["notice"])  # BSD derivative

cc_library(
    name = "bz2lib",
    srcs = [
        # These are in the same order as their corresponding .o files are in
        # OBJS in Makefile (rather than lexicographic order) for easy
        # comparison (that they are identical.)
        "blocksort.c",
        "huffman.c",
        "crctable.c",
        "randtable.c",
        "compress.c",
        "decompress.c",
        "bzlib.c",
        "bzlib_private.h",
    ],
    hdrs = ["bzlib.h"],
    includes = ["."],
)

cc_binary(
    name = "bzip2",
    srcs = ["bzip2.c"],
    deps = [":bz2lib"],
)