BUILD.zlib 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Copyright 2021 the V8 project authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. cc_library(
  5. name = "zlib",
  6. srcs = [
  7. "adler32.c",
  8. "chromeconf.h",
  9. "compress.c",
  10. "contrib/optimizations/insert_string.h",
  11. "contrib/optimizations/slide_hash_neon.h",
  12. "cpu_features.c",
  13. "cpu_features.h",
  14. "crc32.c",
  15. "crc32.h",
  16. "deflate.c",
  17. "deflate.h",
  18. "gzclose.c",
  19. "gzguts.h",
  20. "gzlib.c",
  21. "gzread.c",
  22. "gzwrite.c",
  23. "infback.c",
  24. "inffast.c",
  25. "inffast.h",
  26. "inffixed.h",
  27. "inflate.c",
  28. "inflate.h",
  29. "inftrees.c",
  30. "inftrees.h",
  31. "trees.c",
  32. "trees.h",
  33. "uncompr.c",
  34. "zconf.h",
  35. "zlib.h",
  36. "zutil.c",
  37. "zutil.h",
  38. ],
  39. hdrs = [
  40. "zlib.h",
  41. ],
  42. defines = [
  43. "CHROMIUM_ZLIB_NO_CHROMECONF",
  44. "CPU_NO_SIMD",
  45. ] + select({
  46. "@platforms//os:windows": [],
  47. "//conditions:default": [
  48. "HAVE_HIDDEN",
  49. ],
  50. }),
  51. include_prefix = "third_party/zlib",
  52. visibility = ["//visibility:public"],
  53. )
  54. cc_library(
  55. name = "zlib_compression_utils",
  56. srcs = [
  57. "google/compression_utils_portable.cc",
  58. ],
  59. hdrs = [
  60. "google/compression_utils_portable.h",
  61. ],
  62. include_prefix = "third_party/zlib",
  63. visibility = ["//visibility:public"],
  64. deps = [
  65. "//external:zlib",
  66. ],
  67. )