add make_icudat.sh and compiling suuport for windows

Signed-off-by: the-minions-of-cplu <jinqi2@huawei.com>
This commit is contained in:
the-minions-of-cplu 2021-12-14 14:20:08 +08:00
parent 1a4a3d3e71
commit 8cdf908be1
2 changed files with 24 additions and 1 deletions

View File

@ -645,7 +645,6 @@ ohos_static_library("static_icui18n") {
"-W",
"-Wall",
"-pedantic",
"-fPIC",
"-Wpointer-arith",
"-Wwrite-strings",
"-Wno-error=unused-parameter",
@ -658,6 +657,12 @@ ohos_static_library("static_icui18n") {
"-Wno-ignored-attributes",
]
if (is_mingw) {
cflags_cc += [ "-DWINVER=0x0601" ]
} else {
cflags_cc += [ "-fPIC" ]
}
cflags = [
"-fvisibility=hidden",
"-fdata-sections",

18
icu4c/source/make_icudat.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
# 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.
set -e;
ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data ./runConfigureICU Linux;
make -j8;