# Copyright (c) 2021 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") import("//third_party/icu/icu.gni") import("//third_party/icu/icu4c/icu4c_config.gni") config("icu_config") { include_dirs = [ "//third_party/icu/icu4c/source/common", "//third_party/icu/icu4c/source/i18n", "//third_party/icu/icu4c/source", ] if ("${product_name}" == "ohcore") { defines = [ "U_ICU_USE_OLD_DATA" ] } } config("static_icustubdata_all_deps_config") { include_dirs = [ "//third_party/icu/icu4c/source/common" ] } ohos_static_library("static_icustubdata") { configs = [ ":icu_config", "//build/config/compiler:rtti", ] sources = [ "//third_party/icu/icu4c/source/stubdata/stubdata.cpp" ] cflags_cc = [ "-O3", "-W", "-Wall", "-pedantic", "-Wpointer-arith", "-Wwrite-strings", "-std=c++11", "-Wno-ignored-attributes", "-Wno-deprecated-declarations", ] output_dir = "${root_out_dir}/third_party/icu/stubdata" output_name = "stubdata" part_name = "icu" subsystem_name = "thirdparty" } ohos_prebuilt_etc("ohos_icudat") { if ("${product_name}" == "ohcore") { source = "//third_party/icu/ohos_icu4j/data/icudt68l.dat" } else if ("${build_feature}" == "lite") { source = "//third_party/icu/ohos_icu4j/data/lite/icudt72l.dat" } else if (icu_support_locales) { source = "//third_party/icu/ohos_icu4j/data/icudt72l.dat" } else { source = "//third_party/icu/ohos_icu4j/data/lite/icudt72l.dat" } module_install_dir = "usr/ohos_icu/" part_name = "icu" subsystem_name = "thirdparty" } icu_common_source = [ "//third_party/icu/icu4c/source/common/ubiditransform.cpp", "//third_party/icu/icu4c/source/common/locutil.cpp", "//third_party/icu/icu4c/source/common/cstring.cpp", "//third_party/icu/icu4c/source/common/rbbiscan.cpp", "//third_party/icu/icu4c/source/common/utrie.cpp", "//third_party/icu/icu4c/source/common/cwchar.cpp", "//third_party/icu/icu4c/source/common/bytestriebuilder.cpp", "//third_party/icu/icu4c/source/common/umapfile.cpp", "//third_party/icu/icu4c/source/common/uenum.cpp", "//third_party/icu/icu4c/source/common/putil.cpp", "//third_party/icu/icu4c/source/common/bytestrieiterator.cpp", "//third_party/icu/icu4c/source/common/unifunct.cpp", "//third_party/icu/icu4c/source/common/rbbistbl.cpp", "//third_party/icu/icu4c/source/common/bytestrie.cpp", "//third_party/icu/icu4c/source/common/ucptrie.cpp", "//third_party/icu/icu4c/source/common/errorcode.cpp", "//third_party/icu/icu4c/source/common/unames.cpp", "//third_party/icu/icu4c/source/common/restrace.cpp", "//third_party/icu/icu4c/source/common/util.cpp", "//third_party/icu/icu4c/source/common/sharedobject.cpp", "//third_party/icu/icu4c/source/common/bmpset.cpp", "//third_party/icu/icu4c/source/common/servlk.cpp", "//third_party/icu/icu4c/source/common/ustrcase_locale.cpp", "//third_party/icu/icu4c/source/common/localeprioritylist.cpp", "//third_party/icu/icu4c/source/common/ucnvbocu.cpp", "//third_party/icu/icu4c/source/common/ucharstrieiterator.cpp", "//third_party/icu/icu4c/source/common/unisetspan.cpp", "//third_party/icu/icu4c/source/common/locavailable.cpp", "//third_party/icu/icu4c/source/common/unistr.cpp", "//third_party/icu/icu4c/source/common/ustr_wcs.cpp", "//third_party/icu/icu4c/source/common/ucnv_err.cpp", "//third_party/icu/icu4c/source/common/ucnv_lmb.cpp", "//third_party/icu/icu4c/source/common/rbbidata.cpp", "//third_party/icu/icu4c/source/common/uarrsort.cpp", "//third_party/icu/icu4c/source/common/ucnv2022.cpp", "//third_party/icu/icu4c/source/common/uresbund.cpp", "//third_party/icu/icu4c/source/common/ucnvsel.cpp", "//third_party/icu/icu4c/source/common/unistr_titlecase_brkiter.cpp", "//third_party/icu/icu4c/source/common/loadednormalizer2impl.cpp", "//third_party/icu/icu4c/source/common/ustring.cpp", "//third_party/icu/icu4c/source/common/unifilt.cpp", "//third_party/icu/icu4c/source/common/ubrk.cpp", "//third_party/icu/icu4c/source/common/bytesinkutil.cpp", "//third_party/icu/icu4c/source/common/localebuilder.cpp", "//third_party/icu/icu4c/source/common/rbbi_cache.cpp", "//third_party/icu/icu4c/source/common/ucnvhz.cpp", "//third_party/icu/icu4c/source/common/uniset_closure.cpp", "//third_party/icu/icu4c/source/common/uloc.cpp", "//third_party/icu/icu4c/source/common/utypes.cpp", "//third_party/icu/icu4c/source/common/ucnv_u16.cpp", "//third_party/icu/icu4c/source/common/uniset_props.cpp", "//third_party/icu/icu4c/source/common/locbased.cpp", "//third_party/icu/icu4c/source/common/unistr_cnv.cpp", "//third_party/icu/icu4c/source/common/ucnv_ct.cpp", "//third_party/icu/icu4c/source/common/unormcmp.cpp", "//third_party/icu/icu4c/source/common/wintz.cpp", "//third_party/icu/icu4c/source/common/ruleiter.cpp", "//third_party/icu/icu4c/source/common/utrie2.cpp", "//third_party/icu/icu4c/source/common/locresdata.cpp", "//third_party/icu/icu4c/source/common/ucnv_u8.cpp", "//third_party/icu/icu4c/source/common/uscript_props.cpp", "//third_party/icu/icu4c/source/common/locdspnm.cpp", "//third_party/icu/icu4c/source/common/locid.cpp", "//third_party/icu/icu4c/source/common/rbbitblb.cpp", "//third_party/icu/icu4c/source/common/icudataver.cpp", "//third_party/icu/icu4c/source/common/ubidi.cpp", "//third_party/icu/icu4c/source/common/brkiter.cpp", "//third_party/icu/icu4c/source/common/uvectr32.cpp", "//third_party/icu/icu4c/source/common/usc_impl.cpp", "//third_party/icu/icu4c/source/common/normlzr.cpp", "//third_party/icu/icu4c/source/common/icuplug.cpp", "//third_party/icu/icu4c/source/common/uvector.cpp", "//third_party/icu/icu4c/source/common/ucnv_set.cpp", "//third_party/icu/icu4c/source/common/udataswp.cpp", "//third_party/icu/icu4c/source/common/uhash_us.cpp", "//third_party/icu/icu4c/source/common/rbbisetb.cpp", "//third_party/icu/icu4c/source/common/ubidi_props.cpp", "//third_party/icu/icu4c/source/common/ucmndata.cpp", "//third_party/icu/icu4c/source/common/locdistance.cpp", "//third_party/icu/icu4c/source/common/serv.cpp", "//third_party/icu/icu4c/source/common/utrie_swap.cpp", "//third_party/icu/icu4c/source/common/uchar.cpp", "//third_party/icu/icu4c/source/common/uloc_tag.cpp", "//third_party/icu/icu4c/source/common/ustr_titlecase_brkiter.cpp", "//third_party/icu/icu4c/source/common/pluralmap.cpp", "//third_party/icu/icu4c/source/common/lsr.cpp", "//third_party/icu/icu4c/source/common/uhash.cpp", "//third_party/icu/icu4c/source/common/propname.cpp", "//third_party/icu/icu4c/source/common/ucnvlat1.cpp", "//third_party/icu/icu4c/source/common/ucnv_ext.cpp", "//third_party/icu/icu4c/source/common/ubidiln.cpp", "//third_party/icu/icu4c/source/common/ucnv_cb.cpp", "//third_party/icu/icu4c/source/common/static_unicode_sets.cpp", "//third_party/icu/icu4c/source/common/dictbe.cpp", "//third_party/icu/icu4c/source/common/stringtriebuilder.cpp", "//third_party/icu/icu4c/source/common/uvectr64.cpp", "//third_party/icu/icu4c/source/common/patternprops.cpp", "//third_party/icu/icu4c/source/common/propsvec.cpp", "//third_party/icu/icu4c/source/common/ustrenum.cpp", "//third_party/icu/icu4c/source/common/ucnv_u32.cpp", "//third_party/icu/icu4c/source/common/ustr_cnv.cpp", "//third_party/icu/icu4c/source/common/edits.cpp", "//third_party/icu/icu4c/source/common/loclikely.cpp", "//third_party/icu/icu4c/source/common/parsepos.cpp", "//third_party/icu/icu4c/source/common/loclikelysubtags.cpp", "//third_party/icu/icu4c/source/common/uloc_keytype.cpp", "//third_party/icu/icu4c/source/common/appendable.cpp", "//third_party/icu/icu4c/source/common/filteredbrk.cpp", "//third_party/icu/icu4c/source/common/ucharstrie.cpp", "//third_party/icu/icu4c/source/common/uiter.cpp", "//third_party/icu/icu4c/source/common/messagepattern.cpp", "//third_party/icu/icu4c/source/common/servrbf.cpp", "//third_party/icu/icu4c/source/common/rbbirb.cpp", "//third_party/icu/icu4c/source/common/uinit.cpp", "//third_party/icu/icu4c/source/common/stringpiece.cpp", "//third_party/icu/icu4c/source/common/normalizer2impl.cpp", "//third_party/icu/icu4c/source/common/ucharstriebuilder.cpp", "//third_party/icu/icu4c/source/common/uobject.cpp", "//third_party/icu/icu4c/source/common/ushape.cpp", "//third_party/icu/icu4c/source/common/ucasemap.cpp", "//third_party/icu/icu4c/source/common/uinvchar.cpp", "//third_party/icu/icu4c/source/common/utf_impl.cpp", "//third_party/icu/icu4c/source/common/ustack.cpp", "//third_party/icu/icu4c/source/common/characterproperties.cpp", "//third_party/icu/icu4c/source/common/rbbi.cpp", "//third_party/icu/icu4c/source/common/ucasemap_titlecase_brkiter.cpp", "//third_party/icu/icu4c/source/common/caniter.cpp", "//third_party/icu/icu4c/source/common/ucnv_bld.cpp", "//third_party/icu/icu4c/source/common/ucln_cmn.cpp", "//third_party/icu/icu4c/source/common/chariter.cpp", "//third_party/icu/icu4c/source/common/punycode.cpp", "//third_party/icu/icu4c/source/common/ustrtrns.cpp", "//third_party/icu/icu4c/source/common/ucnvmbcs.cpp", "//third_party/icu/icu4c/source/common/bytestream.cpp", "//third_party/icu/icu4c/source/common/servlkf.cpp", "//third_party/icu/icu4c/source/common/udatamem.cpp", "//third_party/icu/icu4c/source/common/ucnv_io.cpp", "//third_party/icu/icu4c/source/common/dtintrv.cpp", "//third_party/icu/icu4c/source/common/cstr.cpp", "//third_party/icu/icu4c/source/common/ulist.cpp", "//third_party/icu/icu4c/source/common/ucnvisci.cpp", "//third_party/icu/icu4c/source/common/brkeng.cpp", "//third_party/icu/icu4c/source/common/localematcher.cpp", "//third_party/icu/icu4c/source/common/umutablecptrie.cpp", "//third_party/icu/icu4c/source/common/locdispnames.cpp", "//third_party/icu/icu4c/source/common/uchriter.cpp", "//third_party/icu/icu4c/source/common/uresdata.cpp", "//third_party/icu/icu4c/source/common/unifiedcache.cpp", "//third_party/icu/icu4c/source/common/dictionarydata.cpp", "//third_party/icu/icu4c/source/common/uscript.cpp", "//third_party/icu/icu4c/source/common/ucnv_u7.cpp", "//third_party/icu/icu4c/source/common/unistr_case.cpp", "//third_party/icu/icu4c/source/common/ucat.cpp", "//third_party/icu/icu4c/source/common/resource.cpp", "//third_party/icu/icu4c/source/common/usprep.cpp", "//third_party/icu/icu4c/source/common/ucnvdisp.cpp", "//third_party/icu/icu4c/source/common/uniset.cpp", "//third_party/icu/icu4c/source/common/ucnv.cpp", "//third_party/icu/icu4c/source/common/ucnvscsu.cpp", "//third_party/icu/icu4c/source/common/uset_props.cpp", "//third_party/icu/icu4c/source/common/umutex.cpp", "//third_party/icu/icu4c/source/common/ucnv_cnv.cpp", "//third_party/icu/icu4c/source/common/locmap.cpp", "//third_party/icu/icu4c/source/common/resbund.cpp", "//third_party/icu/icu4c/source/common/filterednormalizer2.cpp", "//third_party/icu/icu4c/source/common/uprops.cpp", "//third_party/icu/icu4c/source/common/schriter.cpp", "//third_party/icu/icu4c/source/common/simpleformatter.cpp", "//third_party/icu/icu4c/source/common/uts46.cpp", "//third_party/icu/icu4c/source/common/ucol_swp.cpp", "//third_party/icu/icu4c/source/common/udata.cpp", "//third_party/icu/icu4c/source/common/ustrfmt.cpp", "//third_party/icu/icu4c/source/common/servslkf.cpp", "//third_party/icu/icu4c/source/common/servls.cpp", "//third_party/icu/icu4c/source/common/unistr_props.cpp", "//third_party/icu/icu4c/source/common/utrace.cpp", "//third_party/icu/icu4c/source/common/utrie2_builder.cpp", "//third_party/icu/icu4c/source/common/ucase.cpp", "//third_party/icu/icu4c/source/common/cmemory.cpp", "//third_party/icu/icu4c/source/common/uset.cpp", "//third_party/icu/icu4c/source/common/unistr_case_locale.cpp", "//third_party/icu/icu4c/source/common/ures_cnv.cpp", "//third_party/icu/icu4c/source/common/charstr.cpp", "//third_party/icu/icu4c/source/common/uidna.cpp", "//third_party/icu/icu4c/source/common/normalizer2.cpp", "//third_party/icu/icu4c/source/common/resbund_cnv.cpp", "//third_party/icu/icu4c/source/common/umath.cpp", "//third_party/icu/icu4c/source/common/utext.cpp", "//third_party/icu/icu4c/source/common/ucurr.cpp", "//third_party/icu/icu4c/source/common/util_props.cpp", "//third_party/icu/icu4c/source/common/unorm.cpp", "//third_party/icu/icu4c/source/common/ubidiwrt.cpp", "//third_party/icu/icu4c/source/common/usetiter.cpp", "//third_party/icu/icu4c/source/common/rbbinode.cpp", "//third_party/icu/icu4c/source/common/ustrcase.cpp", "//third_party/icu/icu4c/source/common/servnotf.cpp", "//third_party/icu/icu4c/source/common/emojiprops.cpp", "//third_party/icu/icu4c/source/common/lstmbe.cpp", "//third_party/icu/icu4c/source/ohos/init_data.cpp", ] icu_i18n_source = [ "//third_party/icu/icu4c/source/i18n/number_capi.cpp", "//third_party/icu/icu4c/source/i18n/upluralrules.cpp", "//third_party/icu/icu4c/source/i18n/numparse_currency.cpp", "//third_party/icu/icu4c/source/i18n/ufieldpositer.cpp", "//third_party/icu/icu4c/source/i18n/number_output.cpp", "//third_party/icu/icu4c/source/i18n/number_currencysymbols.cpp", "//third_party/icu/icu4c/source/i18n/curramt.cpp", "//third_party/icu/icu4c/source/i18n/alphaindex.cpp", "//third_party/icu/icu4c/source/i18n/indiancal.cpp", "//third_party/icu/icu4c/source/i18n/dayperiodrules.cpp", "//third_party/icu/icu4c/source/i18n/displayoptions.cpp", "//third_party/icu/icu4c/source/i18n/quantityformatter.cpp", "//third_party/icu/icu4c/source/i18n/collationfastlatinbuilder.cpp", "//third_party/icu/icu4c/source/i18n/csrucode.cpp", "//third_party/icu/icu4c/source/i18n/measunit_extra.cpp", "//third_party/icu/icu4c/source/i18n/ethpccal.cpp", "//third_party/icu/icu4c/source/i18n/anytrans.cpp", "//third_party/icu/icu4c/source/i18n/number_scientific.cpp", "//third_party/icu/icu4c/source/i18n/cpdtrans.cpp", "//third_party/icu/icu4c/source/i18n/regexst.cpp", "//third_party/icu/icu4c/source/i18n/numfmt.cpp", "//third_party/icu/icu4c/source/i18n/formattedvalue.cpp", "//third_party/icu/icu4c/source/i18n/unesctrn.cpp", "//third_party/icu/icu4c/source/i18n/ucoleitr.cpp", "//third_party/icu/icu4c/source/i18n/tmutamt.cpp", "//third_party/icu/icu4c/source/i18n/transreg.cpp", "//third_party/icu/icu4c/source/i18n/unum.cpp", "//third_party/icu/icu4c/source/i18n/number_longnames.cpp", "//third_party/icu/icu4c/source/i18n/numparse_affixes.cpp", "//third_party/icu/icu4c/source/i18n/plurrule.cpp", "//third_party/icu/icu4c/source/i18n/zrule.cpp", "//third_party/icu/icu4c/source/i18n/collationrootelements.cpp", "//third_party/icu/icu4c/source/i18n/currunit.cpp", "//third_party/icu/icu4c/source/i18n/funcrepl.cpp", "//third_party/icu/icu4c/source/i18n/collationdatareader.cpp", "//third_party/icu/icu4c/source/i18n/buddhcal.cpp", "//third_party/icu/icu4c/source/i18n/number_decimalquantity.cpp", "//third_party/icu/icu4c/source/i18n/scriptset.cpp", "//third_party/icu/icu4c/source/i18n/fmtable.cpp", "//third_party/icu/icu4c/source/i18n/regextxt.cpp", "//third_party/icu/icu4c/source/i18n/bocsu.cpp", "//third_party/icu/icu4c/source/i18n/olsontz.cpp", "//third_party/icu/icu4c/source/i18n/utmscale.cpp", "//third_party/icu/icu4c/source/i18n/ucol.cpp", "//third_party/icu/icu4c/source/i18n/currfmt.cpp", "//third_party/icu/icu4c/source/i18n/hebrwcal.cpp", "//third_party/icu/icu4c/source/i18n/ucol_sit.cpp", "//third_party/icu/icu4c/source/i18n/rbnf.cpp", "//third_party/icu/icu4c/source/i18n/decContext.cpp", "//third_party/icu/icu4c/source/i18n/collationdatawriter.cpp", "//third_party/icu/icu4c/source/i18n/csr2022.cpp", "//third_party/icu/icu4c/source/i18n/dtrule.cpp", "//third_party/icu/icu4c/source/i18n/numparse_validators.cpp", "//third_party/icu/icu4c/source/i18n/numparse_parsednumber.cpp", "//third_party/icu/icu4c/source/i18n/double-conversion-fast-dtoa.cpp", "//third_party/icu/icu4c/source/i18n/choicfmt.cpp", "//third_party/icu/icu4c/source/i18n/format.cpp", "//third_party/icu/icu4c/source/i18n/reldatefmt.cpp", "//third_party/icu/icu4c/source/i18n/double-conversion-double-to-string.cpp", "//third_party/icu/icu4c/source/i18n/rbt_data.cpp", "//third_party/icu/icu4c/source/i18n/smpdtfmt.cpp", "//third_party/icu/icu4c/source/i18n/double-conversion-bignum-dtoa.cpp", "//third_party/icu/icu4c/source/i18n/number_padding.cpp", "//third_party/icu/icu4c/source/i18n/vtzone.cpp", "//third_party/icu/icu4c/source/i18n/region.cpp", "//third_party/icu/icu4c/source/i18n/coptccal.cpp", "//third_party/icu/icu4c/source/i18n/datefmt.cpp", "//third_party/icu/icu4c/source/i18n/formatted_string_builder.cpp", "//third_party/icu/icu4c/source/i18n/numparse_impl.cpp", "//third_party/icu/icu4c/source/i18n/plurfmt.cpp", "//third_party/icu/icu4c/source/i18n/rematch.cpp", "//third_party/icu/icu4c/source/i18n/simpletz.cpp", "//third_party/icu/icu4c/source/i18n/search.cpp", "//third_party/icu/icu4c/source/i18n/number_mapper.cpp", "//third_party/icu/icu4c/source/i18n/inputext.cpp", "//third_party/icu/icu4c/source/i18n/dtptngen.cpp", "//third_party/icu/icu4c/source/i18n/coleitr.cpp", "//third_party/icu/icu4c/source/i18n/collationweights.cpp", "//third_party/icu/icu4c/source/i18n/number_modifiers.cpp", "//third_party/icu/icu4c/source/i18n/scientificnumberformatter.cpp", "//third_party/icu/icu4c/source/i18n/vzone.cpp", "//third_party/icu/icu4c/source/i18n/fphdlimp.cpp", "//third_party/icu/icu4c/source/i18n/udatpg.cpp", "//third_party/icu/icu4c/source/i18n/collationfcd.cpp", "//third_party/icu/icu4c/source/i18n/tridpars.cpp", "//third_party/icu/icu4c/source/i18n/csmatch.cpp", "//third_party/icu/icu4c/source/i18n/dangical.cpp", "//third_party/icu/icu4c/source/i18n/ulocdata.cpp", "//third_party/icu/icu4c/source/i18n/double-conversion-strtod.cpp", "//third_party/icu/icu4c/source/i18n/erarules.cpp", "//third_party/icu/icu4c/source/i18n/numsys.cpp", "//third_party/icu/icu4c/source/i18n/csdetect.cpp", "//third_party/icu/icu4c/source/i18n/japancal.cpp", "//third_party/icu/icu4c/source/i18n/collation.cpp", "//third_party/icu/icu4c/source/i18n/uregex.cpp", "//third_party/icu/icu4c/source/i18n/timezone.cpp", "//third_party/icu/icu4c/source/i18n/strmatch.cpp", "//third_party/icu/icu4c/source/i18n/decNumber.cpp", "//third_party/icu/icu4c/source/i18n/nortrans.cpp", "//third_party/icu/icu4c/source/i18n/sortkey.cpp", "//third_party/icu/icu4c/source/i18n/ulistformatter.cpp", "//third_party/icu/icu4c/source/i18n/tzgnames.cpp", "//third_party/icu/icu4c/source/i18n/number_multiplier.cpp", "//third_party/icu/icu4c/source/i18n/ztrans.cpp", "//third_party/icu/icu4c/source/i18n/persncal.cpp", "//third_party/icu/icu4c/source/i18n/number_utils.cpp", "//third_party/icu/icu4c/source/i18n/csrmbcs.cpp", "//third_party/icu/icu4c/source/i18n/taiwncal.cpp", "//third_party/icu/icu4c/source/i18n/dtitvinf.cpp", "//third_party/icu/icu4c/source/i18n/astro.cpp", "//third_party/icu/icu4c/source/i18n/number_patternmodifier.cpp", "//third_party/icu/icu4c/source/i18n/rulebasedcollator.cpp", "//third_party/icu/icu4c/source/i18n/msgfmt.cpp", "//third_party/icu/icu4c/source/i18n/stsearch.cpp", "//third_party/icu/icu4c/source/i18n/number_affixutils.cpp", "//third_party/icu/icu4c/source/i18n/quant.cpp", "//third_party/icu/icu4c/source/i18n/calendar.cpp", "//third_party/icu/icu4c/source/i18n/collationroot.cpp", "//third_party/icu/icu4c/source/i18n/rbt_rule.cpp", "//third_party/icu/icu4c/source/i18n/number_compact.cpp", "//third_party/icu/icu4c/source/i18n/name2uni.cpp", "//third_party/icu/icu4c/source/i18n/chnsecal.cpp", "//third_party/icu/icu4c/source/i18n/csrutf8.cpp", "//third_party/icu/icu4c/source/i18n/basictz.cpp", "//third_party/icu/icu4c/source/i18n/reldtfmt.cpp", "//third_party/icu/icu4c/source/i18n/nultrans.cpp", "//third_party/icu/icu4c/source/i18n/number_grouping.cpp", "//third_party/icu/icu4c/source/i18n/number_symbolswrapper.cpp", "//third_party/icu/icu4c/source/i18n/number_usageprefs.cpp", "//third_party/icu/icu4c/source/i18n/numrange_capi.cpp", "//third_party/icu/icu4c/source/i18n/pluralranges.cpp", "//third_party/icu/icu4c/source/i18n/units_complexconverter.cpp", "//third_party/icu/icu4c/source/i18n/units_converter.cpp", "//third_party/icu/icu4c/source/i18n/units_data.cpp", "//third_party/icu/icu4c/source/i18n/units_router.cpp", "//third_party/icu/icu4c/source/i18n/rbt_pars.cpp", "//third_party/icu/icu4c/source/i18n/winnmfmt.cpp", "//third_party/icu/icu4c/source/i18n/uregexc.cpp", "//third_party/icu/icu4c/source/i18n/fpositer.cpp", "//third_party/icu/icu4c/source/i18n/tmutfmt.cpp", "//third_party/icu/icu4c/source/i18n/compactdecimalformat.cpp", "//third_party/icu/icu4c/source/i18n/numparse_decimal.cpp", "//third_party/icu/icu4c/source/i18n/number_notation.cpp", "//third_party/icu/icu4c/source/i18n/uspoof_conf.cpp", "//third_party/icu/icu4c/source/i18n/utf16collationiterator.cpp", "//third_party/icu/icu4c/source/i18n/udat.cpp", "//third_party/icu/icu4c/source/i18n/number_skeletons.cpp", "//third_party/icu/icu4c/source/i18n/utrans.cpp", "//third_party/icu/icu4c/source/i18n/number_rounding.cpp", "//third_party/icu/icu4c/source/i18n/double-conversion-bignum.cpp", "//third_party/icu/icu4c/source/i18n/number_asformat.cpp", "//third_party/icu/icu4c/source/i18n/double-conversion-string-to-double.cpp", "//third_party/icu/icu4c/source/i18n/rbtz.cpp", "//third_party/icu/icu4c/source/i18n/csrsbcs.cpp", "//third_party/icu/icu4c/source/i18n/selfmt.cpp", "//third_party/icu/icu4c/source/i18n/tztrans.cpp", "//third_party/icu/icu4c/source/i18n/uspoof_impl.cpp", "//third_party/icu/icu4c/source/i18n/regeximp.cpp", "//third_party/icu/icu4c/source/i18n/measure.cpp", "//third_party/icu/icu4c/source/i18n/fmtable_cnv.cpp", "//third_party/icu/icu4c/source/i18n/uspoof.cpp", "//third_party/icu/icu4c/source/i18n/gregoimp.cpp", "//third_party/icu/icu4c/source/i18n/umsg.cpp", "//third_party/icu/icu4c/source/i18n/numparse_symbols.cpp", "//third_party/icu/icu4c/source/i18n/numrange_impl.cpp", "//third_party/icu/icu4c/source/i18n/collationtailoring.cpp", "//third_party/icu/icu4c/source/i18n/double-conversion-cached-powers.cpp", "//third_party/icu/icu4c/source/i18n/udateintervalformat.cpp", "//third_party/icu/icu4c/source/i18n/uni2name.cpp", "//third_party/icu/icu4c/source/i18n/casetrn.cpp", "//third_party/icu/icu4c/source/i18n/windtfmt.cpp", "//third_party/icu/icu4c/source/i18n/listformatter.cpp", "//third_party/icu/icu4c/source/i18n/uregion.cpp", "//third_party/icu/icu4c/source/i18n/usearch.cpp", "//third_party/icu/icu4c/source/i18n/brktrans.cpp", "//third_party/icu/icu4c/source/i18n/gender.cpp", "//third_party/icu/icu4c/source/i18n/collationruleparser.cpp", "//third_party/icu/icu4c/source/i18n/rbt.cpp", "//third_party/icu/icu4c/source/i18n/tzfmt.cpp", "//third_party/icu/icu4c/source/i18n/dtfmtsym.cpp", "//third_party/icu/icu4c/source/i18n/tolowtrn.cpp", "//third_party/icu/icu4c/source/i18n/collationdatabuilder.cpp", "//third_party/icu/icu4c/source/i18n/unumsys.cpp", "//third_party/icu/icu4c/source/i18n/csrecog.cpp", "//third_party/icu/icu4c/source/i18n/collationfastlatin.cpp", "//third_party/icu/icu4c/source/i18n/esctrn.cpp", "//third_party/icu/icu4c/source/i18n/collationdata.cpp", "//third_party/icu/icu4c/source/i18n/titletrn.cpp", "//third_party/icu/icu4c/source/i18n/ucal.cpp", "//third_party/icu/icu4c/source/i18n/regexcmp.cpp", "//third_party/icu/icu4c/source/i18n/wintzimpl.cpp", "//third_party/icu/icu4c/source/i18n/decimfmt.cpp", "//third_party/icu/icu4c/source/i18n/tmunit.cpp", "//third_party/icu/icu4c/source/i18n/number_integerwidth.cpp", "//third_party/icu/icu4c/source/i18n/ucsdet.cpp", "//third_party/icu/icu4c/source/i18n/uspoof_build.cpp", "//third_party/icu/icu4c/source/i18n/ucln_in.cpp", "//third_party/icu/icu4c/source/i18n/measfmt.cpp", "//third_party/icu/icu4c/source/i18n/formattedval_iterimpl.cpp", "//third_party/icu/icu4c/source/i18n/toupptrn.cpp", "//third_party/icu/icu4c/source/i18n/translit.cpp", "//third_party/icu/icu4c/source/i18n/dtitvfmt.cpp", "//third_party/icu/icu4c/source/i18n/dcfmtsym.cpp", "//third_party/icu/icu4c/source/i18n/islamcal.cpp", "//third_party/icu/icu4c/source/i18n/numrange_fluent.cpp", "//third_party/icu/icu4c/source/i18n/gregocal.cpp", "//third_party/icu/icu4c/source/i18n/zonemeta.cpp", "//third_party/icu/icu4c/source/i18n/collationbuilder.cpp", "//third_party/icu/icu4c/source/i18n/string_segment.cpp", "//third_party/icu/icu4c/source/i18n/collationkeys.cpp", "//third_party/icu/icu4c/source/i18n/coll.cpp", "//third_party/icu/icu4c/source/i18n/uitercollationiterator.cpp", "//third_party/icu/icu4c/source/i18n/nfsubs.cpp", "//third_party/icu/icu4c/source/i18n/smpdtfst.cpp", "//third_party/icu/icu4c/source/i18n/collationsettings.cpp", "//third_party/icu/icu4c/source/i18n/formattedval_sbimpl.cpp", "//third_party/icu/icu4c/source/i18n/strrepl.cpp", "//third_party/icu/icu4c/source/i18n/standardplural.cpp", "//third_party/icu/icu4c/source/i18n/ucol_res.cpp", "//third_party/icu/icu4c/source/i18n/repattrn.cpp", "//third_party/icu/icu4c/source/i18n/tznames_impl.cpp", "//third_party/icu/icu4c/source/i18n/numparse_compositions.cpp", "//third_party/icu/icu4c/source/i18n/rbt_set.cpp", "//third_party/icu/icu4c/source/i18n/currpinf.cpp", "//third_party/icu/icu4c/source/i18n/collationsets.cpp", "//third_party/icu/icu4c/source/i18n/cecal.cpp", "//third_party/icu/icu4c/source/i18n/tzrule.cpp", "//third_party/icu/icu4c/source/i18n/collationiterator.cpp", "//third_party/icu/icu4c/source/i18n/numparse_scientific.cpp", "//third_party/icu/icu4c/source/i18n/number_patternstring.cpp", "//third_party/icu/icu4c/source/i18n/utf8collationiterator.cpp", "//third_party/icu/icu4c/source/i18n/sharedbreakiterator.cpp", "//third_party/icu/icu4c/source/i18n/number_fluent.cpp", "//third_party/icu/icu4c/source/i18n/measunit.cpp", "//third_party/icu/icu4c/source/i18n/collationcompare.cpp", "//third_party/icu/icu4c/source/i18n/number_formatimpl.cpp", "//third_party/icu/icu4c/source/i18n/number_decimfmtprops.cpp", "//third_party/icu/icu4c/source/i18n/nfrs.cpp", "//third_party/icu/icu4c/source/i18n/tznames.cpp", "//third_party/icu/icu4c/source/i18n/remtrans.cpp", "//third_party/icu/icu4c/source/i18n/nfrule.cpp", ] ohos_shared_library("shared_icuuc") { ldflags = [ "-shared", "-lm", ] configs = [ ":icu_config", "//build/config/compiler:rtti", ] all_dependent_configs = [ ":static_icustubdata_all_deps_config" ] public_configs = [ ":icu_config", ":static_icustubdata_all_deps_config", ] defines = [ "U_ATTRIBUTE_DEPRECATED=", "U_COMMON_IMPLEMENTATION", "UPRV_BLOCK_MACRO_BEGIN=", "UPRV_BLOCK_MACRO_END=", "UCONFIG_USE_WINDOWS_LCID_MAPPING_API=0", "_REENTRANT", ] sources = icu_common_source deps = [ ":ohos_icudat", ":static_icustubdata", ] cflags_cc = [ "-O3", "-W", "-Wall", "-pedantic", "-Wpointer-arith", "-Wwrite-strings", "-Wno-error=unused-parameter", "-Wno-error=unused-const-variable", "-Wno-error=unneeded-internal-declaration", "-std=c++11", "-Wno-ignored-attributes", "-Wno-unused-but-set-variable", "-Wno-deprecated-declarations", ] part_name = "$icu_part_name" subsystem_name = "$icu_subsystem_name" innerapi_tags = [ "platformsdk" ] install_images = [ system_base_dir ] relative_install_dir = "platformsdk" output_name = "hmicuuc" install_enable = true } ohos_shared_library("shared_icui18n") { ldflags = [ "-shared", "-lm", ] sources = icu_i18n_source configs = [ ":icu_config", "//build/config/compiler:rtti", ] deps = [ ":shared_icuuc" ] defines = [ "U_ATTRIBUTE_DEPRECATED=", "U_I18N_IMPLEMENTATION", "UPRV_BLOCK_MACRO_BEGIN=", "UPRV_BLOCK_MACRO_END=", "_REENTRANT", "PIC", ] cflags_cc = [ "-O3", "-W", "-Wall", "-pedantic", "-Wpointer-arith", "-Wno-error=unused-parameter", "-Wno-error=unused-const-variable", "-Wno-error=implicit-float-conversion", "-Wno-error=unneeded-internal-declaration", "-Wwrite-strings", "-std=c++11", "-Wno-ignored-attributes", "-Wno-unused-but-set-variable", "-Wno-deprecated-declarations", ] if (!is_mingw) { cflags_cc += [ "-fPIC" ] ldflags += [ "-ldl" ] } part_name = "$icu_part_name" subsystem_name = "$icu_subsystem_name" innerapi_tags = [ "platformsdk" ] install_images = [ system_base_dir ] relative_install_dir = "platformsdk" output_name = "hmicui18n" install_enable = true } if (defined(is_arkui_x) && is_arkui_x) { ohos_source_set("static_icuuc") { configs = [ ":icu_config", "//build/config/compiler:rtti", ] if (!(defined(is_arkui_x) && is_arkui_x) || current_toolchain == host_toolchain) { deps = [ ":static_icustubdata" ] } defines = [ "U_ATTRIBUTE_DEPRECATED=", "U_COMMON_IMPLEMENTATION", "U_STATIC_IMPLEMENTATION", "UPRV_BLOCK_MACRO_BEGIN=", "UPRV_BLOCK_MACRO_END=", "UCONFIG_USE_WINDOWS_LCID_MAPPING_API=0", "_REENTRANT", ] sources = icu_common_source cflags_cc = [ "-W", "-Wall", "-pedantic", "-Wpointer-arith", "-Wwrite-strings", "-std=c++11", "-Wno-error=unused-parameter", "-Wno-error=unused-const-variable", "-Wno-error=unneeded-internal-declaration", "-fvisibility-inlines-hidden", "-Wno-unused-function", "-Wno-ignored-attributes", "-Wno-unused-but-set-variable", "-Wno-deprecated-declarations", ] cflags = [ "-fdata-sections", "-ffunction-sections", "-Wno-unused-function", ] ldflags = [ "-static", "-ldl", "-lm", ] output_name = "hmicuuc" part_name = "$icu_part_name" subsystem_name = "$icu_subsystem_name" } } else { ohos_static_library("static_icuuc") { configs = [ ":icu_config", "//build/config/compiler:rtti", ] public_configs = [ ":icu_config", ":static_icustubdata_all_deps_config", ] if (!(defined(is_arkui_x) && is_arkui_x) || current_toolchain == host_toolchain) { deps = [ ":static_icustubdata" ] } defines = [ "U_ATTRIBUTE_DEPRECATED=", "U_COMMON_IMPLEMENTATION", "U_STATIC_IMPLEMENTATION", "UPRV_BLOCK_MACRO_BEGIN=", "UPRV_BLOCK_MACRO_END=", "UCONFIG_USE_WINDOWS_LCID_MAPPING_API=0", "_REENTRANT", ] sources = icu_common_source cflags_cc = [ "-W", "-Wall", "-pedantic", "-Wpointer-arith", "-Wwrite-strings", "-std=c++11", "-Wno-error=unused-parameter", "-Wno-error=unused-const-variable", "-Wno-error=unneeded-internal-declaration", "-fvisibility-inlines-hidden", "-Wno-unused-function", "-Wno-ignored-attributes", "-Wno-unused-but-set-variable", "-Wno-deprecated-declarations", ] cflags = [ "-fdata-sections", "-ffunction-sections", "-Wno-unused-function", ] ldflags = [ "-static", "-ldl", "-lm", ] output_name = "hmicuuc" part_name = "$icu_part_name" subsystem_name = "$icu_subsystem_name" } } if (defined(is_arkui_x) && is_arkui_x) { ohos_source_set("static_icui18n") { sources = icu_i18n_source configs = [ ":icu_config", "//build/config/compiler:rtti", ] deps = [ ":static_icuuc" ] defines = [ "U_ATTRIBUTE_DEPRECATED=", "U_I18N_IMPLEMENTATION", "U_STATIC_IMPLEMENTATION", "UPRV_BLOCK_MACRO_BEGIN=", "UPRV_BLOCK_MACRO_END=", "_REENTRANT", "PIC", ] cflags_cc = [ "-W", "-Wall", "-pedantic", "-Wpointer-arith", "-Wwrite-strings", "-Wno-error=unused-parameter", "-Wno-error=unused-const-variable", "-Wno-error=implicit-float-conversion", "-Wno-error=unneeded-internal-declaration", "-std=c++11", "-fvisibility-inlines-hidden", "-fno-exceptions", "-Wno-ignored-attributes", "-Wno-unused-but-set-variable", "-Wno-deprecated-declarations", ] if (is_mingw) { cflags_cc += [ "-DWINVER=0x0601" ] } else { cflags_cc += [ "-fPIC" ] } cflags = [ "-fdata-sections", "-ffunction-sections", ] ldflags = [ "-static", "-ldl", "-lm", ] output_name = "hmicui18n" part_name = "$icu_part_name" subsystem_name = "$icu_subsystem_name" } } else { ohos_static_library("static_icui18n") { sources = icu_i18n_source configs = [ ":icu_config", "//build/config/compiler:rtti", ] deps = [ ":static_icuuc" ] defines = [ "U_ATTRIBUTE_DEPRECATED=", "U_I18N_IMPLEMENTATION", "U_STATIC_IMPLEMENTATION", "UPRV_BLOCK_MACRO_BEGIN=", "UPRV_BLOCK_MACRO_END=", "_REENTRANT", "PIC", ] cflags_cc = [ "-W", "-Wall", "-pedantic", "-Wpointer-arith", "-Wwrite-strings", "-Wno-error=unused-parameter", "-Wno-error=unused-const-variable", "-Wno-error=implicit-float-conversion", "-Wno-error=unneeded-internal-declaration", "-std=c++11", "-fvisibility-inlines-hidden", "-fno-exceptions", "-Wno-ignored-attributes", "-Wno-unused-but-set-variable", "-Wno-deprecated-declarations", ] if (is_mingw) { cflags_cc += [ "-DWINVER=0x0601" ] } else { cflags_cc += [ "-fPIC" ] } cflags = [ "-fdata-sections", "-ffunction-sections", ] ldflags = [ "-static", "-ldl", "-lm", ] output_name = "hmicui18n" part_name = "$icu_part_name" subsystem_name = "$icu_subsystem_name" } } ohos_static_library("static_icu") { configs = [ ":icu_config", "//build/config/compiler:rtti", ] defines = [ "U_ATTRIBUTE_DEPRECATED=", "U_COMMON_IMPLEMENTATION", "U_I18N_IMPLEMENTATION", "U_STATIC_IMPLEMENTATION", "UPRV_BLOCK_MACRO_BEGIN=", "UPRV_BLOCK_MACRO_END=", "UCONFIG_USE_WINDOWS_LCID_MAPPING_API=0", "_REENTRANT", ] sources = icu_common_source sources += icu_i18n_source sources += [ "//third_party/icu/ohos_icu4j/data/lite/icudt72l_dat.S" ] cflags_cc = [ "-W", "-Wall", "-pedantic", "-Wpointer-arith", "-Wwrite-strings", "-std=c++11", "-Wno-error=unused-parameter", "-Wno-error=unused-const-variable", "-Wno-error=unneeded-internal-declaration", "-fvisibility-inlines-hidden", "-Wno-unused-function", "-Wno-ignored-attributes", "-Wno-unused-but-set-variable", "-Wno-deprecated-declarations", ] cflags = [ "-fvisibility=hidden", "-fdata-sections", "-ffunction-sections", "-Wno-unused-function", ] ldflags = [ "-static", "-ldl", "-lm", ] output_name = "hmicu" part_name = "$icu_part_name" subsystem_name = "$icu_subsystem_name" }