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

Side by Side Diff: icu.gyp

Issue 433183002: Update clang warnings after r287092. (Closed) Base URL: http://src.chromium.org/chrome/trunk/deps/third_party/icu52/
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'includes': [ 6 'includes': [
7 'icu.gypi', 7 'icu.gypi',
8 ], 8 ],
9 'variables': { 9 'variables': {
10 'use_system_icu%': 0, 10 'use_system_icu%': 0,
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 'U_I18N_IMPLEMENTATION', 179 'U_I18N_IMPLEMENTATION',
180 ], 180 ],
181 'dependencies': [ 181 'dependencies': [
182 'icuuc', 182 'icuuc',
183 ], 183 ],
184 'direct_dependent_settings': { 184 'direct_dependent_settings': {
185 'include_dirs': [ 185 'include_dirs': [
186 'source/i18n', 186 'source/i18n',
187 ], 187 ],
188 }, 188 },
189 'variables': {
190 'clang_warning_flags': [
191 # ICU uses its own deprecated functions.
192 '-Wno-deprecated-declarations',
193 # ICU prefers `a && b || c` over `(a && b) || c`.
194 '-Wno-logical-op-parentheses',
195 # ICU has some `unsigned < 0` checks.
196 '-Wno-tautological-compare',
197 # Looks like a real issue, see http://crbug.com/114660
198 '-Wno-return-type-c-linkage',
199 ],
200 },
189 # Since ICU wants to internally use its own deprecated APIs, don't 201 # Since ICU wants to internally use its own deprecated APIs, don't
190 # complain about it. 202 # complain about it.
191 'cflags': [ 203 'cflags': [
192 '-Wno-deprecated-declarations', 204 '-Wno-deprecated-declarations',
193 ], 205 ],
194 'cflags_cc': [ 206 'cflags_cc': [
195 '-frtti', 207 '-frtti',
196 ], 208 ],
197 'xcode_settings': { 209 'xcode_settings': {
198 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti 210 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti
199 }, 211 },
200 'msvs_settings': { 212 'msvs_settings': {
201 'VCCLCompilerTool': { 213 'VCCLCompilerTool': {
202 'RuntimeTypeInfo': 'true', 214 'RuntimeTypeInfo': 'true',
203 }, 215 },
204 }, 216 },
205 'conditions': [ 217 'conditions': [
206 [ 'use_system_icu==1 and want_separate_host_toolset==1', { 218 [ 'use_system_icu==1 and want_separate_host_toolset==1', {
207 'toolsets': ['host'], 219 'toolsets': ['host'],
208 }], 220 }],
209 [ 'use_system_icu==0 and want_separate_host_toolset==1', { 221 [ 'use_system_icu==0 and want_separate_host_toolset==1', {
210 'toolsets': ['host', 'target'], 222 'toolsets': ['host', 'target'],
211 }], 223 }],
212 [ 'use_system_icu==0 and want_separate_host_toolset==0', { 224 [ 'use_system_icu==0 and want_separate_host_toolset==0', {
213 'toolsets': ['target'], 225 'toolsets': ['target'],
214 }], 226 }],
215 ['clang==1', {
216 'xcode_settings': {
217 'WARNING_CFLAGS': [
218 # ICU uses its own deprecated functions.
219 '-Wno-deprecated-declarations',
220 # ICU prefers `a && b || c` over `(a && b) || c`.
221 '-Wno-logical-op-parentheses',
222 # ICU has some `unsigned < 0` checks.
223 '-Wno-tautological-compare',
224 # Looks like a real issue, see http://crbug.com/114660
225 '-Wno-return-type-c-linkage',
226 ],
227 },
228 'cflags': [
229 '-Wno-deprecated-declarations',
230 '-Wno-logical-op-parentheses',
231 '-Wno-tautological-compare',
232 '-Wno-return-type-c-linkage',
233 ],
234 }],
235 ['OS == "android" and clang==0', { 227 ['OS == "android" and clang==0', {
236 # Disable sincos() optimization to avoid a linker error since 228 # Disable sincos() optimization to avoid a linker error since
237 # Android's math library doesn't have sincos(). Either 229 # Android's math library doesn't have sincos(). Either
238 # -fno-builtin-sin or -fno-builtin-cos works. 230 # -fno-builtin-sin or -fno-builtin-cos works.
239 'cflags': [ 231 'cflags': [
240 '-fno-builtin-sin', 232 '-fno-builtin-sin',
241 ], 233 ],
242 }], 234 }],
243 ['OS == "android" and use_system_stlport == 1', { 235 ['OS == "android" and use_system_stlport == 1', {
244 'target_conditions': [ 236 'target_conditions': [
(...skipping 30 matching lines...) Expand all
275 'source/common', 267 'source/common',
276 ], 268 ],
277 'conditions': [ 269 'conditions': [
278 [ 'component=="static_library"', { 270 [ 'component=="static_library"', {
279 'defines': [ 271 'defines': [
280 'U_STATIC_IMPLEMENTATION', 272 'U_STATIC_IMPLEMENTATION',
281 ], 273 ],
282 }], 274 }],
283 ], 275 ],
284 }, 276 },
277 'variables': {
278 'clang_warning_flags': [
279 # ICU uses its own deprecated functions.
280 '-Wno-deprecated-declarations',
281 # ICU prefers `a && b || c` over `(a && b) || c`.
282 '-Wno-logical-op-parentheses',
283 # ICU has some `unsigned < 0` checks.
284 '-Wno-tautological-compare',
285 # uresdata.c has switch(RES_GET_TYPE(x)) code. The
286 # RES_GET_TYPE macro returns an UResType enum, but some switch
287 # statement contains case values that aren't part of that
288 # enum (e.g. URES_TABLE32 which is in UResInternalType). This
289 # is on purpose.
290 '-Wno-switch',
291 ],
292 },
285 'cflags': [ 293 'cflags': [
286 # Since ICU wants to internally use its own deprecated APIs, 294 # Since ICU wants to internally use its own deprecated APIs,
287 # don't complain about it. 295 # don't complain about it.
288 '-Wno-deprecated-declarations', 296 '-Wno-deprecated-declarations',
289 '-Wno-unused-function', 297 '-Wno-unused-function',
290 ], 298 ],
291 'cflags_cc': [ 299 'cflags_cc': [
292 '-frtti', 300 '-frtti',
293 ], 301 ],
294 'xcode_settings': { 302 'xcode_settings': {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 '<(android_src)/abi/cpp/include', 340 '<(android_src)/abi/cpp/include',
333 ], 341 ],
334 'link_settings': { 342 'link_settings': {
335 'libraries': [ 343 'libraries': [
336 '-lgabi++', 344 '-lgabi++',
337 ], 345 ],
338 }, 346 },
339 }], 347 }],
340 ], 348 ],
341 }], 349 }],
342 ['clang==1', {
343 'xcode_settings': {
344 'WARNING_CFLAGS': [
345 # ICU uses its own deprecated functions.
346 '-Wno-deprecated-declarations',
347 # ICU prefers `a && b || c` over `(a && b) || c`.
348 '-Wno-logical-op-parentheses',
349 # ICU has some `unsigned < 0` checks.
350 '-Wno-tautological-compare',
351 # uresdata.c has switch(RES_GET_TYPE(x)) code. The
352 # RES_GET_TYPE macro returns an UResType enum, but some switch
353 # statement contains case values that aren't part of that
354 # enum (e.g. URES_TABLE32 which is in UResInternalType). This
355 # is on purpose.
356 '-Wno-switch',
357 ],
358 },
359 'cflags': [
360 '-Wno-deprecated-declarations',
361 '-Wno-logical-op-parentheses',
362 '-Wno-tautological-compare',
363 '-Wno-switch',
364 ],
365 }],
366 ], # conditions 350 ], # conditions
367 }, 351 },
368 ], # targets 352 ], # targets
369 }], 353 }],
370 ['use_system_icu==1', { 354 ['use_system_icu==1', {
371 'targets': [ 355 'targets': [
372 { 356 {
373 'target_name': 'system_icu', 357 'target_name': 'system_icu',
374 'type': 'none', 358 'type': 'none',
375 'conditions': [ 359 'conditions': [
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 }, 595 },
612 'includes': [ 596 'includes': [
613 '../../build/shim_headers.gypi', 597 '../../build/shim_headers.gypi',
614 ], 598 ],
615 'toolsets': ['target'], 599 'toolsets': ['target'],
616 }, 600 },
617 ], # targets 601 ], # targets
618 }], 602 }],
619 ], # conditions 603 ], # conditions
620 } 604 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698