STT-tensorflow/bzip2.BUILD
Justine Tunney 65038b0840 Optimize Bazel external dependencies
This change does the following:

- Always use {,new_}http_archive rather than git_repository
- Make liberal use of strip_prefix
- Clarify licenses() in BUILD files
- On POSIX include headers like a normal C/C++ program

This change accomplishes the following:

- Reduce download size >100MB: The biggest culprit is grpc which has
  tens of thousands of commits in its GitHub repository.

- Reduce disk size >200MB: On disk, grpc takes up 250MB when cloned even
  though the tarball of the git repo is 3.2MB. By never using git
  externals, we save on network.

- Consume less cpu: Cloning git repositories is much slower than
  downloading and extracting a tarball.
Change: 133895791
2016-09-21 17:16:04 -07:00

29 lines
654 B
Plaintext

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"],
)