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 5cc_library( 6 name = "zlib", 7 srcs = [ 8 "adler32.c", 9 "chromeconf.h", 10 "compress.c", 11 "contrib/optimizations/insert_string.h", 12 "contrib/optimizations/slide_hash_neon.h", 13 "cpu_features.c", 14 "cpu_features.h", 15 "crc32.c", 16 "crc32.h", 17 "deflate.c", 18 "deflate.h", 19 "gzclose.c", 20 "gzguts.h", 21 "gzlib.c", 22 "gzread.c", 23 "gzwrite.c", 24 "infback.c", 25 "inffast.c", 26 "inffast.h", 27 "inffixed.h", 28 "inflate.c", 29 "inflate.h", 30 "inftrees.c", 31 "inftrees.h", 32 "trees.c", 33 "trees.h", 34 "uncompr.c", 35 "zconf.h", 36 "zlib.h", 37 "zutil.c", 38 "zutil.h", 39 ], 40 hdrs = [ 41 "zlib.h", 42 ], 43 defines = [ 44 "CHROMIUM_ZLIB_NO_CHROMECONF", 45 "CPU_NO_SIMD", 46 ] + select({ 47 "@platforms//os:windows": [], 48 "//conditions:default": [ 49 "HAVE_HIDDEN", 50 ], 51 }), 52 include_prefix = "third_party/zlib", 53 visibility = ["//visibility:public"], 54) 55 56cc_library( 57 name = "zlib_compression_utils", 58 srcs = [ 59 "google/compression_utils_portable.cc", 60 ], 61 hdrs = [ 62 "google/compression_utils_portable.h", 63 ], 64 include_prefix = "third_party/zlib", 65 visibility = ["//visibility:public"], 66 deps = [ 67 "//external:zlib", 68 ], 69) 70