• 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      "zip.cc",
11      "zip.h",
12      "zip_internal.cc",
13      "zip_internal.h",
14      "zip_reader.cc",
15      "zip_reader.h",
16      "zip_writer.cc",
17      "zip_writer.h",
18    ]
19    deps = [
20      "//base",
21      "//third_party/zlib:minizip",
22    ]
23  }
24
25  static_library("compression_utils") {
26    sources = [
27      "compression_utils.cc",
28      "compression_utils.h",
29    ]
30    deps = [
31      ":compression_utils_portable",
32      "//base",
33      "//third_party/zlib",
34    ]
35  }
36}
37
38# This allows other users of Chromium's zlib library, but don't use Chromium's
39# //base, to reuse some boilerplate code.
40static_library("compression_utils_portable") {
41  sources = [
42    "compression_utils_portable.cc",
43    "compression_utils_portable.h",
44  ]
45  public_deps = [ "//third_party/zlib" ]
46}
47