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 # http://bugs.icu-project.org/trac/ticket/9054 |
| 335 '-Wno-header-hygiene', |
| 336 ], |
| 337 }, |
| 338 'cflags': [ |
| 339 '-Wno-deprecated-declarations', |
| 340 '-Wno-logical-op-parentheses', |
| 341 '-Wno-tautological-compare', |
| 342 '-Wno-header-hygiene', |
| 343 ], |
| 344 }], |
323 ], | 345 ], |
324 }, | 346 }, |
325 { | 347 { |
326 'target_name': 'icuuc', | 348 'target_name': 'icuuc', |
327 'type': '<(component)', | 349 'type': '<(component)', |
328 'sources': [ | 350 'sources': [ |
329 'source/common/bmpset.cpp', | 351 'source/common/bmpset.cpp', |
330 'source/common/brkeng.cpp', | 352 'source/common/brkeng.cpp', |
331 'source/common/brkiter.cpp', | 353 'source/common/brkiter.cpp', |
332 'source/common/bytestream.cpp', | 354 'source/common/bytestream.cpp', |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 '-Wno-deprecated-declarations', | 539 '-Wno-deprecated-declarations', |
518 '-Wno-unused-function', | 540 '-Wno-unused-function', |
519 ], | 541 ], |
520 'cflags_cc': [ | 542 'cflags_cc': [ |
521 '-frtti', | 543 '-frtti', |
522 ], | 544 ], |
523 }], | 545 }], |
524 ['OS == "mac"', { | 546 ['OS == "mac"', { |
525 'xcode_settings': { | 547 'xcode_settings': { |
526 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti | 548 'GCC_ENABLE_CPP_RTTI': 'YES', # -frtti |
527 } | 549 }, |
528 }], | 550 }], |
529 ['OS == "win"', { | 551 ['OS == "win"', { |
530 'msvs_settings': { | 552 'msvs_settings': { |
531 'VCCLCompilerTool': { | 553 'VCCLCompilerTool': { |
532 'RuntimeTypeInfo': 'true', | 554 'RuntimeTypeInfo': 'true', |
533 }, | 555 }, |
534 } | 556 } |
535 }], | 557 }], |
536 ['OS == "android"', { | 558 ['OS == "android"', { |
537 'include_dirs': [ | 559 'include_dirs': [ |
(...skipping 16 matching lines...) Expand all Loading... |
554 }], | 576 }], |
555 ['target_arch=="ia32"', { | 577 ['target_arch=="ia32"', { |
556 'link_settings': { | 578 'link_settings': { |
557 'libraries': [ | 579 'libraries': [ |
558 '<(android_ndk_root)/sources/cxx-stl/gabi++/libs/x86/libga
bi++_static.a', | 580 '<(android_ndk_root)/sources/cxx-stl/gabi++/libs/x86/libga
bi++_static.a', |
559 ] | 581 ] |
560 }, | 582 }, |
561 }], | 583 }], |
562 ], | 584 ], |
563 }], | 585 }], |
| 586 ['clang==1', { |
| 587 'xcode_settings': { |
| 588 'WARNING_CFLAGS': [ |
| 589 # ICU uses its own deprecated functions. |
| 590 '-Wno-deprecated-declarations', |
| 591 # ICU prefers `a && b || c` over `(a && b) || c`. |
| 592 '-Wno-logical-op-parentheses', |
| 593 # ICU has some `unsigned < 0` checks. |
| 594 '-Wno-tautological-compare', |
| 595 ], |
| 596 }, |
| 597 'cflags': [ |
| 598 '-Wno-deprecated-declarations', |
| 599 '-Wno-logical-op-parentheses', |
| 600 '-Wno-tautological-compare', |
| 601 ], |
| 602 }], |
564 ], | 603 ], |
565 }, | 604 }, |
566 ], | 605 ], |
567 }, { # use_system_icu != 0 | 606 }, { # use_system_icu != 0 |
568 'targets': [ | 607 'targets': [ |
569 { | 608 { |
570 'target_name': 'system_icu', | 609 'target_name': 'system_icu', |
571 'type': 'settings', | 610 'type': 'settings', |
572 'direct_dependent_settings': { | 611 'direct_dependent_settings': { |
573 'defines': [ | 612 'defines': [ |
(...skipping 24 matching lines...) Expand all Loading... |
598 { | 637 { |
599 'target_name': 'icuuc', | 638 'target_name': 'icuuc', |
600 'type': 'none', | 639 'type': 'none', |
601 'dependencies': ['system_icu'], | 640 'dependencies': ['system_icu'], |
602 'export_dependent_settings': ['system_icu'], | 641 'export_dependent_settings': ['system_icu'], |
603 }, | 642 }, |
604 ], | 643 ], |
605 }], | 644 }], |
606 ], | 645 ], |
607 } | 646 } |
OLD | NEW |