OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//third_party/icu/config.gni") | 5 import("//third_party/icu/config.gni") |
6 | 6 |
7 # Meta target that includes both icuuc and icui18n. Most targets want both. | 7 # Meta target that includes both icuuc and icui18n. Most targets want both. |
8 # You can depend on the individually if you need to. | 8 # You can depend on the individually if you need to. |
9 group("icu") { | 9 group("icu") { |
10 deps = [ | 10 deps = [ |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 "-Wno-deprecated-declarations", | 64 "-Wno-deprecated-declarations", |
65 "-Wno-unused-function", | 65 "-Wno-unused-function", |
66 ] | 66 ] |
67 } | 67 } |
68 if (is_clang) { | 68 if (is_clang) { |
69 cflags += [ | 69 cflags += [ |
70 "-Wno-deprecated-declarations", | 70 "-Wno-deprecated-declarations", |
71 "-Wno-logical-op-parentheses", | 71 "-Wno-logical-op-parentheses", |
72 "-Wno-tautological-compare", | 72 "-Wno-tautological-compare", |
73 "-Wno-switch", | 73 "-Wno-switch", |
74 ] | 74 "-Wno-parentheses", |
75 ] | |
75 if (is_win) { | 76 if (is_win) { |
76 cflags += [ | 77 cflags += [ |
77 # See http://bugs.icu-project.org/trac/ticket/11122 | 78 # See http://bugs.icu-project.org/trac/ticket/11122 |
78 "-Wno-inline-new-delete", | 79 "-Wno-inline-new-delete", |
79 "-Wno-implicit-exception-spec-mismatch", | 80 "-Wno-implicit-exception-spec-mismatch", |
80 ] | 81 ] |
81 } | 82 } |
82 } | 83 } |
83 } | 84 } |
84 | 85 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
474 "source/common/utypes.c", | 475 "source/common/utypes.c", |
475 "source/common/uvector.cpp", | 476 "source/common/uvector.cpp", |
476 "source/common/uvectr32.cpp", | 477 "source/common/uvectr32.cpp", |
477 "source/common/uvectr64.cpp", | 478 "source/common/uvectr64.cpp", |
478 "source/common/wintz.c", | 479 "source/common/wintz.c", |
479 ] | 480 ] |
480 defines = [ "U_COMMON_IMPLEMENTATION" ] | 481 defines = [ "U_COMMON_IMPLEMENTATION" ] |
481 deps = [ | 482 deps = [ |
482 ":icudata", | 483 ":icudata", |
483 ] | 484 ] |
484 configs += [ ":icu_code" ] | |
485 | 485 |
486 configs -= [ | 486 configs -= [ |
487 "//build/config/compiler:no_rtti", # ICU uses RTTI. | 487 "//build/config/compiler:no_rtti", # ICU uses RTTI. |
488 "//build/config/compiler:chromium_code", | 488 "//build/config/compiler:chromium_code", |
489 ] | 489 ] |
490 configs += [ | 490 configs += [ |
491 "//build/config/compiler:rtti", | 491 "//build/config/compiler:rtti", |
492 "//build/config/compiler:no_chromium_code", | 492 "//build/config/compiler:no_chromium_code", |
493 ] | 493 ] |
494 | 494 |
495 configs += [ ":icu_code" ] | |
dcheng
2015/06/30 21:18:09
Apparently it wasn't really suppressing the warnin
Nico
2015/06/30 21:32:58
Ah cool. Yes, the += appends no_chromium_code to c
| |
495 public_configs = [ ":icu_config" ] | 496 public_configs = [ ":icu_config" ] |
496 | 497 |
497 if (is_win || icu_use_data_file) { | 498 if (is_win || icu_use_data_file) { |
498 sources += [ "source/stubdata/stubdata.c" ] | 499 sources += [ "source/stubdata/stubdata.c" ] |
499 defines += [ "U_ICUDATAENTRY_IN_COMMON" ] | 500 defines += [ "U_ICUDATAENTRY_IN_COMMON" ] |
500 } | 501 } |
501 } | 502 } |
502 | 503 |
503 # TODO(GYP) support use_system_icu. | 504 # TODO(GYP) support use_system_icu. |
504 if (icu_use_data_file) { | 505 if (icu_use_data_file) { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
562 sources = [ | 563 sources = [ |
563 "android/icudtl_dat.S", | 564 "android/icudtl_dat.S", |
564 ] | 565 ] |
565 } else { | 566 } else { |
566 assert(false, "No icu data for this platform") | 567 assert(false, "No icu data for this platform") |
567 } | 568 } |
568 defines = [ "U_HIDE_DATA_SYMBOL" ] | 569 defines = [ "U_HIDE_DATA_SYMBOL" ] |
569 } | 570 } |
570 } | 571 } |
571 } | 572 } |
OLD | NEW |