BUILD.bzip2.bazel 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License in the LICENSE file at the
  6. # root of this repository, or online at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. """Builds bzip2."""
  16. cc_library(
  17. name = "bzip2",
  18. srcs = [
  19. "blocksort.c",
  20. "bzlib.c",
  21. "bzlib_private.h",
  22. "compress.c",
  23. "crctable.c",
  24. "decompress.c",
  25. "huffman.c",
  26. "randtable.c",
  27. ],
  28. hdrs = ["bzlib.h"],
  29. copts = select({
  30. "//conditions:default": [
  31. "-Wno-unused-but-set-variable",
  32. ],
  33. }),
  34. local_defines = [
  35. "_FILE_OFFSET_BITS=64",
  36. "BZ_NO_STDIO",
  37. ],
  38. visibility = ["//visibility:public"],
  39. )