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") {
11 # Don't stomp on "libzlib" on other platforms.
12 output_name = "chrome_zlib"
45 configs -= [ "//build/config/compiler:chromium_code" ]
46 configs += [ "//build/config/compiler:no_chromium_code" ]
48 direct_dependent_configs = [ ":zlib_config" ]
51 static_library("minizip") {
53 "contrib/minizip/ioapi.c",
54 "contrib/minizip/ioapi.h",
55 "contrib/minizip/iowin32.c",
56 "contrib/minizip/iowin32.h",
57 "contrib/minizip/unzip.c",
58 "contrib/minizip/unzip.h",
59 "contrib/minizip/zip.c",
60 "contrib/minizip/zip.h",
65 "contrib/minizip/iowin32.c",
66 "contrib/minizip/iowin32.h",
69 if (is_mac || is_ios || is_android) {
70 # Mac, Android and the BSDs don't have fopen64, ftello64, or fseeko64. We
71 # use fopen, ftell, and fseek instead on these systems.
72 defines = [ "USE_FILE32API" ]
76 # zlib uses `if ((a == b))` for some reason.
77 cflags = [ "-Wno-parentheses-equality" ]
82 configs -= [ "//build/config/compiler:chromium_code" ]
83 configs += [ "//build/config/compiler:no_chromium_code" ]
84 direct_dependent_configs = [ ":zlib_config" ]
88 static_library("zip") {
92 "google/zip_internal.cc",
93 "google/zip_internal.h",
94 "google/zip_reader.cc",
95 "google/zip_reader.h",