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 "//third_party/icu/icu4c/source", 19 "//third_party/icu/icu4c/source/common", 20 "//third_party/icu/icu4c/source/common/unicode", 21 "//third_party/icu/icu4c/source/i18n", 22 "//base/global/i18n/interfaces/native/inner_api/zone/include", 23 "//third_party/libphonenumber/cpp/src", 24 "//third_party/protobuf/src", 25 "//third_party/protobuf/src/google", 26 "//third_party/protobuf/src/google/protobuf", 27 ] 28} 29 30ohos_shared_library("zone_util") { 31 public_configs = [ ":zone_util_public_configs" ] 32 sources = [ "src/zone_util.cpp" ] 33 cflags_cc = [ 34 "-Wall", 35 "-fPIC", 36 ] 37 deps = [ 38 "//third_party/icu/icu4c:ohos_icudat", 39 "//third_party/icu/icu4c:shared_icui18n", 40 "//third_party/icu/icu4c:shared_icuuc", 41 "//third_party/libphonenumber/cpp:phonenumber_standard", 42 ] 43 subsystem_name = "global" 44 part_name = "i18n" 45} 46