!129 icu data裁剪 配置编译参数

Merge pull request !129 from qugr/master
This commit is contained in:
openharmony_ci 2023-04-27 07:33:07 +00:00 committed by Gitee
commit 4e7b44ad80
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 48 additions and 28 deletions

View File

@ -13,6 +13,7 @@
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",
@ -542,13 +543,10 @@ ohos_shared_library("shared_icuuc") {
"-shared",
"-lm",
]
if (is_standard_system) {
part_name = "icu"
subsystem_name = "thirdparty"
} else {
part_name = "i18n"
subsystem_name = "global"
}
part_name = "$icu_part_name"
subsystem_name = "$icu_subsystem_name"
install_images = [ system_base_dir ]
relative_install_dir = "platformsdk"
output_name = "hmicuuc"
@ -594,13 +592,10 @@ ohos_shared_library("shared_icui18n") {
cflags_cc += [ "-fPIC" ]
ldflags += [ "-ldl" ]
}
if (is_standard_system) {
part_name = "icu"
subsystem_name = "thirdparty"
} else {
part_name = "i18n"
subsystem_name = "global"
}
part_name = "$icu_part_name"
subsystem_name = "$icu_subsystem_name"
install_images = [ system_base_dir ]
relative_install_dir = "platformsdk"
output_name = "hmicui18n"

23
icu4c/icu4c_config.gni Normal file
View File

@ -0,0 +1,23 @@
# Copyright (c) 2023 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.
if (is_standard_system) {
icu_part_name = "icu"
icu_subsystem_name = "thirdparty"
} else {
icu_part_name = "i18n"
icu_subsystem_name = "global"
}
icu_lib_host_subsystem_name = "global"
icu_bin_host_subsystem_name = "global"

View File

@ -12,6 +12,8 @@
# limitations under the License.
import("//build/ohos.gni")
import("//third_party/icu/icu4c/icu4c_config.gni")
config("icu_config") {
visibility = [ ":*" ]
include_dirs = [
@ -256,7 +258,7 @@ ohos_shared_library("shared_icuuc_host") {
"-shared",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_lib_host_subsystem_name"
output_name = "hmicuuchost"
}
@ -341,7 +343,7 @@ ohos_shared_library("shared_icutu") {
"-shared",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_lib_host_subsystem_name"
output_name = "hmicutuhost"
}
@ -392,7 +394,7 @@ ohos_shared_library("shared_icuio") {
"-shared",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_lib_host_subsystem_name"
output_name = "hmicuio"
}
@ -422,7 +424,7 @@ ohos_executable("genbrk") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "genbrk"
}
@ -443,7 +445,7 @@ ohos_executable("genccode") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "genccode"
}
@ -464,7 +466,7 @@ ohos_executable("gencfu") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "gencfu"
}
@ -485,7 +487,7 @@ ohos_executable("gencnval") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "gencnval"
}
@ -506,7 +508,7 @@ ohos_executable("gendict") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "gendict"
}
@ -575,7 +577,7 @@ ohos_executable("genrb") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "genrb"
}
@ -596,7 +598,7 @@ ohos_executable("derb") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "derb"
}
@ -622,7 +624,7 @@ ohos_executable("makeconv") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "makeconv"
}
@ -646,7 +648,7 @@ ohos_executable("gensprep") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "gensprep"
}
@ -667,7 +669,7 @@ ohos_executable("icupkg") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "icupkg"
}
@ -694,7 +696,7 @@ ohos_executable("pkgdata") {
"-ldl",
"-lm",
]
subsystem_name = "global"
subsystem_name = "$icu_bin_host_subsystem_name"
output_name = "pkgdata"
}
group("bin_host") {