11cb0ef41Sopenharmony_ci# Copyright 2021 the V8 project authors. All rights reserved. 21cb0ef41Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be 31cb0ef41Sopenharmony_ci# found in the LICENSE file. 41cb0ef41Sopenharmony_ci 51cb0ef41Sopenharmony_cicc_library( 61cb0ef41Sopenharmony_ci name = "zlib", 71cb0ef41Sopenharmony_ci srcs = [ 81cb0ef41Sopenharmony_ci "adler32.c", 91cb0ef41Sopenharmony_ci "chromeconf.h", 101cb0ef41Sopenharmony_ci "compress.c", 111cb0ef41Sopenharmony_ci "contrib/optimizations/insert_string.h", 121cb0ef41Sopenharmony_ci "contrib/optimizations/slide_hash_neon.h", 131cb0ef41Sopenharmony_ci "cpu_features.c", 141cb0ef41Sopenharmony_ci "cpu_features.h", 151cb0ef41Sopenharmony_ci "crc32.c", 161cb0ef41Sopenharmony_ci "crc32.h", 171cb0ef41Sopenharmony_ci "deflate.c", 181cb0ef41Sopenharmony_ci "deflate.h", 191cb0ef41Sopenharmony_ci "gzclose.c", 201cb0ef41Sopenharmony_ci "gzguts.h", 211cb0ef41Sopenharmony_ci "gzlib.c", 221cb0ef41Sopenharmony_ci "gzread.c", 231cb0ef41Sopenharmony_ci "gzwrite.c", 241cb0ef41Sopenharmony_ci "infback.c", 251cb0ef41Sopenharmony_ci "inffast.c", 261cb0ef41Sopenharmony_ci "inffast.h", 271cb0ef41Sopenharmony_ci "inffixed.h", 281cb0ef41Sopenharmony_ci "inflate.c", 291cb0ef41Sopenharmony_ci "inflate.h", 301cb0ef41Sopenharmony_ci "inftrees.c", 311cb0ef41Sopenharmony_ci "inftrees.h", 321cb0ef41Sopenharmony_ci "trees.c", 331cb0ef41Sopenharmony_ci "trees.h", 341cb0ef41Sopenharmony_ci "uncompr.c", 351cb0ef41Sopenharmony_ci "zconf.h", 361cb0ef41Sopenharmony_ci "zlib.h", 371cb0ef41Sopenharmony_ci "zutil.c", 381cb0ef41Sopenharmony_ci "zutil.h", 391cb0ef41Sopenharmony_ci ], 401cb0ef41Sopenharmony_ci hdrs = [ 411cb0ef41Sopenharmony_ci "zlib.h", 421cb0ef41Sopenharmony_ci ], 431cb0ef41Sopenharmony_ci defines = [ 441cb0ef41Sopenharmony_ci "CHROMIUM_ZLIB_NO_CHROMECONF", 451cb0ef41Sopenharmony_ci "CPU_NO_SIMD", 461cb0ef41Sopenharmony_ci ] + select({ 471cb0ef41Sopenharmony_ci "@platforms//os:windows": [], 481cb0ef41Sopenharmony_ci "//conditions:default": [ 491cb0ef41Sopenharmony_ci "HAVE_HIDDEN", 501cb0ef41Sopenharmony_ci ], 511cb0ef41Sopenharmony_ci }), 521cb0ef41Sopenharmony_ci include_prefix = "third_party/zlib", 531cb0ef41Sopenharmony_ci visibility = ["//visibility:public"], 541cb0ef41Sopenharmony_ci) 551cb0ef41Sopenharmony_ci 561cb0ef41Sopenharmony_cicc_library( 571cb0ef41Sopenharmony_ci name = "zlib_compression_utils", 581cb0ef41Sopenharmony_ci srcs = [ 591cb0ef41Sopenharmony_ci "google/compression_utils_portable.cc", 601cb0ef41Sopenharmony_ci ], 611cb0ef41Sopenharmony_ci hdrs = [ 621cb0ef41Sopenharmony_ci "google/compression_utils_portable.h", 631cb0ef41Sopenharmony_ci ], 641cb0ef41Sopenharmony_ci include_prefix = "third_party/zlib", 651cb0ef41Sopenharmony_ci visibility = ["//visibility:public"], 661cb0ef41Sopenharmony_ci deps = [ 671cb0ef41Sopenharmony_ci "//external:zlib", 681cb0ef41Sopenharmony_ci ], 691cb0ef41Sopenharmony_ci) 70