• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2017 The Chromium 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
5import("//build_overrides/build.gni")
6
7if (build_with_chromium) {
8  static_library("zip") {
9    sources = [
10      "redact.h",
11      "zip.cc",
12      "zip.h",
13      "zip_internal.cc",
14      "zip_internal.h",
15      "zip_reader.cc",
16      "zip_reader.h",
17      "zip_writer.cc",
18      "zip_writer.h",
19    ]
20    deps = [
21      "//base",
22      "//base:i18n",
23      "//third_party/zlib:minizip",
24    ]
25  }
26
27  static_library("compression_utils") {
28    sources = [
29      "compression_utils.cc",
30      "compression_utils.h",
31    ]
32    deps = [
33      "//base",
34      "//third_party/zlib",
35    ]
36    public_deps = [ ":compression_utils_portable" ]
37  }
38}
39
40# This allows other users of Chromium's zlib library, but don't use Chromium's
41# //base, to reuse some boilerplate code.
42static_library("compression_utils_portable") {
43  sources = [
44    "compression_utils_portable.cc",
45    "compression_utils_portable.h",
46  ]
47  public_deps = [ "//third_party/zlib" ]
48}
49