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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
283 configs += [ ":icu_code" ] | 283 configs += [ ":icu_code" ] |
284 public_configs = [ ":icu_config" ] | 284 public_configs = [ ":icu_config" ] |
285 | 285 |
286 cflags = [] | 286 cflags = [] |
287 if (is_android || is_linux) { | 287 if (is_android || is_linux) { |
288 cflags += [ | 288 cflags += [ |
289 # ICU uses its own deprecated functions. | 289 # ICU uses its own deprecated functions. |
290 "-Wno-deprecated-declarations", | 290 "-Wno-deprecated-declarations", |
291 ] | 291 ] |
292 } | 292 } |
293 if (is_clang) { | |
294 # uspoof.h has a U_NAMESPACE_USE macro. That's a bug, | |
295 # the header should use U_NAMESPACE_BEGIN instead. | |
296 # http://bugs.icu-project.org/trac/ticket/9054 | |
297 configs -= [ "//build/config/clang:extra_warnings" ] | |
Nico
2015/05/28 02:33:51
I'm not sure if this is right. The comment refers
jungshik at Google
2015/05/28 18:07:13
builds/config/clang/BUILD.gn has the following (I
| |
298 | |
299 cflags += [ | |
300 "-Wno-header-hygiene", | |
301 | |
302 # Looks like a real issue, see http://crbug.com/114660 | |
303 "-Wno-return-type-c-linkage", | |
304 ] | |
305 } | |
306 } | 293 } |
307 | 294 |
308 component("icuuc") { | 295 component("icuuc") { |
309 sources = [ | 296 sources = [ |
310 "source/common/appendable.cpp", | 297 "source/common/appendable.cpp", |
311 "source/common/bmpset.cpp", | 298 "source/common/bmpset.cpp", |
312 "source/common/brkeng.cpp", | 299 "source/common/brkeng.cpp", |
313 "source/common/brkiter.cpp", | 300 "source/common/brkiter.cpp", |
314 "source/common/bytestream.cpp", | 301 "source/common/bytestream.cpp", |
315 "source/common/bytestriebuilder.cpp", | 302 "source/common/bytestriebuilder.cpp", |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
561 sources = [ | 548 sources = [ |
562 "android/icudtl_dat.S", | 549 "android/icudtl_dat.S", |
563 ] | 550 ] |
564 } else { | 551 } else { |
565 assert(false, "No icu data for this platform") | 552 assert(false, "No icu data for this platform") |
566 } | 553 } |
567 defines = [ "U_HIDE_DATA_SYMBOL" ] | 554 defines = [ "U_HIDE_DATA_SYMBOL" ] |
568 } | 555 } |
569 } | 556 } |
570 } | 557 } |
OLD | NEW |