OLD | NEW |
---|---|
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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
236 }], | 236 }], |
237 [ 'OS == "win" and clang==1', { | 237 [ 'OS == "win" and clang==1', { |
238 # Note: General clang warnings should go in the | 238 # Note: General clang warnings should go in the |
239 # clang_warning_flags block above. | 239 # clang_warning_flags block above. |
240 'msvs_settings': { | 240 'msvs_settings': { |
241 'VCCLCompilerTool': { | 241 'VCCLCompilerTool': { |
242 'AdditionalOptions': [ | 242 'AdditionalOptions': [ |
243 # See http://bugs.icu-project.org/trac/ticket/11122 | 243 # See http://bugs.icu-project.org/trac/ticket/11122 |
244 '-Wno-inline-new-delete', | 244 '-Wno-inline-new-delete', |
245 '-Wno-implicit-exception-spec-mismatch', | 245 '-Wno-implicit-exception-spec-mismatch', |
246 # ICU has some code with the pattern: | |
247 # if (found = uprv_getWindowsTimeZoneInfo(...)) | |
248 '-Wno-parentheses', | |
246 ], | 249 ], |
247 }, | 250 }, |
248 }, | 251 }, |
249 }], | 252 }], |
250 ], # conditions | 253 ], # conditions |
251 }, | 254 }, |
252 { | 255 { |
253 'target_name': 'icuuc', | 256 'target_name': 'icuuc', |
254 'type': '<(component)', | 257 'type': '<(component)', |
255 'sources': [ | 258 'sources': [ |
(...skipping 24 matching lines...) Expand all Loading... | |
280 # ICU prefers `a && b || c` over `(a && b) || c`. | 283 # ICU prefers `a && b || c` over `(a && b) || c`. |
281 '-Wno-logical-op-parentheses', | 284 '-Wno-logical-op-parentheses', |
282 # ICU has some `unsigned < 0` checks. | 285 # ICU has some `unsigned < 0` checks. |
283 '-Wno-tautological-compare', | 286 '-Wno-tautological-compare', |
284 # uresdata.c has switch(RES_GET_TYPE(x)) code. The | 287 # uresdata.c has switch(RES_GET_TYPE(x)) code. The |
285 # RES_GET_TYPE macro returns an UResType enum, but some switch | 288 # RES_GET_TYPE macro returns an UResType enum, but some switch |
286 # statement contains case values that aren't part of that | 289 # statement contains case values that aren't part of that |
287 # enum (e.g. URES_TABLE32 which is in UResInternalType). This | 290 # enum (e.g. URES_TABLE32 which is in UResInternalType). This |
288 # is on purpose. | 291 # is on purpose. |
289 '-Wno-switch', | 292 '-Wno-switch', |
293 # ICU has some code with the pattern: | |
294 # if (found = uprv_getWindowsTimeZoneInfo(...)) | |
295 '-Wno-parentheses', | |
Nico
2015/06/30 18:12:10
So this is Win-only in icui18n but global in icuuc
| |
290 ], | 296 ], |
291 }, | 297 }, |
292 'cflags': [ | 298 'cflags': [ |
293 # Since ICU wants to internally use its own deprecated APIs, | 299 # Since ICU wants to internally use its own deprecated APIs, |
294 # don't complain about it. | 300 # don't complain about it. |
295 '-Wno-deprecated-declarations', | 301 '-Wno-deprecated-declarations', |
296 '-Wno-unused-function', | 302 '-Wno-unused-function', |
297 ], | 303 ], |
298 'cflags_cc': [ | 304 'cflags_cc': [ |
299 '-frtti', | 305 '-frtti', |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
583 }, | 589 }, |
584 'includes': [ | 590 'includes': [ |
585 '../../build/shim_headers.gypi', | 591 '../../build/shim_headers.gypi', |
586 ], | 592 ], |
587 'toolsets': ['target'], | 593 'toolsets': ['target'], |
588 }, | 594 }, |
589 ], # targets | 595 ], # targets |
590 }], | 596 }], |
591 ], # conditions | 597 ], # conditions |
592 } | 598 } |
OLD | NEW |