mirror of
https://gitee.com/openharmony/third_party_icu
synced 2024-11-23 08:10:07 +00:00
add make_icudat.sh and compiling suuport for windows
Signed-off-by: the-minions-of-cplu <jinqi2@huawei.com>
This commit is contained in:
parent
1a4a3d3e71
commit
8cdf908be1
@ -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
18
icu4c/source/make_icudat.sh
Executable 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;
|
Loading…
Reference in New Issue
Block a user