1# Copyright (c) 2021-2022 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15
16config("zone_util_public_configs") {
17  include_dirs = [
18    "//base/global/i18n/frameworks/intl/include",
19    "//base/global/i18n/interfaces/native/inner_api/zone/include",
20  ]
21}
22
23ohos_shared_library("zone_util") {
24  branch_protector_ret = "pac_ret"
25  public_configs = [ ":zone_util_public_configs" ]
26  sources = [ "src/zone_util.cpp" ]
27  cflags_cc = [
28    "-Wall",
29    "-fPIC",
30  ]
31  deps = [ "//base/global/i18n/frameworks/intl:intl_util" ]
32  external_deps = [
33    "hilog:libhilog",
34    "icu:shared_icui18n",
35    "icu:shared_icuuc",
36    "libphonenumber:phonenumber_standard",
37    "libpng:libpng",
38    "libxml2:libxml2",
39  ]
40  subsystem_name = "global"
41  part_name = "i18n"
42}
43