• 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 = "//base/telephony/state_registry"
15CORE_DIR = "//base/telephony/core_service"
16
17config("state_registry_observer_config") {
18  include_dirs = [
19    "$SUBSYSTEM_DIR/interfaces/innerkits/observer",
20    "$SUBSYSTEM_DIR/frameworks/native/common/include",
21  ]
22}
23
24ohos_shared_library("tel_state_registry_api") {
25  sources = [
26    "$CORE_DIR/frameworks/native/src/cell_information.cpp",
27    "$CORE_DIR/frameworks/native/src/network_state.cpp",
28    "$CORE_DIR/frameworks/native/src/signal_information.cpp",
29    "$CORE_DIR/frameworks/native/src/telephony_state_registry_proxy.cpp",
30    "$SUBSYSTEM_DIR/frameworks/native/observer/src/telephony_observer.cpp",
31    "$SUBSYSTEM_DIR/frameworks/native/observer/src/telephony_observer_client.cpp",
32    "$SUBSYSTEM_DIR/frameworks/native/observer/src/telephony_observer_proxy.cpp",
33    "$SUBSYSTEM_DIR/frameworks/native/observer/src/telephony_state_manager.cpp",
34  ]
35
36  include_dirs = [
37    "$SUBSYSTEM_DIR/frameworks/native/observer/include",
38    "$CORE_DIR/interfaces/innerkits/include",
39  ]
40
41  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
42
43  public_configs = [ ":state_registry_observer_config" ]
44
45  deps = [ "$CORE_DIR/utils:libtel_common" ]
46
47  external_deps = [
48    "core_service:tel_core_service_api",
49    "hiviewdfx_hilog_native:libhilog",
50    "ipc:ipc_core",
51    "safwk:system_ability_fwk",
52    "samgr_standard:samgr_proxy",
53  ]
54
55  defines = [
56    "TELEPHONY_LOG_TAG = \"STATE_REGISTRY\"",
57    "LOG_DOMAIN = 0",
58  ]
59
60  part_name = "state_registry"
61  subsystem_name = "telephony"
62}
63