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

Side by Side Diff: dart/runtime/bin/net/zlib.gyp

Issue 15371008: dart:io | Roll third_party/nss from Chromium to revision 199075. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 7 months 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 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 5 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
6 # for details. All rights reserved. Use of this source code is governed by a 6 # for details. All rights reserved. Use of this source code is governed by a
7 # BSD-style license that can be found in the LICENSE file. 7 # BSD-style license that can be found in the LICENSE file.
8 8
9 # This file is a modified copy of src/third_party/zlib/zlib.gyp from Chromium. 9 # This file is a modified copy of src/third_party/zlib/zlib.gyp from Chromium.
10 # Revision 169195 (this should agree with "nss_rev" in DEPS). 10 # Revision 199075 (this should agree with "nss_rev" in DEPS).
11 { 11 {
12 # Added by Dart. All Dart comments refer to the following block or line. 12 # Added by Dart. All Dart comments refer to the following block or line.
13 'includes': [ 13 'includes': [
14 '../../tools/gyp/runtime-configurations.gypi', 14 '../../tools/gyp/runtime-configurations.gypi',
15 '../../tools/gyp/nss_configurations.gypi', 15 '../../tools/gyp/nss_configurations.gypi',
16 ], 16 ],
17 'variables': { 17 'variables': {
18 # Added by Dart. 18 # Added by Dart.
19 'zlib_path': '../../../third_party/zlib', 19 'zlib_path': '../../../third_party/zlib',
20 'conditions': [
21 [ 'OS=="none"', {
22 # Because we have a patched zlib, we cannot use the system libz.
23 # TODO(pvalchev): OpenBSD is purposefully left out, as the system
24 # zlib brings up an incompatibility that breaks rendering.
25 'use_system_zlib%': 1,
26 }, {
27 'use_system_zlib%': 0,
28 }],
29 ],
30 'use_system_minizip%': 0,
31 }, 20 },
32 # Added by Dart. We do not indent, so diffs with the original are clearer. 21 # Added by Dart. We do not indent, so diffs with the original are clearer.
33 'conditions': [[ 'dart_io_support==1', { 22 'conditions': [[ 'dart_io_support==1', {
34 'targets': [ 23 'targets': [
35 { 24 {
36 'target_name': 'zlib_dart', # Added by Dart (the _dart postfix) 25 'target_name': 'zlib_dart', # Added by Dart (the _dart postfix)
37 'type': 'static_library', 26 'type': 'static_library',
27 # Changed by Dart: '<(zlib_directory)/' added to all paths.
28 'sources': [
29 '<(zlib_path)/adler32.c',
30 '<(zlib_path)/compress.c',
31 '<(zlib_path)/crc32.c',
32 '<(zlib_path)/crc32.h',
33 '<(zlib_path)/deflate.c',
34 '<(zlib_path)/deflate.h',
35 '<(zlib_path)/gzclose.c',
36 '<(zlib_path)/gzguts.h',
37 '<(zlib_path)/gzlib.c',
38 '<(zlib_path)/gzread.c',
39 '<(zlib_path)/gzwrite.c',
40 '<(zlib_path)/infback.c',
41 '<(zlib_path)/inffast.c',
42 '<(zlib_path)/inffast.h',
43 '<(zlib_path)/inffixed.h',
44 '<(zlib_path)/inflate.c',
45 '<(zlib_path)/inflate.h',
46 '<(zlib_path)/inftrees.c',
47 '<(zlib_path)/inftrees.h',
48 '<(zlib_path)/mozzconf.h',
49 '<(zlib_path)/trees.c',
50 '<(zlib_path)/trees.h',
51 '<(zlib_path)/uncompr.c',
52 '<(zlib_path)/zconf.h',
53 '<(zlib_path)/zlib.h',
54 '<(zlib_path)/zutil.c',
55 '<(zlib_path)/zutil.h',
56 ],
57 'include_dirs': [
58 '<(zlib_path)/.',
59 ],
60 'direct_dependent_settings': {
61 'include_dirs': [
62 '<(zlib_path)/.',
63 ],
64 },
38 'conditions': [ 65 'conditions': [
39 ['use_system_zlib==0', { 66 ['OS!="win"', {
40 # Changed by Dart: '<(zlib_directory)/' added to all paths. 67 'product_name': 'chrome_zlib',
41 'sources': [ 68 }], ['OS=="android"', {
42 '<(zlib_path)/adler32.c', 69 'toolsets': ['target', 'host'],
43 '<(zlib_path)/compress.c',
44 '<(zlib_path)/crc32.c',
45 '<(zlib_path)/crc32.h',
46 '<(zlib_path)/deflate.c',
47 '<(zlib_path)/deflate.h',
48 '<(zlib_path)/gzio.c',
49 '<(zlib_path)/infback.c',
50 '<(zlib_path)/inffast.c',
51 '<(zlib_path)/inffast.h',
52 '<(zlib_path)/inffixed.h',
53 '<(zlib_path)/inflate.c',
54 '<(zlib_path)/inflate.h',
55 '<(zlib_path)/inftrees.c',
56 '<(zlib_path)/inftrees.h',
57 '<(zlib_path)/mozzconf.h',
58 '<(zlib_path)/trees.c',
59 '<(zlib_path)/trees.h',
60 '<(zlib_path)/uncompr.c',
61 '<(zlib_path)/zconf.h',
62 '<(zlib_path)/zlib.h',
63 '<(zlib_path)/zutil.c',
64 '<(zlib_path)/zutil.h',
65 ],
66 'include_dirs': [
67 '<(zlib_path)/.',
68 ],
69 'direct_dependent_settings': {
70 'include_dirs': [
71 '<(zlib_path)/.',
72 ],
73 },
74 'conditions': [
75 ['OS!="win"', {
76 'product_name': 'chrome_zlib',
77 }], ['OS=="android"', {
78 'toolsets': ['target', 'host'],
79 }],
80 ],
81 }, {
82 'direct_dependent_settings': {
83 'defines': [
84 'USE_SYSTEM_ZLIB',
85 ],
86 },
87 'defines': [
88 'USE_SYSTEM_ZLIB',
89 ],
90 'link_settings': {
91 'libraries': [
92 '-lz',
93 ],
94 },
95 }], 70 }],
96 ], 71 ],
97 }, 72 },
98 { 73 {
99 'target_name': 'minizip_dart', # Added by Dart (the _dart postfix) 74 'target_name': 'minizip_dart', # Added by Dart (the _dart postfix)
100 'type': 'static_library', 75 'type': 'static_library',
76 'sources': [
77 '<(zlib_path)/contrib/minizip/ioapi.c',
78 '<(zlib_path)/contrib/minizip/ioapi.h',
79 '<(zlib_path)/contrib/minizip/iowin32.c',
80 '<(zlib_path)/contrib/minizip/iowin32.h',
81 '<(zlib_path)/contrib/minizip/unzip.c',
82 '<(zlib_path)/contrib/minizip/unzip.h',
83 '<(zlib_path)/contrib/minizip/zip.c',
84 '<(zlib_path)/contrib/minizip/zip.h',
85 ],
86 'dependencies': [
87 'zlib_dart',
88 ],
89 'include_dirs': [
90 '<(zlib_path)/.',
91 '<(zlib_path)/../..',
92 ],
93 'direct_dependent_settings': {
94 'include_dirs': [
95 '<(zlib_path)/.',
96 ],
97 },
101 'conditions': [ 98 'conditions': [
102 ['use_system_minizip==0', { 99 ['OS!="win"', {
103 'sources': [ 100 'sources!': [
104 '<(zlib_path)/contrib/minizip/ioapi.c', 101 '<(zlib_path)/contrib/minizip/iowin32.c'
105 '<(zlib_path)/contrib/minizip/ioapi.h',
106 '<(zlib_path)/contrib/minizip/iowin32.c',
107 '<(zlib_path)/contrib/minizip/iowin32.h',
108 '<(zlib_path)/contrib/minizip/unzip.c',
109 '<(zlib_path)/contrib/minizip/unzip.h',
110 '<(zlib_path)/contrib/minizip/zip.c',
111 '<(zlib_path)/contrib/minizip/zip.h',
112 ], 102 ],
113 'include_dirs': [ 103 }],
114 '<(zlib_path)/.', 104 ['OS=="android"', {
115 '<(zlib_path)/../..', 105 'toolsets': ['target', 'host'],
116 ],
117 'direct_dependent_settings': {
118 'include_dirs': [
119 '<(zlib_path)/.',
120 ],
121 },
122 'conditions': [
123 ['OS!="win"', {
124 'sources!': [
125 '<(zlib_path)/contrib/minizip/iowin32.c'
126 ],
127 }],
128 ['OS=="android"', {
129 'toolsets': ['target', 'host'],
130 }],
131 ],
132 }, {
133 'direct_dependent_settings': {
134 'defines': [
135 'USE_SYSTEM_MINIZIP',
136 ],
137 },
138 'defines': [
139 'USE_SYSTEM_MINIZIP',
140 ],
141 'link_settings': {
142 'libraries': [
143 '-lminizip',
144 ],
145 },
146 }], 106 }],
147 ['OS=="mac" or OS=="ios" or os_bsd==1 or OS=="android"', { 107 ['OS=="mac" or OS=="ios" or os_bsd==1 or OS=="android"', {
148 # Mac, Android and the BSDs don't have fopen64, ftello64, or 108 # Mac, Android and the BSDs don't have fopen64, ftello64, or
149 # fseeko64. We use fopen, ftell, and fseek instead on these 109 # fseeko64. We use fopen, ftell, and fseek instead on these
150 # systems. 110 # systems.
151 'defines': [ 111 'defines': [
152 'USE_FILE32API' 112 'USE_FILE32API'
153 ], 113 ],
154 }], 114 }],
155 ['clang==1', { 115 ['clang==1', {
156 'xcode_settings': { 116 'xcode_settings': {
157 'WARNING_CFLAGS': [ 117 'WARNING_CFLAGS': [
158 # zlib uses `if ((a == b))` for some reason. 118 # zlib uses `if ((a == b))` for some reason.
159 '-Wno-parentheses-equality', 119 '-Wno-parentheses-equality',
160 ], 120 ],
161 }, 121 },
162 'cflags': [ 122 'cflags': [
163 '-Wno-parentheses-equality', 123 '-Wno-parentheses-equality',
164 ], 124 ],
165 }], 125 }],
166 ], 126 ],
167 } 127 },
128 # Changed by Dart: Omit target 'zip'
168 ], 129 ],
169 }]], 130 }]],
170 } 131 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698