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 24 matching lines...) Expand all Loading... |
35 ] | 35 ] |
36 } | 36 } |
37 | 37 |
38 # Config used only by ICU code. | 38 # Config used only by ICU code. |
39 config("icu_code") { | 39 config("icu_code") { |
40 cflags = [] | 40 cflags = [] |
41 defines = [ | 41 defines = [ |
42 "HAVE_DLOPEN=0", | 42 "HAVE_DLOPEN=0", |
43 | 43 |
44 # Only build encoding coverters and detectors necessary for HTML5. | 44 # Only build encoding coverters and detectors necessary for HTML5. |
45 "UCONFIG_NO_NON_HTML5_CONVERSION=1", | 45 "UCONFIG_ONLY_HTML_CONVERSION=1", |
46 | 46 |
47 # No dependency on the default platform encoding. | 47 # No dependency on the default platform encoding. |
48 # Will cut down the code size. | 48 # Will cut down the code size. |
49 "U_CHARSET_IS_UTF8=1", | 49 "U_CHARSET_IS_UTF8=1", |
50 ] | 50 ] |
51 | 51 |
52 if (is_win) { | 52 if (is_win) { |
53 # Disable some compiler warnings. | 53 # Disable some compiler warnings. |
54 cflags += [ | 54 cflags += [ |
55 "/wd4005", # Macro redefinition. | 55 "/wd4005", # Macro redefinition. |
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 sources = [ | 562 sources = [ |
563 "android/icudtl_dat.S", | 563 "android/icudtl_dat.S", |
564 ] | 564 ] |
565 } else { | 565 } else { |
566 assert(false, "No icu data for this platform") | 566 assert(false, "No icu data for this platform") |
567 } | 567 } |
568 defines = [ "U_HIDE_DATA_SYMBOL" ] | 568 defines = [ "U_HIDE_DATA_SYMBOL" ] |
569 } | 569 } |
570 } | 570 } |
571 } | 571 } |
OLD | NEW |