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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ] |
| 75 if (is_win) { |
| 76 cflags += [ |
| 77 # See http://bugs.icu-project.org/trac/ticket/11122 |
| 78 '-Wno-inline-new-delete', |
| 79 '-Wno-implicit-exception-spec-mismatch', |
| 80 ] |
| 81 } |
75 } | 82 } |
76 } | 83 } |
77 | 84 |
78 component("icui18n") { | 85 component("icui18n") { |
79 sources = [ | 86 sources = [ |
80 "source/i18n/alphaindex.cpp", | 87 "source/i18n/alphaindex.cpp", |
81 "source/i18n/anytrans.cpp", | 88 "source/i18n/anytrans.cpp", |
82 "source/i18n/astro.cpp", | 89 "source/i18n/astro.cpp", |
83 "source/i18n/basictz.cpp", | 90 "source/i18n/basictz.cpp", |
84 "source/i18n/bocsu.cpp", | 91 "source/i18n/bocsu.cpp", |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 sources = [ | 555 sources = [ |
549 "android/icudtl_dat.S", | 556 "android/icudtl_dat.S", |
550 ] | 557 ] |
551 } else { | 558 } else { |
552 assert(false, "No icu data for this platform") | 559 assert(false, "No icu data for this platform") |
553 } | 560 } |
554 defines = [ "U_HIDE_DATA_SYMBOL" ] | 561 defines = [ "U_HIDE_DATA_SYMBOL" ] |
555 } | 562 } |
556 } | 563 } |
557 } | 564 } |
OLD | NEW |