From 2d3789ad993dc937fab0fc3015bd1abfdf7c15aa Mon Sep 17 00:00:00 2001 From: zhoujunquan Date: Fri, 9 Apr 2021 10:54:54 +0800 Subject: [PATCH] update icu4c/BUILD.gn. --- icu4c/BUILD.gn | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/icu4c/BUILD.gn b/icu4c/BUILD.gn index a8dacc23..a2e843f0 100755 --- a/icu4c/BUILD.gn +++ b/icu4c/BUILD.gn @@ -42,6 +42,13 @@ ohos_static_library("static_icustubdata") { output_name = "stubdata" } +ohos_prebuilt_etc("ohos_icudat") { + source = "//third_party/icu/ohos_icu4j/data/icudt67l.dat" + module_install_dir = "usr/ohos_icu/" + part_name = "i18n_L2" + subsystem_name = "global" +} + icu_common_source = [ "//third_party/icu/icu4c/source/common/ubiditransform.cpp", "//third_party/icu/icu4c/source/common/locutil.cpp", @@ -510,8 +517,13 @@ ohos_shared_library("shared_icuuc") { "-shared", "-lm", ] - subsystem_name = "global" - part_name = "i18n" + if (is_standard_system) { + part_name = "i18n_L2" + subsystem_name = "global" + } else { + part_name = "i18n" + subsystem_name = "global" + }" output_name = "hmicuuc" install_enable = true } @@ -550,8 +562,13 @@ ohos_shared_library("shared_icui18n") { "-ldl", "-lm", ] - subsystem_name = "global" - part_name = "i18n" + if (is_standard_system) { + part_name = "i18n_L2" + subsystem_name = "global" + } else { + part_name = "i18n" + subsystem_name = "global" + } output_name = "hmicui18n" install_enable = true } -- Gitee