1# Copyright (C) 2021 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 16ohos_shared_library("tel_state_registry") { 17 part_name = "state_registry" 18 subsystem_name = "telephony" 19 20 sources = [ 21 "frameworks/native/observer/src/telephony_observer_proxy.cpp", 22 "services/src/telephony_state_registry_dump_helper.cpp", 23 "services/src/telephony_state_registry_record.cpp", 24 "services/src/telephony_state_registry_service.cpp", 25 "services/src/telephony_state_registry_stub.cpp", 26 ] 27 28 include_dirs = [ 29 "frameworks/native/observer/include", 30 "frameworks/native/common/include", 31 "services/include", 32 ] 33 34 external_deps = [ 35 "ability_base:want", 36 "c_utils:utils", 37 "common_event_service:cesfwk_innerkits", 38 "core_service:libtel_common", 39 "core_service:tel_core_service_api", 40 "hilog:libhilog", 41 "init:libbegetutil", 42 "ipc:ipc_core", 43 "safwk:system_ability_fwk", 44 "samgr:samgr_proxy", 45 ] 46 47 defines = [ 48 "TELEPHONY_LOG_TAG = \"StateRegistry\"", 49 "LOG_DOMAIN = 0xD001F07", 50 ] 51} 52