mirror of
https://gitee.com/openharmony/third_party_icu
synced 2024-11-23 16:19:42 +00:00
Signed-off-by: mengjingzhimo <luoboming@huawei.com>
Changes to be committed: modified: icu4c/BUILD.gn
This commit is contained in:
parent
3dd9aaa9d0
commit
691f6f6e03
@ -523,14 +523,7 @@ ohos_shared_library("shared_icuuc") {
|
||||
"_REENTRANT",
|
||||
]
|
||||
sources = icu_common_source
|
||||
is_cross_platform_build =
|
||||
defined(build_cross_platform_version) && build_cross_platform_version
|
||||
|
||||
if (!is_cross_platform_build || current_toolchain == host_toolchain) {
|
||||
deps = [ ":static_icustubdata" ]
|
||||
} else {
|
||||
sources += [ "//third_party/icu/ohos_icu4j/data/lite/icudt69l_dat.S" ]
|
||||
}
|
||||
deps = [ ":static_icustubdata" ]
|
||||
cflags_cc = [
|
||||
"-O3",
|
||||
"-W",
|
||||
@ -723,3 +716,56 @@ ohos_static_library("static_icui18n") {
|
||||
]
|
||||
output_name = "hmicui18n"
|
||||
}
|
||||
|
||||
ohos_static_library("static_icu") {
|
||||
configs = [
|
||||
":icu_config",
|
||||
"//build/config/compiler:rtti",
|
||||
]
|
||||
|
||||
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
|
||||
sources += icu_i18n_source
|
||||
sources += [ "//third_party/icu/ohos_icu4j/data/lite/icudt69l_dat.S" ]
|
||||
cflags_cc = [
|
||||
"-Os",
|
||||
"-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",
|
||||
"-Os",
|
||||
"-Wno-unused-function",
|
||||
]
|
||||
|
||||
ldflags = [
|
||||
"-static",
|
||||
"-ldl",
|
||||
"-lm",
|
||||
]
|
||||
|
||||
output_name = "hmicu"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user