Remove DownloadImage method from FaviconTabHelper
[chromium-blink-merge.git] / third_party / zlib / zlib.gyp
blobe04acbd4d8354bcf0c5d1070bcb06e898a9ad857
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.
6   'variables': {
7     'conditions': [
8       [ 'OS=="none"', {
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,
13       }, {
14         'use_system_zlib%': 0,
15       }],
16     ],
17     'use_system_minizip%': 0,
18   },
19   'targets': [
20     {
21       'target_name': 'zlib',
22       'type': 'static_library',
23       'conditions': [
24         ['use_system_zlib==0', {
25           'sources': [
26             'adler32.c',
27             'compress.c',
28             'crc32.c',
29             'crc32.h',
30             'deflate.c',
31             'deflate.h',
32             'gzio.c',
33             'infback.c',
34             'inffast.c',
35             'inffast.h',
36             'inffixed.h',
37             'inflate.c',
38             'inflate.h',
39             'inftrees.c',
40             'inftrees.h',
41             'mozzconf.h',
42             'trees.c',
43             'trees.h',
44             'uncompr.c',
45             'zconf.h',
46             'zlib.h',
47             'zutil.c',
48             'zutil.h',
49           ],
50           'include_dirs': [
51             '.',
52           ],
53           'direct_dependent_settings': {
54             'include_dirs': [
55               '.',
56             ],
57           },
58           'conditions': [
59             ['OS!="win"', {
60               'product_name': 'chrome_zlib',
61             }], ['OS=="android"', {
62               'toolsets': ['target', 'host'],
63             }],
64           ],
65         }, {
66           'direct_dependent_settings': {
67             'defines': [
68               'USE_SYSTEM_ZLIB',
69             ],
70           },
71           'defines': [
72             'USE_SYSTEM_ZLIB',
73           ],
74           'link_settings': {
75             'libraries': [
76               '-lz',
77             ],
78           },
79         }],
80       ],
81     },
82     {
83       'target_name': 'minizip',
84       'type': 'static_library',
85       'conditions': [
86         ['use_system_minizip==0', {
87           'sources': [
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',
96           ],
97           'include_dirs': [
98             '.',
99             '../..',
100           ],
101           'direct_dependent_settings': {
102             'include_dirs': [
103               '.',
104             ],
105           },
106           'conditions': [
107             ['OS!="win"', {
108               'sources!': [
109                 'contrib/minizip/iowin32.c'
110               ],
111             }],
112             ['OS=="android"', {
113               'toolsets': ['target', 'host'],
114             }],
115           ],
116         }, {
117           'direct_dependent_settings': {
118             'defines': [
119               'USE_SYSTEM_MINIZIP',
120             ],
121           },
122           'defines': [
123             'USE_SYSTEM_MINIZIP',
124           ],
125           'link_settings': {
126             'libraries': [
127               '-lminizip',
128             ],
129           },
130         }],
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
134           # systems.
135           'defines': [
136             'USE_FILE32API'
137           ],
138         }],
139         ['clang==1', {
140           'xcode_settings': {
141             'WARNING_CFLAGS': [
142               # zlib uses `if ((a == b))` for some reason.
143               '-Wno-parentheses-equality',
144             ],
145           },
146           'cflags': [
147             '-Wno-parentheses-equality',
148           ],
149         }],
150       ],
151     }
152   ],