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