# Copyright (c) 2021-2022 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. import("//build/ohos.gni") config("zone_util_public_configs") { include_dirs = [ "//base/global/i18n/frameworks/intl/include", "//base/global/i18n/interfaces/native/inner_api/zone/include", "//third_party/icu/icu4c/source", "//third_party/icu/icu4c/source/common", "//third_party/icu/icu4c/source/common/unicode", "//third_party/icu/icu4c/source/i18n", "//third_party/libphonenumber/cpp/src", "//third_party/libxml2/include", "//third_party/protobuf/src", "//third_party/protobuf/src/google", "//third_party/protobuf/src/google/protobuf", ] } ohos_shared_library("zone_util") { public_configs = [ ":zone_util_public_configs" ] sources = [ "src/zone_util.cpp" ] cflags_cc = [ "-Wall", "-fPIC", ] deps = [ "//base/global/i18n/frameworks/intl:intl_util", "//third_party/icu/icu4c:ohos_icudat", "//third_party/icu/icu4c:shared_icui18n", "//third_party/icu/icu4c:shared_icuuc", "//third_party/libphonenumber/cpp:phonenumber_standard", "//third_party/libpng:libpng", "//third_party/libxml2:xml2", ] external_deps = [ "hilog:libhilog" ] subsystem_name = "global" part_name = "i18n" }