1 # Copyright (c) 2012 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.
9 # Because we have a patched zlib, we cannot use the system libz.
10 # TODO(pvalchev): OpenBSD is purposefully left out, as the system
11 # zlib brings up an incompatibility that breaks rendering.
12 'use_system_zlib%': 1,
14 'use_system_zlib%': 0,
17 'use_system_minizip%': 0,
21 'target_name': 'zlib',
22 'type': 'static_library',
24 ['use_system_zlib==0', {
53 'direct_dependent_settings': {
60 'product_name': 'chrome_zlib',
61 }], ['OS=="android"', {
62 'toolsets': ['target', 'host'],
66 'direct_dependent_settings': {
83 'target_name': 'minizip',
84 'type': 'static_library',
86 ['use_system_minizip==0', {
88 'contrib/minizip/ioapi.c',
89 'contrib/minizip/ioapi.h',
90 'contrib/minizip/iowin32.c',
91 'contrib/minizip/iowin32.h',
92 'contrib/minizip/unzip.c',
93 'contrib/minizip/unzip.h',
94 'contrib/minizip/zip.c',
95 'contrib/minizip/zip.h',
101 'direct_dependent_settings': {
109 'contrib/minizip/iowin32.c'
113 'toolsets': ['target', 'host'],
117 'direct_dependent_settings': {
119 'USE_SYSTEM_MINIZIP',
123 'USE_SYSTEM_MINIZIP',
131 ['OS=="mac" or OS=="ios" or os_bsd==1 or OS=="android"', {
132 # Mac, Android and the BSDs don't have fopen64, ftello64, or
133 # fseeko64. We use fopen, ftell, and fseek instead on these
142 # zlib uses `if ((a == b))` for some reason.
143 '-Wno-parentheses-equality',
147 '-Wno-parentheses-equality',