1# Copyright (c) 2021 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/ohos.gni") 15import("//third_party/icu/icu.gni") 16import("//third_party/icu/icu4c/icu4c_config.gni") 17 18config("icu_config") { 19 include_dirs = [ 20 "//third_party/icu/icu4c/source/common", 21 "//third_party/icu/icu4c/source/i18n", 22 "//third_party/icu/icu4c/source", 23 ] 24 if ("${product_name}" == "ohcore") { 25 defines = [ "U_ICU_USE_OLD_DATA" ] 26 } 27} 28 29config("static_icustubdata_all_deps_config") { 30 include_dirs = [ "//third_party/icu/icu4c/source/common" ] 31} 32 33ohos_static_library("static_icustubdata") { 34 configs = [ 35 ":icu_config", 36 "//build/config/compiler:rtti", 37 ] 38 sources = [ "//third_party/icu/icu4c/source/stubdata/stubdata.cpp" ] 39 40 cflags_cc = [ 41 "-O3", 42 "-W", 43 "-Wall", 44 "-pedantic", 45 "-Wpointer-arith", 46 "-Wwrite-strings", 47 "-std=c++11", 48 "-Wno-ignored-attributes", 49 "-Wno-deprecated-declarations", 50 ] 51 output_dir = "${root_out_dir}/third_party/icu/stubdata" 52 output_name = "stubdata" 53 part_name = "icu" 54 subsystem_name = "thirdparty" 55} 56 57ohos_prebuilt_etc("ohos_icudat") { 58 if ("${product_name}" == "ohcore") { 59 source = "//third_party/icu/ohos_icu4j/data/icudt68l.dat" 60 } else if ("${build_feature}" == "lite") { 61 source = "//third_party/icu/ohos_icu4j/data/lite/icudt72l.dat" 62 } else if (icu_support_locales) { 63 source = "//third_party/icu/ohos_icu4j/data/icudt72l.dat" 64 } else { 65 source = "//third_party/icu/ohos_icu4j/data/lite/icudt72l.dat" 66 } 67 68 module_install_dir = "usr/ohos_icu/" 69 part_name = "icu" 70 subsystem_name = "thirdparty" 71} 72 73icu_common_source = [ 74 "//third_party/icu/icu4c/source/common/ubiditransform.cpp", 75 "//third_party/icu/icu4c/source/common/locutil.cpp", 76 "//third_party/icu/icu4c/source/common/cstring.cpp", 77 "//third_party/icu/icu4c/source/common/rbbiscan.cpp", 78 "//third_party/icu/icu4c/source/common/utrie.cpp", 79 "//third_party/icu/icu4c/source/common/cwchar.cpp", 80 "//third_party/icu/icu4c/source/common/bytestriebuilder.cpp", 81 "//third_party/icu/icu4c/source/common/umapfile.cpp", 82 "//third_party/icu/icu4c/source/common/uenum.cpp", 83 "//third_party/icu/icu4c/source/common/putil.cpp", 84 "//third_party/icu/icu4c/source/common/bytestrieiterator.cpp", 85 "//third_party/icu/icu4c/source/common/unifunct.cpp", 86 "//third_party/icu/icu4c/source/common/rbbistbl.cpp", 87 "//third_party/icu/icu4c/source/common/bytestrie.cpp", 88 "//third_party/icu/icu4c/source/common/ucptrie.cpp", 89 "//third_party/icu/icu4c/source/common/errorcode.cpp", 90 "//third_party/icu/icu4c/source/common/unames.cpp", 91 "//third_party/icu/icu4c/source/common/restrace.cpp", 92 "//third_party/icu/icu4c/source/common/util.cpp", 93 "//third_party/icu/icu4c/source/common/sharedobject.cpp", 94 "//third_party/icu/icu4c/source/common/bmpset.cpp", 95 "//third_party/icu/icu4c/source/common/servlk.cpp", 96 "//third_party/icu/icu4c/source/common/ustrcase_locale.cpp", 97 "//third_party/icu/icu4c/source/common/localeprioritylist.cpp", 98 "//third_party/icu/icu4c/source/common/ucnvbocu.cpp", 99 "//third_party/icu/icu4c/source/common/ucharstrieiterator.cpp", 100 "//third_party/icu/icu4c/source/common/unisetspan.cpp", 101 "//third_party/icu/icu4c/source/common/locavailable.cpp", 102 "//third_party/icu/icu4c/source/common/unistr.cpp", 103 "//third_party/icu/icu4c/source/common/ustr_wcs.cpp", 104 "//third_party/icu/icu4c/source/common/ucnv_err.cpp", 105 "//third_party/icu/icu4c/source/common/ucnv_lmb.cpp", 106 "//third_party/icu/icu4c/source/common/rbbidata.cpp", 107 "//third_party/icu/icu4c/source/common/uarrsort.cpp", 108 "//third_party/icu/icu4c/source/common/ucnv2022.cpp", 109 "//third_party/icu/icu4c/source/common/uresbund.cpp", 110 "//third_party/icu/icu4c/source/common/ucnvsel.cpp", 111 "//third_party/icu/icu4c/source/common/unistr_titlecase_brkiter.cpp", 112 "//third_party/icu/icu4c/source/common/loadednormalizer2impl.cpp", 113 "//third_party/icu/icu4c/source/common/ustring.cpp", 114 "//third_party/icu/icu4c/source/common/unifilt.cpp", 115 "//third_party/icu/icu4c/source/common/ubrk.cpp", 116 "//third_party/icu/icu4c/source/common/bytesinkutil.cpp", 117 "//third_party/icu/icu4c/source/common/localebuilder.cpp", 118 "//third_party/icu/icu4c/source/common/rbbi_cache.cpp", 119 "//third_party/icu/icu4c/source/common/ucnvhz.cpp", 120 "//third_party/icu/icu4c/source/common/uniset_closure.cpp", 121 "//third_party/icu/icu4c/source/common/uloc.cpp", 122 "//third_party/icu/icu4c/source/common/utypes.cpp", 123 "//third_party/icu/icu4c/source/common/ucnv_u16.cpp", 124 "//third_party/icu/icu4c/source/common/uniset_props.cpp", 125 "//third_party/icu/icu4c/source/common/locbased.cpp", 126 "//third_party/icu/icu4c/source/common/unistr_cnv.cpp", 127 "//third_party/icu/icu4c/source/common/ucnv_ct.cpp", 128 "//third_party/icu/icu4c/source/common/unormcmp.cpp", 129 "//third_party/icu/icu4c/source/common/wintz.cpp", 130 "//third_party/icu/icu4c/source/common/ruleiter.cpp", 131 "//third_party/icu/icu4c/source/common/utrie2.cpp", 132 "//third_party/icu/icu4c/source/common/locresdata.cpp", 133 "//third_party/icu/icu4c/source/common/ucnv_u8.cpp", 134 "//third_party/icu/icu4c/source/common/uscript_props.cpp", 135 "//third_party/icu/icu4c/source/common/locdspnm.cpp", 136 "//third_party/icu/icu4c/source/common/locid.cpp", 137 "//third_party/icu/icu4c/source/common/rbbitblb.cpp", 138 "//third_party/icu/icu4c/source/common/icudataver.cpp", 139 "//third_party/icu/icu4c/source/common/ubidi.cpp", 140 "//third_party/icu/icu4c/source/common/brkiter.cpp", 141 "//third_party/icu/icu4c/source/common/uvectr32.cpp", 142 "//third_party/icu/icu4c/source/common/usc_impl.cpp", 143 "//third_party/icu/icu4c/source/common/normlzr.cpp", 144 "//third_party/icu/icu4c/source/common/icuplug.cpp", 145 "//third_party/icu/icu4c/source/common/uvector.cpp", 146 "//third_party/icu/icu4c/source/common/ucnv_set.cpp", 147 "//third_party/icu/icu4c/source/common/udataswp.cpp", 148 "//third_party/icu/icu4c/source/common/uhash_us.cpp", 149 "//third_party/icu/icu4c/source/common/rbbisetb.cpp", 150 "//third_party/icu/icu4c/source/common/ubidi_props.cpp", 151 "//third_party/icu/icu4c/source/common/ucmndata.cpp", 152 "//third_party/icu/icu4c/source/common/locdistance.cpp", 153 "//third_party/icu/icu4c/source/common/serv.cpp", 154 "//third_party/icu/icu4c/source/common/utrie_swap.cpp", 155 "//third_party/icu/icu4c/source/common/uchar.cpp", 156 "//third_party/icu/icu4c/source/common/uloc_tag.cpp", 157 "//third_party/icu/icu4c/source/common/ustr_titlecase_brkiter.cpp", 158 "//third_party/icu/icu4c/source/common/pluralmap.cpp", 159 "//third_party/icu/icu4c/source/common/lsr.cpp", 160 "//third_party/icu/icu4c/source/common/uhash.cpp", 161 "//third_party/icu/icu4c/source/common/propname.cpp", 162 "//third_party/icu/icu4c/source/common/ucnvlat1.cpp", 163 "//third_party/icu/icu4c/source/common/ucnv_ext.cpp", 164 "//third_party/icu/icu4c/source/common/ubidiln.cpp", 165 "//third_party/icu/icu4c/source/common/ucnv_cb.cpp", 166 "//third_party/icu/icu4c/source/common/static_unicode_sets.cpp", 167 "//third_party/icu/icu4c/source/common/dictbe.cpp", 168 "//third_party/icu/icu4c/source/common/stringtriebuilder.cpp", 169 "//third_party/icu/icu4c/source/common/uvectr64.cpp", 170 "//third_party/icu/icu4c/source/common/patternprops.cpp", 171 "//third_party/icu/icu4c/source/common/propsvec.cpp", 172 "//third_party/icu/icu4c/source/common/ustrenum.cpp", 173 "//third_party/icu/icu4c/source/common/ucnv_u32.cpp", 174 "//third_party/icu/icu4c/source/common/ustr_cnv.cpp", 175 "//third_party/icu/icu4c/source/common/edits.cpp", 176 "//third_party/icu/icu4c/source/common/loclikely.cpp", 177 "//third_party/icu/icu4c/source/common/parsepos.cpp", 178 "//third_party/icu/icu4c/source/common/loclikelysubtags.cpp", 179 "//third_party/icu/icu4c/source/common/uloc_keytype.cpp", 180 "//third_party/icu/icu4c/source/common/appendable.cpp", 181 "//third_party/icu/icu4c/source/common/filteredbrk.cpp", 182 "//third_party/icu/icu4c/source/common/ucharstrie.cpp", 183 "//third_party/icu/icu4c/source/common/uiter.cpp", 184 "//third_party/icu/icu4c/source/common/messagepattern.cpp", 185 "//third_party/icu/icu4c/source/common/servrbf.cpp", 186 "//third_party/icu/icu4c/source/common/rbbirb.cpp", 187 "//third_party/icu/icu4c/source/common/uinit.cpp", 188 "//third_party/icu/icu4c/source/common/stringpiece.cpp", 189 "//third_party/icu/icu4c/source/common/normalizer2impl.cpp", 190 "//third_party/icu/icu4c/source/common/ucharstriebuilder.cpp", 191 "//third_party/icu/icu4c/source/common/uobject.cpp", 192 "//third_party/icu/icu4c/source/common/ushape.cpp", 193 "//third_party/icu/icu4c/source/common/ucasemap.cpp", 194 "//third_party/icu/icu4c/source/common/uinvchar.cpp", 195 "//third_party/icu/icu4c/source/common/utf_impl.cpp", 196 "//third_party/icu/icu4c/source/common/ustack.cpp", 197 "//third_party/icu/icu4c/source/common/characterproperties.cpp", 198 "//third_party/icu/icu4c/source/common/rbbi.cpp", 199 "//third_party/icu/icu4c/source/common/ucasemap_titlecase_brkiter.cpp", 200 "//third_party/icu/icu4c/source/common/caniter.cpp", 201 "//third_party/icu/icu4c/source/common/ucnv_bld.cpp", 202 "//third_party/icu/icu4c/source/common/ucln_cmn.cpp", 203 "//third_party/icu/icu4c/source/common/chariter.cpp", 204 "//third_party/icu/icu4c/source/common/punycode.cpp", 205 "//third_party/icu/icu4c/source/common/ustrtrns.cpp", 206 "//third_party/icu/icu4c/source/common/ucnvmbcs.cpp", 207 "//third_party/icu/icu4c/source/common/bytestream.cpp", 208 "//third_party/icu/icu4c/source/common/servlkf.cpp", 209 "//third_party/icu/icu4c/source/common/udatamem.cpp", 210 "//third_party/icu/icu4c/source/common/ucnv_io.cpp", 211 "//third_party/icu/icu4c/source/common/dtintrv.cpp", 212 "//third_party/icu/icu4c/source/common/cstr.cpp", 213 "//third_party/icu/icu4c/source/common/ulist.cpp", 214 "//third_party/icu/icu4c/source/common/ucnvisci.cpp", 215 "//third_party/icu/icu4c/source/common/brkeng.cpp", 216 "//third_party/icu/icu4c/source/common/localematcher.cpp", 217 "//third_party/icu/icu4c/source/common/umutablecptrie.cpp", 218 "//third_party/icu/icu4c/source/common/locdispnames.cpp", 219 "//third_party/icu/icu4c/source/common/uchriter.cpp", 220 "//third_party/icu/icu4c/source/common/uresdata.cpp", 221 "//third_party/icu/icu4c/source/common/unifiedcache.cpp", 222 "//third_party/icu/icu4c/source/common/dictionarydata.cpp", 223 "//third_party/icu/icu4c/source/common/uscript.cpp", 224 "//third_party/icu/icu4c/source/common/ucnv_u7.cpp", 225 "//third_party/icu/icu4c/source/common/unistr_case.cpp", 226 "//third_party/icu/icu4c/source/common/ucat.cpp", 227 "//third_party/icu/icu4c/source/common/resource.cpp", 228 "//third_party/icu/icu4c/source/common/usprep.cpp", 229 "//third_party/icu/icu4c/source/common/ucnvdisp.cpp", 230 "//third_party/icu/icu4c/source/common/uniset.cpp", 231 "//third_party/icu/icu4c/source/common/ucnv.cpp", 232 "//third_party/icu/icu4c/source/common/ucnvscsu.cpp", 233 "//third_party/icu/icu4c/source/common/uset_props.cpp", 234 "//third_party/icu/icu4c/source/common/umutex.cpp", 235 "//third_party/icu/icu4c/source/common/ucnv_cnv.cpp", 236 "//third_party/icu/icu4c/source/common/locmap.cpp", 237 "//third_party/icu/icu4c/source/common/resbund.cpp", 238 "//third_party/icu/icu4c/source/common/filterednormalizer2.cpp", 239 "//third_party/icu/icu4c/source/common/uprops.cpp", 240 "//third_party/icu/icu4c/source/common/schriter.cpp", 241 "//third_party/icu/icu4c/source/common/simpleformatter.cpp", 242 "//third_party/icu/icu4c/source/common/uts46.cpp", 243 "//third_party/icu/icu4c/source/common/ucol_swp.cpp", 244 "//third_party/icu/icu4c/source/common/udata.cpp", 245 "//third_party/icu/icu4c/source/common/ustrfmt.cpp", 246 "//third_party/icu/icu4c/source/common/servslkf.cpp", 247 "//third_party/icu/icu4c/source/common/servls.cpp", 248 "//third_party/icu/icu4c/source/common/unistr_props.cpp", 249 "//third_party/icu/icu4c/source/common/utrace.cpp", 250 "//third_party/icu/icu4c/source/common/utrie2_builder.cpp", 251 "//third_party/icu/icu4c/source/common/ucase.cpp", 252 "//third_party/icu/icu4c/source/common/cmemory.cpp", 253 "//third_party/icu/icu4c/source/common/uset.cpp", 254 "//third_party/icu/icu4c/source/common/unistr_case_locale.cpp", 255 "//third_party/icu/icu4c/source/common/ures_cnv.cpp", 256 "//third_party/icu/icu4c/source/common/charstr.cpp", 257 "//third_party/icu/icu4c/source/common/uidna.cpp", 258 "//third_party/icu/icu4c/source/common/normalizer2.cpp", 259 "//third_party/icu/icu4c/source/common/resbund_cnv.cpp", 260 "//third_party/icu/icu4c/source/common/umath.cpp", 261 "//third_party/icu/icu4c/source/common/utext.cpp", 262 "//third_party/icu/icu4c/source/common/ucurr.cpp", 263 "//third_party/icu/icu4c/source/common/util_props.cpp", 264 "//third_party/icu/icu4c/source/common/unorm.cpp", 265 "//third_party/icu/icu4c/source/common/ubidiwrt.cpp", 266 "//third_party/icu/icu4c/source/common/usetiter.cpp", 267 "//third_party/icu/icu4c/source/common/rbbinode.cpp", 268 "//third_party/icu/icu4c/source/common/ustrcase.cpp", 269 "//third_party/icu/icu4c/source/common/servnotf.cpp", 270 "//third_party/icu/icu4c/source/common/emojiprops.cpp", 271 "//third_party/icu/icu4c/source/common/lstmbe.cpp", 272 "//third_party/icu/icu4c/source/ohos/init_data.cpp", 273] 274 275icu_i18n_source = [ 276 "//third_party/icu/icu4c/source/i18n/number_capi.cpp", 277 "//third_party/icu/icu4c/source/i18n/upluralrules.cpp", 278 "//third_party/icu/icu4c/source/i18n/numparse_currency.cpp", 279 "//third_party/icu/icu4c/source/i18n/ufieldpositer.cpp", 280 "//third_party/icu/icu4c/source/i18n/number_output.cpp", 281 "//third_party/icu/icu4c/source/i18n/number_currencysymbols.cpp", 282 "//third_party/icu/icu4c/source/i18n/curramt.cpp", 283 "//third_party/icu/icu4c/source/i18n/alphaindex.cpp", 284 "//third_party/icu/icu4c/source/i18n/indiancal.cpp", 285 "//third_party/icu/icu4c/source/i18n/dayperiodrules.cpp", 286 "//third_party/icu/icu4c/source/i18n/displayoptions.cpp", 287 "//third_party/icu/icu4c/source/i18n/quantityformatter.cpp", 288 "//third_party/icu/icu4c/source/i18n/collationfastlatinbuilder.cpp", 289 "//third_party/icu/icu4c/source/i18n/csrucode.cpp", 290 "//third_party/icu/icu4c/source/i18n/measunit_extra.cpp", 291 "//third_party/icu/icu4c/source/i18n/ethpccal.cpp", 292 "//third_party/icu/icu4c/source/i18n/anytrans.cpp", 293 "//third_party/icu/icu4c/source/i18n/number_scientific.cpp", 294 "//third_party/icu/icu4c/source/i18n/cpdtrans.cpp", 295 "//third_party/icu/icu4c/source/i18n/regexst.cpp", 296 "//third_party/icu/icu4c/source/i18n/numfmt.cpp", 297 "//third_party/icu/icu4c/source/i18n/formattedvalue.cpp", 298 "//third_party/icu/icu4c/source/i18n/unesctrn.cpp", 299 "//third_party/icu/icu4c/source/i18n/ucoleitr.cpp", 300 "//third_party/icu/icu4c/source/i18n/tmutamt.cpp", 301 "//third_party/icu/icu4c/source/i18n/transreg.cpp", 302 "//third_party/icu/icu4c/source/i18n/unum.cpp", 303 "//third_party/icu/icu4c/source/i18n/number_longnames.cpp", 304 "//third_party/icu/icu4c/source/i18n/numparse_affixes.cpp", 305 "//third_party/icu/icu4c/source/i18n/plurrule.cpp", 306 "//third_party/icu/icu4c/source/i18n/zrule.cpp", 307 "//third_party/icu/icu4c/source/i18n/collationrootelements.cpp", 308 "//third_party/icu/icu4c/source/i18n/currunit.cpp", 309 "//third_party/icu/icu4c/source/i18n/funcrepl.cpp", 310 "//third_party/icu/icu4c/source/i18n/collationdatareader.cpp", 311 "//third_party/icu/icu4c/source/i18n/buddhcal.cpp", 312 "//third_party/icu/icu4c/source/i18n/number_decimalquantity.cpp", 313 "//third_party/icu/icu4c/source/i18n/scriptset.cpp", 314 "//third_party/icu/icu4c/source/i18n/fmtable.cpp", 315 "//third_party/icu/icu4c/source/i18n/regextxt.cpp", 316 "//third_party/icu/icu4c/source/i18n/bocsu.cpp", 317 "//third_party/icu/icu4c/source/i18n/olsontz.cpp", 318 "//third_party/icu/icu4c/source/i18n/utmscale.cpp", 319 "//third_party/icu/icu4c/source/i18n/ucol.cpp", 320 "//third_party/icu/icu4c/source/i18n/currfmt.cpp", 321 "//third_party/icu/icu4c/source/i18n/hebrwcal.cpp", 322 "//third_party/icu/icu4c/source/i18n/ucol_sit.cpp", 323 "//third_party/icu/icu4c/source/i18n/rbnf.cpp", 324 "//third_party/icu/icu4c/source/i18n/decContext.cpp", 325 "//third_party/icu/icu4c/source/i18n/collationdatawriter.cpp", 326 "//third_party/icu/icu4c/source/i18n/csr2022.cpp", 327 "//third_party/icu/icu4c/source/i18n/dtrule.cpp", 328 "//third_party/icu/icu4c/source/i18n/numparse_validators.cpp", 329 "//third_party/icu/icu4c/source/i18n/numparse_parsednumber.cpp", 330 "//third_party/icu/icu4c/source/i18n/double-conversion-fast-dtoa.cpp", 331 "//third_party/icu/icu4c/source/i18n/choicfmt.cpp", 332 "//third_party/icu/icu4c/source/i18n/format.cpp", 333 "//third_party/icu/icu4c/source/i18n/reldatefmt.cpp", 334 "//third_party/icu/icu4c/source/i18n/double-conversion-double-to-string.cpp", 335 "//third_party/icu/icu4c/source/i18n/rbt_data.cpp", 336 "//third_party/icu/icu4c/source/i18n/smpdtfmt.cpp", 337 "//third_party/icu/icu4c/source/i18n/double-conversion-bignum-dtoa.cpp", 338 "//third_party/icu/icu4c/source/i18n/number_padding.cpp", 339 "//third_party/icu/icu4c/source/i18n/vtzone.cpp", 340 "//third_party/icu/icu4c/source/i18n/region.cpp", 341 "//third_party/icu/icu4c/source/i18n/coptccal.cpp", 342 "//third_party/icu/icu4c/source/i18n/datefmt.cpp", 343 "//third_party/icu/icu4c/source/i18n/formatted_string_builder.cpp", 344 "//third_party/icu/icu4c/source/i18n/numparse_impl.cpp", 345 "//third_party/icu/icu4c/source/i18n/plurfmt.cpp", 346 "//third_party/icu/icu4c/source/i18n/rematch.cpp", 347 "//third_party/icu/icu4c/source/i18n/simpletz.cpp", 348 "//third_party/icu/icu4c/source/i18n/search.cpp", 349 "//third_party/icu/icu4c/source/i18n/number_mapper.cpp", 350 "//third_party/icu/icu4c/source/i18n/inputext.cpp", 351 "//third_party/icu/icu4c/source/i18n/dtptngen.cpp", 352 "//third_party/icu/icu4c/source/i18n/coleitr.cpp", 353 "//third_party/icu/icu4c/source/i18n/collationweights.cpp", 354 "//third_party/icu/icu4c/source/i18n/number_modifiers.cpp", 355 "//third_party/icu/icu4c/source/i18n/scientificnumberformatter.cpp", 356 "//third_party/icu/icu4c/source/i18n/vzone.cpp", 357 "//third_party/icu/icu4c/source/i18n/fphdlimp.cpp", 358 "//third_party/icu/icu4c/source/i18n/udatpg.cpp", 359 "//third_party/icu/icu4c/source/i18n/collationfcd.cpp", 360 "//third_party/icu/icu4c/source/i18n/tridpars.cpp", 361 "//third_party/icu/icu4c/source/i18n/csmatch.cpp", 362 "//third_party/icu/icu4c/source/i18n/dangical.cpp", 363 "//third_party/icu/icu4c/source/i18n/ulocdata.cpp", 364 "//third_party/icu/icu4c/source/i18n/double-conversion-strtod.cpp", 365 "//third_party/icu/icu4c/source/i18n/erarules.cpp", 366 "//third_party/icu/icu4c/source/i18n/numsys.cpp", 367 "//third_party/icu/icu4c/source/i18n/csdetect.cpp", 368 "//third_party/icu/icu4c/source/i18n/japancal.cpp", 369 "//third_party/icu/icu4c/source/i18n/collation.cpp", 370 "//third_party/icu/icu4c/source/i18n/uregex.cpp", 371 "//third_party/icu/icu4c/source/i18n/timezone.cpp", 372 "//third_party/icu/icu4c/source/i18n/strmatch.cpp", 373 "//third_party/icu/icu4c/source/i18n/decNumber.cpp", 374 "//third_party/icu/icu4c/source/i18n/nortrans.cpp", 375 "//third_party/icu/icu4c/source/i18n/sortkey.cpp", 376 "//third_party/icu/icu4c/source/i18n/ulistformatter.cpp", 377 "//third_party/icu/icu4c/source/i18n/tzgnames.cpp", 378 "//third_party/icu/icu4c/source/i18n/number_multiplier.cpp", 379 "//third_party/icu/icu4c/source/i18n/ztrans.cpp", 380 "//third_party/icu/icu4c/source/i18n/persncal.cpp", 381 "//third_party/icu/icu4c/source/i18n/number_utils.cpp", 382 "//third_party/icu/icu4c/source/i18n/csrmbcs.cpp", 383 "//third_party/icu/icu4c/source/i18n/taiwncal.cpp", 384 "//third_party/icu/icu4c/source/i18n/dtitvinf.cpp", 385 "//third_party/icu/icu4c/source/i18n/astro.cpp", 386 "//third_party/icu/icu4c/source/i18n/number_patternmodifier.cpp", 387 "//third_party/icu/icu4c/source/i18n/rulebasedcollator.cpp", 388 "//third_party/icu/icu4c/source/i18n/msgfmt.cpp", 389 "//third_party/icu/icu4c/source/i18n/stsearch.cpp", 390 "//third_party/icu/icu4c/source/i18n/number_affixutils.cpp", 391 "//third_party/icu/icu4c/source/i18n/quant.cpp", 392 "//third_party/icu/icu4c/source/i18n/calendar.cpp", 393 "//third_party/icu/icu4c/source/i18n/collationroot.cpp", 394 "//third_party/icu/icu4c/source/i18n/rbt_rule.cpp", 395 "//third_party/icu/icu4c/source/i18n/number_compact.cpp", 396 "//third_party/icu/icu4c/source/i18n/name2uni.cpp", 397 "//third_party/icu/icu4c/source/i18n/chnsecal.cpp", 398 "//third_party/icu/icu4c/source/i18n/csrutf8.cpp", 399 "//third_party/icu/icu4c/source/i18n/basictz.cpp", 400 "//third_party/icu/icu4c/source/i18n/reldtfmt.cpp", 401 "//third_party/icu/icu4c/source/i18n/nultrans.cpp", 402 "//third_party/icu/icu4c/source/i18n/number_grouping.cpp", 403 "//third_party/icu/icu4c/source/i18n/number_symbolswrapper.cpp", 404 "//third_party/icu/icu4c/source/i18n/number_usageprefs.cpp", 405 "//third_party/icu/icu4c/source/i18n/numrange_capi.cpp", 406 "//third_party/icu/icu4c/source/i18n/pluralranges.cpp", 407 "//third_party/icu/icu4c/source/i18n/units_complexconverter.cpp", 408 "//third_party/icu/icu4c/source/i18n/units_converter.cpp", 409 "//third_party/icu/icu4c/source/i18n/units_data.cpp", 410 "//third_party/icu/icu4c/source/i18n/units_router.cpp", 411 "//third_party/icu/icu4c/source/i18n/rbt_pars.cpp", 412 "//third_party/icu/icu4c/source/i18n/winnmfmt.cpp", 413 "//third_party/icu/icu4c/source/i18n/uregexc.cpp", 414 "//third_party/icu/icu4c/source/i18n/fpositer.cpp", 415 "//third_party/icu/icu4c/source/i18n/tmutfmt.cpp", 416 "//third_party/icu/icu4c/source/i18n/compactdecimalformat.cpp", 417 "//third_party/icu/icu4c/source/i18n/numparse_decimal.cpp", 418 "//third_party/icu/icu4c/source/i18n/number_notation.cpp", 419 "//third_party/icu/icu4c/source/i18n/uspoof_conf.cpp", 420 "//third_party/icu/icu4c/source/i18n/utf16collationiterator.cpp", 421 "//third_party/icu/icu4c/source/i18n/udat.cpp", 422 "//third_party/icu/icu4c/source/i18n/number_skeletons.cpp", 423 "//third_party/icu/icu4c/source/i18n/utrans.cpp", 424 "//third_party/icu/icu4c/source/i18n/number_rounding.cpp", 425 "//third_party/icu/icu4c/source/i18n/double-conversion-bignum.cpp", 426 "//third_party/icu/icu4c/source/i18n/number_asformat.cpp", 427 "//third_party/icu/icu4c/source/i18n/double-conversion-string-to-double.cpp", 428 "//third_party/icu/icu4c/source/i18n/rbtz.cpp", 429 "//third_party/icu/icu4c/source/i18n/csrsbcs.cpp", 430 "//third_party/icu/icu4c/source/i18n/selfmt.cpp", 431 "//third_party/icu/icu4c/source/i18n/tztrans.cpp", 432 "//third_party/icu/icu4c/source/i18n/uspoof_impl.cpp", 433 "//third_party/icu/icu4c/source/i18n/regeximp.cpp", 434 "//third_party/icu/icu4c/source/i18n/measure.cpp", 435 "//third_party/icu/icu4c/source/i18n/fmtable_cnv.cpp", 436 "//third_party/icu/icu4c/source/i18n/uspoof.cpp", 437 "//third_party/icu/icu4c/source/i18n/gregoimp.cpp", 438 "//third_party/icu/icu4c/source/i18n/umsg.cpp", 439 "//third_party/icu/icu4c/source/i18n/numparse_symbols.cpp", 440 "//third_party/icu/icu4c/source/i18n/numrange_impl.cpp", 441 "//third_party/icu/icu4c/source/i18n/collationtailoring.cpp", 442 "//third_party/icu/icu4c/source/i18n/double-conversion-cached-powers.cpp", 443 "//third_party/icu/icu4c/source/i18n/udateintervalformat.cpp", 444 "//third_party/icu/icu4c/source/i18n/uni2name.cpp", 445 "//third_party/icu/icu4c/source/i18n/casetrn.cpp", 446 "//third_party/icu/icu4c/source/i18n/windtfmt.cpp", 447 "//third_party/icu/icu4c/source/i18n/listformatter.cpp", 448 "//third_party/icu/icu4c/source/i18n/uregion.cpp", 449 "//third_party/icu/icu4c/source/i18n/usearch.cpp", 450 "//third_party/icu/icu4c/source/i18n/brktrans.cpp", 451 "//third_party/icu/icu4c/source/i18n/gender.cpp", 452 "//third_party/icu/icu4c/source/i18n/collationruleparser.cpp", 453 "//third_party/icu/icu4c/source/i18n/rbt.cpp", 454 "//third_party/icu/icu4c/source/i18n/tzfmt.cpp", 455 "//third_party/icu/icu4c/source/i18n/dtfmtsym.cpp", 456 "//third_party/icu/icu4c/source/i18n/tolowtrn.cpp", 457 "//third_party/icu/icu4c/source/i18n/collationdatabuilder.cpp", 458 "//third_party/icu/icu4c/source/i18n/unumsys.cpp", 459 "//third_party/icu/icu4c/source/i18n/csrecog.cpp", 460 "//third_party/icu/icu4c/source/i18n/collationfastlatin.cpp", 461 "//third_party/icu/icu4c/source/i18n/esctrn.cpp", 462 "//third_party/icu/icu4c/source/i18n/collationdata.cpp", 463 "//third_party/icu/icu4c/source/i18n/titletrn.cpp", 464 "//third_party/icu/icu4c/source/i18n/ucal.cpp", 465 "//third_party/icu/icu4c/source/i18n/regexcmp.cpp", 466 "//third_party/icu/icu4c/source/i18n/wintzimpl.cpp", 467 "//third_party/icu/icu4c/source/i18n/decimfmt.cpp", 468 "//third_party/icu/icu4c/source/i18n/tmunit.cpp", 469 "//third_party/icu/icu4c/source/i18n/number_integerwidth.cpp", 470 "//third_party/icu/icu4c/source/i18n/ucsdet.cpp", 471 "//third_party/icu/icu4c/source/i18n/uspoof_build.cpp", 472 "//third_party/icu/icu4c/source/i18n/ucln_in.cpp", 473 "//third_party/icu/icu4c/source/i18n/measfmt.cpp", 474 "//third_party/icu/icu4c/source/i18n/formattedval_iterimpl.cpp", 475 "//third_party/icu/icu4c/source/i18n/toupptrn.cpp", 476 "//third_party/icu/icu4c/source/i18n/translit.cpp", 477 "//third_party/icu/icu4c/source/i18n/dtitvfmt.cpp", 478 "//third_party/icu/icu4c/source/i18n/dcfmtsym.cpp", 479 "//third_party/icu/icu4c/source/i18n/islamcal.cpp", 480 "//third_party/icu/icu4c/source/i18n/numrange_fluent.cpp", 481 "//third_party/icu/icu4c/source/i18n/gregocal.cpp", 482 "//third_party/icu/icu4c/source/i18n/zonemeta.cpp", 483 "//third_party/icu/icu4c/source/i18n/collationbuilder.cpp", 484 "//third_party/icu/icu4c/source/i18n/string_segment.cpp", 485 "//third_party/icu/icu4c/source/i18n/collationkeys.cpp", 486 "//third_party/icu/icu4c/source/i18n/coll.cpp", 487 "//third_party/icu/icu4c/source/i18n/uitercollationiterator.cpp", 488 "//third_party/icu/icu4c/source/i18n/nfsubs.cpp", 489 "//third_party/icu/icu4c/source/i18n/smpdtfst.cpp", 490 "//third_party/icu/icu4c/source/i18n/collationsettings.cpp", 491 "//third_party/icu/icu4c/source/i18n/formattedval_sbimpl.cpp", 492 "//third_party/icu/icu4c/source/i18n/strrepl.cpp", 493 "//third_party/icu/icu4c/source/i18n/standardplural.cpp", 494 "//third_party/icu/icu4c/source/i18n/ucol_res.cpp", 495 "//third_party/icu/icu4c/source/i18n/repattrn.cpp", 496 "//third_party/icu/icu4c/source/i18n/tznames_impl.cpp", 497 "//third_party/icu/icu4c/source/i18n/numparse_compositions.cpp", 498 "//third_party/icu/icu4c/source/i18n/rbt_set.cpp", 499 "//third_party/icu/icu4c/source/i18n/currpinf.cpp", 500 "//third_party/icu/icu4c/source/i18n/collationsets.cpp", 501 "//third_party/icu/icu4c/source/i18n/cecal.cpp", 502 "//third_party/icu/icu4c/source/i18n/tzrule.cpp", 503 "//third_party/icu/icu4c/source/i18n/collationiterator.cpp", 504 "//third_party/icu/icu4c/source/i18n/numparse_scientific.cpp", 505 "//third_party/icu/icu4c/source/i18n/number_patternstring.cpp", 506 "//third_party/icu/icu4c/source/i18n/utf8collationiterator.cpp", 507 "//third_party/icu/icu4c/source/i18n/sharedbreakiterator.cpp", 508 "//third_party/icu/icu4c/source/i18n/number_fluent.cpp", 509 "//third_party/icu/icu4c/source/i18n/measunit.cpp", 510 "//third_party/icu/icu4c/source/i18n/collationcompare.cpp", 511 "//third_party/icu/icu4c/source/i18n/number_formatimpl.cpp", 512 "//third_party/icu/icu4c/source/i18n/number_decimfmtprops.cpp", 513 "//third_party/icu/icu4c/source/i18n/nfrs.cpp", 514 "//third_party/icu/icu4c/source/i18n/tznames.cpp", 515 "//third_party/icu/icu4c/source/i18n/remtrans.cpp", 516 "//third_party/icu/icu4c/source/i18n/nfrule.cpp", 517] 518 519ohos_shared_library("shared_icuuc") { 520 ldflags = [ 521 "-shared", 522 "-lm", 523 ] 524 525 configs = [ 526 ":icu_config", 527 "//build/config/compiler:rtti", 528 ] 529 all_dependent_configs = [ ":static_icustubdata_all_deps_config" ] 530 public_configs = [ 531 ":icu_config", 532 ":static_icustubdata_all_deps_config", 533 ] 534 defines = [ 535 "U_ATTRIBUTE_DEPRECATED=", 536 "U_COMMON_IMPLEMENTATION", 537 "UPRV_BLOCK_MACRO_BEGIN=", 538 "UPRV_BLOCK_MACRO_END=", 539 "UCONFIG_USE_WINDOWS_LCID_MAPPING_API=0", 540 "_REENTRANT", 541 ] 542 sources = icu_common_source 543 deps = [ 544 ":ohos_icudat", 545 ":static_icustubdata", 546 ] 547 cflags_cc = [ 548 "-O3", 549 "-W", 550 "-Wall", 551 "-pedantic", 552 "-Wpointer-arith", 553 "-Wwrite-strings", 554 "-Wno-error=unused-parameter", 555 "-Wno-error=unused-const-variable", 556 "-Wno-error=unneeded-internal-declaration", 557 "-std=c++11", 558 "-Wno-ignored-attributes", 559 "-Wno-unused-but-set-variable", 560 "-Wno-deprecated-declarations", 561 ] 562 563 part_name = "$icu_part_name" 564 subsystem_name = "$icu_subsystem_name" 565 566 innerapi_tags = [ "platformsdk" ] 567 install_images = [ system_base_dir ] 568 relative_install_dir = "platformsdk" 569 output_name = "hmicuuc" 570 install_enable = true 571} 572 573ohos_shared_library("shared_icui18n") { 574 ldflags = [ 575 "-shared", 576 "-lm", 577 ] 578 579 sources = icu_i18n_source 580 configs = [ 581 ":icu_config", 582 "//build/config/compiler:rtti", 583 ] 584 deps = [ ":shared_icuuc" ] 585 defines = [ 586 "U_ATTRIBUTE_DEPRECATED=", 587 "U_I18N_IMPLEMENTATION", 588 "UPRV_BLOCK_MACRO_BEGIN=", 589 "UPRV_BLOCK_MACRO_END=", 590 "_REENTRANT", 591 "PIC", 592 ] 593 cflags_cc = [ 594 "-O3", 595 "-W", 596 "-Wall", 597 "-pedantic", 598 "-Wpointer-arith", 599 "-Wno-error=unused-parameter", 600 "-Wno-error=unused-const-variable", 601 "-Wno-error=implicit-float-conversion", 602 "-Wno-error=unneeded-internal-declaration", 603 "-Wwrite-strings", 604 "-std=c++11", 605 "-Wno-ignored-attributes", 606 "-Wno-unused-but-set-variable", 607 "-Wno-deprecated-declarations", 608 ] 609 if (!is_mingw) { 610 cflags_cc += [ "-fPIC" ] 611 ldflags += [ "-ldl" ] 612 } 613 614 part_name = "$icu_part_name" 615 subsystem_name = "$icu_subsystem_name" 616 617 innerapi_tags = [ "platformsdk" ] 618 install_images = [ system_base_dir ] 619 relative_install_dir = "platformsdk" 620 output_name = "hmicui18n" 621 install_enable = true 622} 623 624if (defined(is_arkui_x) && is_arkui_x) { 625 ohos_source_set("static_icuuc") { 626 configs = [ 627 ":icu_config", 628 "//build/config/compiler:rtti", 629 ] 630 631 if (!(defined(is_arkui_x) && is_arkui_x) || 632 current_toolchain == host_toolchain) { 633 deps = [ ":static_icustubdata" ] 634 } 635 defines = [ 636 "U_ATTRIBUTE_DEPRECATED=", 637 "U_COMMON_IMPLEMENTATION", 638 "U_STATIC_IMPLEMENTATION", 639 "UPRV_BLOCK_MACRO_BEGIN=", 640 "UPRV_BLOCK_MACRO_END=", 641 "UCONFIG_USE_WINDOWS_LCID_MAPPING_API=0", 642 "_REENTRANT", 643 ] 644 sources = icu_common_source 645 cflags_cc = [ 646 "-W", 647 "-Wall", 648 "-pedantic", 649 "-Wpointer-arith", 650 "-Wwrite-strings", 651 "-std=c++11", 652 "-Wno-error=unused-parameter", 653 "-Wno-error=unused-const-variable", 654 "-Wno-error=unneeded-internal-declaration", 655 "-fvisibility-inlines-hidden", 656 "-Wno-unused-function", 657 "-Wno-ignored-attributes", 658 "-Wno-unused-but-set-variable", 659 "-Wno-deprecated-declarations", 660 ] 661 662 cflags = [ 663 "-fdata-sections", 664 "-ffunction-sections", 665 "-Wno-unused-function", 666 ] 667 668 ldflags = [ 669 "-static", 670 "-ldl", 671 "-lm", 672 ] 673 674 output_name = "hmicuuc" 675 part_name = "$icu_part_name" 676 subsystem_name = "$icu_subsystem_name" 677 } 678} else { 679 ohos_static_library("static_icuuc") { 680 configs = [ 681 ":icu_config", 682 "//build/config/compiler:rtti", 683 ] 684 public_configs = [ 685 ":icu_config", 686 ":static_icustubdata_all_deps_config", 687 ] 688 689 if (!(defined(is_arkui_x) && is_arkui_x) || 690 current_toolchain == host_toolchain) { 691 deps = [ ":static_icustubdata" ] 692 } 693 defines = [ 694 "U_ATTRIBUTE_DEPRECATED=", 695 "U_COMMON_IMPLEMENTATION", 696 "U_STATIC_IMPLEMENTATION", 697 "UPRV_BLOCK_MACRO_BEGIN=", 698 "UPRV_BLOCK_MACRO_END=", 699 "UCONFIG_USE_WINDOWS_LCID_MAPPING_API=0", 700 "_REENTRANT", 701 ] 702 sources = icu_common_source 703 cflags_cc = [ 704 "-W", 705 "-Wall", 706 "-pedantic", 707 "-Wpointer-arith", 708 "-Wwrite-strings", 709 "-std=c++11", 710 "-Wno-error=unused-parameter", 711 "-Wno-error=unused-const-variable", 712 "-Wno-error=unneeded-internal-declaration", 713 "-fvisibility-inlines-hidden", 714 "-Wno-unused-function", 715 "-Wno-ignored-attributes", 716 "-Wno-unused-but-set-variable", 717 "-Wno-deprecated-declarations", 718 ] 719 720 cflags = [ 721 "-fdata-sections", 722 "-ffunction-sections", 723 "-Wno-unused-function", 724 ] 725 726 ldflags = [ 727 "-static", 728 "-ldl", 729 "-lm", 730 ] 731 732 output_name = "hmicuuc" 733 part_name = "$icu_part_name" 734 subsystem_name = "$icu_subsystem_name" 735 } 736} 737 738if (defined(is_arkui_x) && is_arkui_x) { 739 ohos_source_set("static_icui18n") { 740 sources = icu_i18n_source 741 configs = [ 742 ":icu_config", 743 "//build/config/compiler:rtti", 744 ] 745 deps = [ ":static_icuuc" ] 746 defines = [ 747 "U_ATTRIBUTE_DEPRECATED=", 748 "U_I18N_IMPLEMENTATION", 749 "U_STATIC_IMPLEMENTATION", 750 "UPRV_BLOCK_MACRO_BEGIN=", 751 "UPRV_BLOCK_MACRO_END=", 752 "_REENTRANT", 753 "PIC", 754 ] 755 756 cflags_cc = [ 757 "-W", 758 "-Wall", 759 "-pedantic", 760 "-Wpointer-arith", 761 "-Wwrite-strings", 762 "-Wno-error=unused-parameter", 763 "-Wno-error=unused-const-variable", 764 "-Wno-error=implicit-float-conversion", 765 "-Wno-error=unneeded-internal-declaration", 766 "-std=c++11", 767 "-fvisibility-inlines-hidden", 768 "-fno-exceptions", 769 "-Wno-ignored-attributes", 770 "-Wno-unused-but-set-variable", 771 "-Wno-deprecated-declarations", 772 ] 773 774 if (is_mingw) { 775 cflags_cc += [ "-DWINVER=0x0601" ] 776 } else { 777 cflags_cc += [ "-fPIC" ] 778 } 779 780 cflags = [ 781 "-fdata-sections", 782 "-ffunction-sections", 783 ] 784 785 ldflags = [ 786 "-static", 787 "-ldl", 788 "-lm", 789 ] 790 output_name = "hmicui18n" 791 part_name = "$icu_part_name" 792 subsystem_name = "$icu_subsystem_name" 793 } 794} else { 795 ohos_static_library("static_icui18n") { 796 sources = icu_i18n_source 797 configs = [ 798 ":icu_config", 799 "//build/config/compiler:rtti", 800 ] 801 deps = [ ":static_icuuc" ] 802 defines = [ 803 "U_ATTRIBUTE_DEPRECATED=", 804 "U_I18N_IMPLEMENTATION", 805 "U_STATIC_IMPLEMENTATION", 806 "UPRV_BLOCK_MACRO_BEGIN=", 807 "UPRV_BLOCK_MACRO_END=", 808 "_REENTRANT", 809 "PIC", 810 ] 811 812 cflags_cc = [ 813 "-W", 814 "-Wall", 815 "-pedantic", 816 "-Wpointer-arith", 817 "-Wwrite-strings", 818 "-Wno-error=unused-parameter", 819 "-Wno-error=unused-const-variable", 820 "-Wno-error=implicit-float-conversion", 821 "-Wno-error=unneeded-internal-declaration", 822 "-std=c++11", 823 "-fvisibility-inlines-hidden", 824 "-fno-exceptions", 825 "-Wno-ignored-attributes", 826 "-Wno-unused-but-set-variable", 827 "-Wno-deprecated-declarations", 828 ] 829 830 if (is_mingw) { 831 cflags_cc += [ "-DWINVER=0x0601" ] 832 } else { 833 cflags_cc += [ "-fPIC" ] 834 } 835 836 cflags = [ 837 "-fdata-sections", 838 "-ffunction-sections", 839 ] 840 841 ldflags = [ 842 "-static", 843 "-ldl", 844 "-lm", 845 ] 846 output_name = "hmicui18n" 847 part_name = "$icu_part_name" 848 subsystem_name = "$icu_subsystem_name" 849 } 850} 851 852ohos_static_library("static_icu") { 853 configs = [ 854 ":icu_config", 855 "//build/config/compiler:rtti", 856 ] 857 defines = [ 858 "U_ATTRIBUTE_DEPRECATED=", 859 "U_COMMON_IMPLEMENTATION", 860 "U_I18N_IMPLEMENTATION", 861 "U_STATIC_IMPLEMENTATION", 862 "UPRV_BLOCK_MACRO_BEGIN=", 863 "UPRV_BLOCK_MACRO_END=", 864 "UCONFIG_USE_WINDOWS_LCID_MAPPING_API=0", 865 "_REENTRANT", 866 ] 867 sources = icu_common_source 868 sources += icu_i18n_source 869 sources += [ "//third_party/icu/ohos_icu4j/data/lite/icudt72l_dat.S" ] 870 cflags_cc = [ 871 "-W", 872 "-Wall", 873 "-pedantic", 874 "-Wpointer-arith", 875 "-Wwrite-strings", 876 "-std=c++11", 877 "-Wno-error=unused-parameter", 878 "-Wno-error=unused-const-variable", 879 "-Wno-error=unneeded-internal-declaration", 880 "-fvisibility-inlines-hidden", 881 "-Wno-unused-function", 882 "-Wno-ignored-attributes", 883 "-Wno-unused-but-set-variable", 884 "-Wno-deprecated-declarations", 885 ] 886 887 cflags = [ 888 "-fvisibility=hidden", 889 "-fdata-sections", 890 "-ffunction-sections", 891 "-Wno-unused-function", 892 ] 893 894 ldflags = [ 895 "-static", 896 "-ldl", 897 "-lm", 898 ] 899 900 output_name = "hmicu" 901 part_name = "$icu_part_name" 902 subsystem_name = "$icu_subsystem_name" 903} 904