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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 ] | 54 ] |
55 | 55 |
56 if (is_win) { | 56 if (is_win) { |
57 # Disable some compiler warnings. | 57 # Disable some compiler warnings. |
58 cflags += [ | 58 cflags += [ |
59 "/wd4005", # Macro redefinition. | 59 "/wd4005", # Macro redefinition. |
60 "/wd4068", # Unknown pragmas. | 60 "/wd4068", # Unknown pragmas. |
61 "/wd4267", # Conversion from size_t on 64-bits. | 61 "/wd4267", # Conversion from size_t on 64-bits. |
62 "/wd4996", # Deprecated functions. | 62 "/wd4996", # Deprecated functions. |
63 ] | 63 ] |
64 } else if (is_linux) { | 64 } else if (is_linux || is_android) { |
65 cflags += [ | 65 cflags += [ |
66 # Since ICU wants to internally use its own deprecated APIs, don't | 66 # Since ICU wants to internally use its own deprecated APIs, don't |
67 # complain about it. | 67 # complain about it. |
68 "-Wno-deprecated-declarations", | 68 "-Wno-deprecated-declarations", |
69 "-Wno-unused-function", | 69 "-Wno-unused-function", |
70 ] | 70 ] |
71 } | 71 } |
72 if (is_clang) { | 72 if (is_clang) { |
73 cflags += [ | 73 cflags += [ |
74 # ICU uses its own deprecated functions. | 74 # ICU uses its own deprecated functions. |
(...skipping 18 matching lines...) Expand all Loading... |
93 "-Wno-unused-const-variable", | 93 "-Wno-unused-const-variable", |
94 # ucnv2022.cpp contains three functions that are only used when | 94 # ucnv2022.cpp contains three functions that are only used when |
95 # certain preprocessor defines are set. | 95 # certain preprocessor defines are set. |
96 "-Wno-unused-function", | 96 "-Wno-unused-function", |
97 ] | 97 ] |
98 if (is_win) { | 98 if (is_win) { |
99 cflags += [ | 99 cflags += [ |
100 # See http://bugs.icu-project.org/trac/ticket/11122 | 100 # See http://bugs.icu-project.org/trac/ticket/11122 |
101 "-Wno-inline-new-delete", | 101 "-Wno-inline-new-delete", |
102 "-Wno-implicit-exception-spec-mismatch", | 102 "-Wno-implicit-exception-spec-mismatch", |
103 # See http://bugs.icu-project.org/trac/ticket/11757. | |
104 "-Wno-reorder", | |
105 ] | 103 ] |
106 } | 104 } |
107 } | 105 } |
108 } | 106 } |
109 | 107 |
110 component("icui18n") { | 108 component("icui18n") { |
111 # find source/i18n -maxdepth 1 ! -type d | egrep '\.(c|cpp)$' |\ | 109 # find source/i18n -maxdepth 1 ! -type d | egrep '\.(c|cpp)$' |\ |
112 # sort | sed 's/^\(.*\)$/ "\1",/' | 110 # sort | sed 's/^\(.*\)$/ "\1",/' |
113 sources = [ | 111 sources = [ |
114 "source/i18n/affixpatternparser.cpp", | 112 "source/i18n/affixpatternparser.cpp", |
(...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 sources = [ | 616 sources = [ |
619 "android/icudtl_dat.S", | 617 "android/icudtl_dat.S", |
620 ] | 618 ] |
621 } else { | 619 } else { |
622 assert(false, "No icu data for this platform") | 620 assert(false, "No icu data for this platform") |
623 } | 621 } |
624 defines = [ "U_HIDE_DATA_SYMBOL" ] | 622 defines = [ "U_HIDE_DATA_SYMBOL" ] |
625 } | 623 } |
626 } | 624 } |
627 } | 625 } |
OLD | NEW |