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 if (is_android) { | 7 if (is_android) { |
8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... | |
35 ] | 35 ] |
36 | 36 |
37 if (!is_component_build) { | 37 if (!is_component_build) { |
38 defines += [ "U_STATIC_IMPLEMENTATION" ] | 38 defines += [ "U_STATIC_IMPLEMENTATION" ] |
39 } | 39 } |
40 | 40 |
41 include_dirs = [ | 41 include_dirs = [ |
42 "source/common", | 42 "source/common", |
43 "source/i18n", | 43 "source/i18n", |
44 ] | 44 ] |
45 | |
46 if (icu_use_data_file) { | |
47 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE" ] | |
48 } else { | |
49 if (is_win) { | |
50 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_SHARED" ] | |
51 } else { | |
52 defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC" ] | |
53 } | |
54 } | |
jungshik at Google
2016/05/19 07:21:54
I think these lines were added by another CL. Well
| |
45 } | 55 } |
46 | 56 |
47 # Config used only by ICU code. | 57 # Config used only by ICU code. |
48 config("icu_code") { | 58 config("icu_code") { |
49 cflags = [] | 59 cflags = [] |
50 defines = [ | 60 defines = [ |
51 "HAVE_DLOPEN=0", | 61 "HAVE_DLOPEN=0", |
52 | 62 |
53 # Only build encoding coverters and detectors necessary for HTML5. | 63 # Only build encoding coverters and detectors necessary for HTML5. |
54 "UCONFIG_ONLY_HTML_CONVERSION=1", | 64 "UCONFIG_ONLY_HTML_CONVERSION=1", |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
620 sources = [ | 630 sources = [ |
621 "android/icudtl_dat.S", | 631 "android/icudtl_dat.S", |
622 ] | 632 ] |
623 } else { | 633 } else { |
624 assert(false, "No icu data for this platform") | 634 assert(false, "No icu data for this platform") |
625 } | 635 } |
626 defines = [ "U_HIDE_DATA_SYMBOL" ] | 636 defines = [ "U_HIDE_DATA_SYMBOL" ] |
627 } | 637 } |
628 } | 638 } |
629 } | 639 } |
OLD | NEW |