11cb0ef41Sopenharmony_ci# Copyright 2017 The Chromium Authors 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_ciimport("//build_overrides/build.gni") 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciif (build_with_chromium && is_ios) { 81cb0ef41Sopenharmony_ci import("//build/config/ios/bundle_data_from_filelist.gni") 91cb0ef41Sopenharmony_ci} 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ciif (build_with_chromium) { 121cb0ef41Sopenharmony_ci static_library("zip") { 131cb0ef41Sopenharmony_ci sources = [ 141cb0ef41Sopenharmony_ci "redact.h", 151cb0ef41Sopenharmony_ci "zip.cc", 161cb0ef41Sopenharmony_ci "zip.h", 171cb0ef41Sopenharmony_ci "zip_internal.cc", 181cb0ef41Sopenharmony_ci "zip_internal.h", 191cb0ef41Sopenharmony_ci "zip_reader.cc", 201cb0ef41Sopenharmony_ci "zip_reader.h", 211cb0ef41Sopenharmony_ci "zip_writer.cc", 221cb0ef41Sopenharmony_ci "zip_writer.h", 231cb0ef41Sopenharmony_ci ] 241cb0ef41Sopenharmony_ci deps = [ 251cb0ef41Sopenharmony_ci "..:minizip", 261cb0ef41Sopenharmony_ci "//base", 271cb0ef41Sopenharmony_ci "//base:i18n", 281cb0ef41Sopenharmony_ci ] 291cb0ef41Sopenharmony_ci } 301cb0ef41Sopenharmony_ci 311cb0ef41Sopenharmony_ci static_library("compression_utils") { 321cb0ef41Sopenharmony_ci sources = [ 331cb0ef41Sopenharmony_ci "compression_utils.cc", 341cb0ef41Sopenharmony_ci "compression_utils.h", 351cb0ef41Sopenharmony_ci ] 361cb0ef41Sopenharmony_ci deps = [ 371cb0ef41Sopenharmony_ci "..", 381cb0ef41Sopenharmony_ci "//base", 391cb0ef41Sopenharmony_ci ] 401cb0ef41Sopenharmony_ci public_deps = [ ":compression_utils_portable" ] 411cb0ef41Sopenharmony_ci } 421cb0ef41Sopenharmony_ci 431cb0ef41Sopenharmony_ci if (is_ios) { 441cb0ef41Sopenharmony_ci bundle_data_from_filelist("zlib_pak_bundle_data") { 451cb0ef41Sopenharmony_ci testonly = true 461cb0ef41Sopenharmony_ci filelist_name = "test_data.filelist" 471cb0ef41Sopenharmony_ci } 481cb0ef41Sopenharmony_ci } 491cb0ef41Sopenharmony_ci} 501cb0ef41Sopenharmony_ci 511cb0ef41Sopenharmony_ci# This allows other users of Chromium's zlib library, but don't use Chromium's 521cb0ef41Sopenharmony_ci# //base, to reuse some boilerplate code. 531cb0ef41Sopenharmony_cistatic_library("compression_utils_portable") { 541cb0ef41Sopenharmony_ci sources = [ 551cb0ef41Sopenharmony_ci "compression_utils_portable.cc", 561cb0ef41Sopenharmony_ci "compression_utils_portable.h", 571cb0ef41Sopenharmony_ci ] 581cb0ef41Sopenharmony_ci public_deps = [ ".." ] 591cb0ef41Sopenharmony_ci} 60