2021-06-28 15:45:08 +00:00
|
|
|
# Copyright 2021 the V8 project authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "zlib",
|
|
|
|
srcs = [
|
|
|
|
"adler32.c",
|
|
|
|
"chromeconf.h",
|
|
|
|
"compress.c",
|
|
|
|
"contrib/optimizations/insert_string.h",
|
|
|
|
"cpu_features.c",
|
|
|
|
"cpu_features.h",
|
|
|
|
"crc32.c",
|
|
|
|
"crc32.h",
|
|
|
|
"deflate.c",
|
|
|
|
"deflate.h",
|
|
|
|
"gzclose.c",
|
|
|
|
"gzguts.h",
|
|
|
|
"gzlib.c",
|
|
|
|
"gzread.c",
|
|
|
|
"gzwrite.c",
|
|
|
|
"infback.c",
|
|
|
|
"inffast.c",
|
|
|
|
"inffast.h",
|
|
|
|
"inffixed.h",
|
|
|
|
"inflate.c",
|
|
|
|
"inflate.h",
|
|
|
|
"inftrees.c",
|
|
|
|
"inftrees.h",
|
2022-05-13 06:19:33 +00:00
|
|
|
"slide_hash_simd.h",
|
2021-06-28 15:45:08 +00:00
|
|
|
"trees.c",
|
|
|
|
"trees.h",
|
|
|
|
"uncompr.c",
|
|
|
|
"zconf.h",
|
|
|
|
"zlib.h",
|
|
|
|
"zutil.c",
|
|
|
|
"zutil.h",
|
2022-01-10 20:09:48 +00:00
|
|
|
],
|
2021-06-28 15:45:08 +00:00
|
|
|
hdrs = [
|
|
|
|
"zlib.h",
|
|
|
|
],
|
|
|
|
defines = [
|
|
|
|
"CHROMIUM_ZLIB_NO_CHROMECONF",
|
|
|
|
"CPU_NO_SIMD",
|
2021-11-08 15:57:55 +00:00
|
|
|
] + select({
|
|
|
|
"@platforms//os:windows": [],
|
|
|
|
"//conditions:default": [
|
|
|
|
"HAVE_HIDDEN",
|
|
|
|
],
|
|
|
|
}),
|
2022-01-10 21:23:25 +00:00
|
|
|
include_prefix = "third_party/zlib",
|
2021-06-28 15:45:08 +00:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|
2022-01-10 20:09:48 +00:00
|
|
|
|
|
|
|
cc_library(
|
|
|
|
name = "zlib_compression_utils",
|
|
|
|
srcs = [
|
|
|
|
"google/compression_utils_portable.cc",
|
|
|
|
],
|
|
|
|
hdrs = [
|
|
|
|
"google/compression_utils_portable.h",
|
|
|
|
],
|
|
|
|
include_prefix = "third_party/zlib",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
2022-01-10 20:39:42 +00:00
|
|
|
"//external:zlib",
|
2022-01-10 20:09:48 +00:00
|
|
|
],
|
|
|
|
)
|