Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: third_party/zlib/zlib.gyp

Issue 11632002: Use generated shim headers for zlib. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'conditions': [ 7 'conditions': [
8 [ 'OS=="none"', { 8 [ 'OS=="none"', {
9 # Because we have a patched zlib, we cannot use the system libz. 9 # Because we have a patched zlib, we cannot use the system libz.
10 # TODO(pvalchev): OpenBSD is purposefully left out, as the system 10 # TODO(pvalchev): OpenBSD is purposefully left out, as the system
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 ], 56 ],
57 }, 57 },
58 'conditions': [ 58 'conditions': [
59 ['OS!="win"', { 59 ['OS!="win"', {
60 'product_name': 'chrome_zlib', 60 'product_name': 'chrome_zlib',
61 }], ['OS=="android"', { 61 }], ['OS=="android"', {
62 'toolsets': ['target', 'host'], 62 'toolsets': ['target', 'host'],
63 }], 63 }],
64 ], 64 ],
65 }, { 65 }, {
66 'variables': {
67 'headers_root_path': '.',
68 'header_filenames': [
69 'zlib.h',
70 ],
71 },
72 'includes': [
73 '../../build/shim_headers.gypi',
74 ],
66 'direct_dependent_settings': { 75 'direct_dependent_settings': {
67 'defines': [ 76 'defines': [
68 'USE_SYSTEM_ZLIB', 77 'USE_SYSTEM_ZLIB',
69 ], 78 ],
70 }, 79 },
71 'defines': [
72 'USE_SYSTEM_ZLIB',
73 ],
74 'link_settings': { 80 'link_settings': {
75 'libraries': [ 81 'libraries': [
76 '-lz', 82 '-lz',
77 ], 83 ],
78 }, 84 },
79 }], 85 }],
80 ], 86 ],
81 }, 87 },
82 { 88 {
83 'target_name': 'minizip', 89 'target_name': 'minizip',
84 'type': 'static_library', 90 'type': 'static_library',
85 'conditions': [ 91 'conditions': [
86 ['use_system_minizip==0', { 92 ['use_system_minizip==0', {
87 'sources': [ 93 'sources': [
88 'contrib/minizip/ioapi.c', 94 'contrib/minizip/ioapi.c',
89 'contrib/minizip/ioapi.h', 95 'contrib/minizip/ioapi.h',
90 'contrib/minizip/iowin32.c', 96 'contrib/minizip/iowin32.c',
91 'contrib/minizip/iowin32.h', 97 'contrib/minizip/iowin32.h',
92 'contrib/minizip/unzip.c', 98 'contrib/minizip/unzip.c',
93 'contrib/minizip/unzip.h', 99 'contrib/minizip/unzip.h',
94 'contrib/minizip/zip.c', 100 'contrib/minizip/zip.c',
95 'contrib/minizip/zip.h', 101 'contrib/minizip/zip.h',
96 ], 102 ],
103 'dependencies': [
104 'zlib',
105 ],
97 'include_dirs': [ 106 'include_dirs': [
98 '.', 107 '.',
99 '../..', 108 '../..',
100 ], 109 ],
101 'direct_dependent_settings': { 110 'direct_dependent_settings': {
102 'include_dirs': [ 111 'include_dirs': [
103 '.', 112 '.',
104 ], 113 ],
105 }, 114 },
106 'conditions': [ 115 'conditions': [
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 ], 153 ],
145 }, 154 },
146 'cflags': [ 155 'cflags': [
147 '-Wno-parentheses-equality', 156 '-Wno-parentheses-equality',
148 ], 157 ],
149 }], 158 }],
150 ], 159 ],
151 } 160 }
152 ], 161 ],
153 } 162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698