| 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 declare_args() { | 5 declare_args() { |
| 6 # Tells icu to load an external data file rather than rely on the icudata | 6 # Tells icu to load an external data file rather than rely on the icudata |
| 7 # being linked directly into the binary. | 7 # being linked directly into the binary. |
| 8 # | 8 # |
| 9 # This flag is a bit confusing. As of this writing, icu.gyp set the value to | 9 # This flag is a bit confusing. As of this writing, icu.gyp set the value to |
| 10 # 0 but common.gypi sets the value to 1 for most platforms (and the 1 takes | 10 # 0 but common.gypi sets the value to 1 for most platforms (and the 1 takes |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 "//build/config/compiler:chromium_code", | 251 "//build/config/compiler:chromium_code", |
| 252 ] | 252 ] |
| 253 configs += [ | 253 configs += [ |
| 254 "//build/config/compiler:rtti", | 254 "//build/config/compiler:rtti", |
| 255 "//build/config/compiler:no_chromium_code", | 255 "//build/config/compiler:no_chromium_code", |
| 256 ] | 256 ] |
| 257 | 257 |
| 258 configs += [ ":icu_code" ] | 258 configs += [ ":icu_code" ] |
| 259 direct_dependent_configs = [ ":icu_config" ] | 259 direct_dependent_configs = [ ":icu_config" ] |
| 260 | 260 |
| 261 cflags = [] |
| 262 if (is_android || is_linux) { |
| 263 cflags += [ |
| 264 # ICU uses its own deprecated functions. |
| 265 "-Wno-deprecated-declarations", |
| 266 ] |
| 267 } |
| 261 if (is_clang) { | 268 if (is_clang) { |
| 262 # uspoof.h has a U_NAMESPACE_USE macro. That's a bug, | 269 # uspoof.h has a U_NAMESPACE_USE macro. That's a bug, |
| 263 # the header should use U_NAMESPACE_BEGIN instead. | 270 # the header should use U_NAMESPACE_BEGIN instead. |
| 264 # http://bugs.icu-project.org/trac/ticket/9054 | 271 # http://bugs.icu-project.org/trac/ticket/9054 |
| 265 configs -= [ "//build/config/clang:extra_warnings" ] | 272 configs -= [ "//build/config/clang:extra_warnings" ] |
| 266 | 273 |
| 267 cflags = [ | 274 cflags += [ |
| 268 "-Wno-header-hygiene", | 275 "-Wno-header-hygiene", |
| 269 # Looks like a real issue, see http://crbug.com/114660 | 276 # Looks like a real issue, see http://crbug.com/114660 |
| 270 "-Wno-return-type-c-linkage", | 277 "-Wno-return-type-c-linkage", |
| 271 ] | 278 ] |
| 272 } | 279 } |
| 273 } | 280 } |
| 274 | 281 |
| 275 component("icuuc") { | 282 component("icuuc") { |
| 276 sources = [ | 283 sources = [ |
| 277 "source/common/appendable.cpp", | 284 "source/common/appendable.cpp", |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 sources = [ "mac/icudtl_dat.S" ] | 516 sources = [ "mac/icudtl_dat.S" ] |
| 510 } else if (is_android) { | 517 } else if (is_android) { |
| 511 sources = [ "android/icudtl_dat.S" ] | 518 sources = [ "android/icudtl_dat.S" ] |
| 512 } else { | 519 } else { |
| 513 assert(false, "No icu data for this platform") | 520 assert(false, "No icu data for this platform") |
| 514 } | 521 } |
| 515 defines = [ "U_HIDE_DATA_SYMBOL" ] | 522 defines = [ "U_HIDE_DATA_SYMBOL" ] |
| 516 } | 523 } |
| 517 } | 524 } |
| 518 } | 525 } |
| OLD | NEW |