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 = [ |
11 ":icui18n", | 11 ":icui18n", |
12 ":icuuc", | 12 ":icuuc", |
13 ] | 13 ] |
14 } | 14 } |
15 | 15 |
16 # Shared config used by ICU and all dependents. | 16 # Shared config used by ICU and all dependents. |
17 config("icu_config") { | 17 config("icu_config") { |
18 defines = [ | 18 defines = [ |
19 "U_USING_ICU_NAMESPACE=0", | 19 "U_USING_ICU_NAMESPACE=0", |
20 "U_ENABLE_DYLOAD=0", | 20 "U_ENABLE_DYLOAD=0", |
| 21 "U_CHARSET_IS_UTF8=1", |
21 ] | 22 ] |
22 | 23 |
23 if (component_mode != "shared_library") { | 24 if (component_mode != "shared_library") { |
24 defines += [ "U_STATIC_IMPLEMENTATION" ] | 25 defines += [ "U_STATIC_IMPLEMENTATION" ] |
25 } | 26 } |
26 | 27 |
27 include_dirs = [ | 28 include_dirs = [ |
28 "source/common", | 29 "source/common", |
29 "source/i18n", | 30 "source/i18n", |
30 ] | 31 ] |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 sources = [ | 546 sources = [ |
546 "android/icudtl_dat.S", | 547 "android/icudtl_dat.S", |
547 ] | 548 ] |
548 } else { | 549 } else { |
549 assert(false, "No icu data for this platform") | 550 assert(false, "No icu data for this platform") |
550 } | 551 } |
551 defines = [ "U_HIDE_DATA_SYMBOL" ] | 552 defines = [ "U_HIDE_DATA_SYMBOL" ] |
552 } | 553 } |
553 } | 554 } |
554 } | 555 } |
OLD | NEW |