OLD | NEW |
---|---|
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'use_system_icu%': 0, | 7 'use_system_icu%': 0, |
8 'icu_use_data_file_flag%': 0, | 8 'icu_use_data_file_flag%': 0, |
9 }, | 9 }, |
10 'target_defaults': { | 10 'target_defaults': { |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
276 'cflags': [ | 276 'cflags': [ |
277 '-Wno-deprecated-declarations', | 277 '-Wno-deprecated-declarations', |
278 ], | 278 ], |
279 'cflags_cc': [ | 279 'cflags_cc': [ |
280 '-frtti', | 280 '-frtti', |
281 ], | 281 ], |
282 }], | 282 }], |
283 ['OS == "mac"', { | 283 ['OS == "mac"', { |
284 'xcode_settings': { | 284 'xcode_settings': { |
285 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti | 285 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti |
286 } | 286 }, |
287 }], | 287 }], |
288 ['OS == "win"', { | 288 ['OS == "win"', { |
289 'msvs_settings': { | 289 'msvs_settings': { |
290 'VCCLCompilerTool': { | 290 'VCCLCompilerTool': { |
291 'RuntimeTypeInfo': 'true', | 291 'RuntimeTypeInfo': 'true', |
292 }, | 292 }, |
293 } | 293 } |
294 }], | 294 }], |
295 ['OS == "android"', { | 295 ['OS == "android"', { |
296 'include_dirs': [ | 296 'include_dirs': [ |
(...skipping 16 matching lines...) Expand all Loading... | |
313 }], | 313 }], |
314 ['target_arch=="ia32"', { | 314 ['target_arch=="ia32"', { |
315 'link_settings': { | 315 'link_settings': { |
316 'libraries': [ | 316 'libraries': [ |
317 '<(android_ndk_root)/sources/cxx-stl/gabi++/libs/x86/libga bi++_static.a', | 317 '<(android_ndk_root)/sources/cxx-stl/gabi++/libs/x86/libga bi++_static.a', |
318 ] | 318 ] |
319 }, | 319 }, |
320 }], | 320 }], |
321 ], | 321 ], |
322 }], | 322 }], |
323 ['clang==1', { | |
324 'xcode_settings': { | |
325 'WARNING_CFLAGS': [ | |
326 # ICU uses its own deprecated functions. | |
327 '-Wno-deprecated-declarations', | |
328 # ICU prefers `a && b || c` over `(a && b) || c`. | |
329 '-Wno-logical-op-parentheses', | |
330 # ICU has some `unsigned < 0` checks. | |
331 '-Wno-tautological-compare', | |
332 # uspoof.h has a U_NAMESPACE_USE macro. That's a bug, | |
333 # the header should use U_NAMESPACE_BEGIN instead. | |
334 '-Wno-header-hygiene', | |
Evan Martin
2012/01/17 19:12:54
This one makes me sad. It's spotting a real bug.
| |
335 ], | |
336 }, | |
337 'cflags': [ | |
338 '-Wno-deprecated-declarations', | |
339 '-Wno-logical-op-parentheses', | |
340 '-Wno-tautological-compare', | |
341 '-Wno-header-hygiene', | |
342 ], | |
343 }], | |
323 ], | 344 ], |
324 }, | 345 }, |
325 { | 346 { |
326 'target_name': 'icuuc', | 347 'target_name': 'icuuc', |
327 'type': '<(component)', | 348 'type': '<(component)', |
328 'sources': [ | 349 'sources': [ |
329 'source/common/bmpset.cpp', | 350 'source/common/bmpset.cpp', |
330 'source/common/brkeng.cpp', | 351 'source/common/brkeng.cpp', |
331 'source/common/brkiter.cpp', | 352 'source/common/brkiter.cpp', |
332 'source/common/bytestream.cpp', | 353 'source/common/bytestream.cpp', |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
517 '-Wno-deprecated-declarations', | 538 '-Wno-deprecated-declarations', |
518 '-Wno-unused-function', | 539 '-Wno-unused-function', |
519 ], | 540 ], |
520 'cflags_cc': [ | 541 'cflags_cc': [ |
521 '-frtti', | 542 '-frtti', |
522 ], | 543 ], |
523 }], | 544 }], |
524 ['OS == "mac"', { | 545 ['OS == "mac"', { |
525 'xcode_settings': { | 546 'xcode_settings': { |
526 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti | 547 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti |
527 } | 548 }, |
528 }], | 549 }], |
529 ['OS == "win"', { | 550 ['OS == "win"', { |
530 'msvs_settings': { | 551 'msvs_settings': { |
531 'VCCLCompilerTool': { | 552 'VCCLCompilerTool': { |
532 'RuntimeTypeInfo': 'true', | 553 'RuntimeTypeInfo': 'true', |
533 }, | 554 }, |
534 } | 555 } |
535 }], | 556 }], |
536 ['OS == "android"', { | 557 ['OS == "android"', { |
537 'include_dirs': [ | 558 'include_dirs': [ |
(...skipping 16 matching lines...) Expand all Loading... | |
554 }], | 575 }], |
555 ['target_arch=="ia32"', { | 576 ['target_arch=="ia32"', { |
556 'link_settings': { | 577 'link_settings': { |
557 'libraries': [ | 578 'libraries': [ |
558 '<(android_ndk_root)/sources/cxx-stl/gabi++/libs/x86/libga bi++_static.a', | 579 '<(android_ndk_root)/sources/cxx-stl/gabi++/libs/x86/libga bi++_static.a', |
559 ] | 580 ] |
560 }, | 581 }, |
561 }], | 582 }], |
562 ], | 583 ], |
563 }], | 584 }], |
585 ['clang==1', { | |
586 'xcode_settings': { | |
587 'WARNING_CFLAGS': [ | |
588 # ICU uses its own deprecated functions. | |
589 '-Wno-deprecated-declarations', | |
590 # ICU prefers `a && b || c` over `(a && b) || c`. | |
591 '-Wno-logical-op-parentheses', | |
592 # ICU has some `unsigned < 0` checks. | |
593 '-Wno-tautological-compare', | |
594 ], | |
595 }, | |
596 'cflags': [ | |
597 '-Wno-deprecated-declarations', | |
598 '-Wno-logical-op-parentheses', | |
599 '-Wno-tautological-compare', | |
600 ], | |
601 }], | |
564 ], | 602 ], |
565 }, | 603 }, |
566 ], | 604 ], |
567 }, { # use_system_icu != 0 | 605 }, { # use_system_icu != 0 |
568 'targets': [ | 606 'targets': [ |
569 { | 607 { |
570 'target_name': 'system_icu', | 608 'target_name': 'system_icu', |
571 'type': 'settings', | 609 'type': 'settings', |
572 'direct_dependent_settings': { | 610 'direct_dependent_settings': { |
573 'defines': [ | 611 'defines': [ |
(...skipping 24 matching lines...) Expand all Loading... | |
598 { | 636 { |
599 'target_name': 'icuuc', | 637 'target_name': 'icuuc', |
600 'type': 'none', | 638 'type': 'none', |
601 'dependencies': ['system_icu'], | 639 'dependencies': ['system_icu'], |
602 'export_dependent_settings': ['system_icu'], | 640 'export_dependent_settings': ['system_icu'], |
603 }, | 641 }, |
604 ], | 642 ], |
605 }], | 643 }], |
606 ], | 644 ], |
607 } | 645 } |
OLD | NEW |