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