• 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.
13import("//base/telephony/core_service/telephony.gni")
14import("//build/ohos.gni")
15SUBSYSTEM_DIR = "//base/telephony"
16ohos_shared_library("observer") {
17  include_dirs = [
18    "//third_party/node/src",
19    "include",
20    "$SUBSYSTEM_DIR/state_registry/frameworks/native/observer/include",
21    "$SUBSYSTEM_DIR/core_service/frameworks/js/sim/include",
22    "$SUBSYSTEM_DIR/core_service/frameworks/js/network_search/include",
23    "$SUBSYSTEM_DIR/core_service/frameworks/js/napi",
24    "$SUBSYSTEM_DIR/call_manager/interfaces/innerkits",
25    "//third_party/libuv/include",
26  ]
27
28  sources = [
29    "$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
30    "src/event_listener_handler.cpp",
31    "src/event_listener_manager.cpp",
32    "src/napi_state_registry.cpp",
33    "src/napi_telephony_observer.cpp",
34  ]
35
36  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
37
38  deps = [
39    "//foundation/arkui/napi:ace_napi",
40    "//third_party/libuv:uv",
41  ]
42
43  external_deps = [
44    "c_utils:utils",
45    "core_service:tel_core_service_api",
46    "eventhandler:libeventhandler",
47    "hiviewdfx_hilog_native:libhilog",
48    "init:libbegetutil",
49    "ipc:ipc_core",
50    "state_registry:tel_state_registry_api",
51  ]
52
53  defines += [
54    "TELEPHONY_LOG_TAG = \"StateRegistryJsApi\"",
55    "LOG_DOMAIN = 0xD001F07",
56  ]
57
58  relative_install_dir = "module/telephony"
59  part_name = "state_registry"
60  subsystem_name = "telephony"
61}
62