• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//base/telephony/core_service/telephony.gni")
15import("//build/ohos.gni")
16SOURCE_DIR = "//base/telephony/state_registry"
17CORE_DIR = "//base/telephony/core_service"
18
19ohos_shared_library("tel_state_registry") {
20  part_name = "state_registry"
21  subsystem_name = "telephony"
22
23  sources = [
24    "$SOURCE_DIR/frameworks/native/observer/src/telephony_observer_proxy.cpp",
25    "$SOURCE_DIR/service/src/telephony_state_registry_dump_helper.cpp",
26    "$SOURCE_DIR/service/src/telephony_state_registry_record.cpp",
27    "$SOURCE_DIR/service/src/telephony_state_registry_service.cpp",
28    "$SOURCE_DIR/service/src/telephony_state_registry_stub.cpp",
29  ]
30
31  include_dirs = [
32    "$SOURCE_DIR/frameworks/native/observer/include",
33    "$SOURCE_DIR/frameworks/native/common/include",
34    "$SOURCE_DIR/service/include",
35  ]
36
37  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
38
39  deps = [ "$CORE_DIR/utils:libtel_common" ]
40
41  external_deps = [
42    "ability_base:want",
43    "call_manager:tel_call_manager_api",
44    "common_event_service:cesfwk_innerkits",
45    "core_service:tel_core_service_api",
46    "hiviewdfx_hilog_native:libhilog",
47    "init:libbegetutil",
48    "ipc:ipc_core",
49    "safwk:system_ability_fwk",
50    "samgr:samgr_proxy",
51  ]
52
53  defines += [
54    "TELEPHONY_LOG_TAG = \"StateRegistry\"",
55    "LOG_DOMAIN = 0xD001F07",
56  ]
57}
58