1 # Copyright (c) 2013 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.
5 config("zlib_config") {
9 static_library("zlib") {
13 # Don't stomp on "libzlib" on other platforms.
14 output_name = "chrome_zlib"
47 configs -= "//build/config/compiler:chromium_code"
48 configs += "//build/config/compiler:no_chromium_code"
50 direct_dependent_configs = [ ":zlib_config" ]
53 static_library("minizip") {
56 "contrib/minizip/ioapi.c",
57 "contrib/minizip/ioapi.h",
58 "contrib/minizip/iowin32.c",
59 "contrib/minizip/iowin32.h",
60 "contrib/minizip/unzip.c",
61 "contrib/minizip/unzip.h",
62 "contrib/minizip/zip.c",
63 "contrib/minizip/zip.h",
68 "contrib/minizip/iowin32.c",
69 "contrib/minizip/iowin32.h",
71 } else if (is_mac || is_ios || is_android) {
72 # Mac, Android and the BSDs don't have fopen64, ftello64, or fseeko64. We
73 # use fopen, ftell, and fseek instead on these systems.
74 defines = [ "USE_FILE32API" ]
78 # zlib uses `if ((a == b))` for some reason.
79 cflags = [ "-Wno-parentheses-equality" ]
84 configs -= "//build/config/compiler:chromium_code"
85 configs += "//build/config/compiler:no_chromium_code"
86 direct_dependent_configs = [ ":zlib_config" ]
89 static_library("zip") {
94 "google/zip_internal.cc",
95 "google/zip_internal.h",
96 "google/zip_reader.cc",
97 "google/zip_reader.h",