• 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 = "../../.."
15
16config("state_registry_observer_config") {
17  include_dirs = [
18    "$SUBSYSTEM_DIR/interfaces/innerkits/observer",
19    "$SUBSYSTEM_DIR/frameworks/native/common/include",
20  ]
21}
22
23ohos_shared_library("tel_state_registry_api") {
24  sources = [
25    "$SUBSYSTEM_DIR/frameworks/native/observer/src/telephony_observer.cpp",
26    "$SUBSYSTEM_DIR/frameworks/native/observer/src/telephony_observer_client.cpp",
27    "$SUBSYSTEM_DIR/frameworks/native/observer/src/telephony_observer_proxy.cpp",
28    "$SUBSYSTEM_DIR/frameworks/native/observer/src/telephony_state_manager.cpp",
29  ]
30
31  include_dirs = [ "$SUBSYSTEM_DIR/frameworks/native/observer/include" ]
32
33  version_script = "$SUBSYSTEM_DIR/interfaces/innerkits/libtel_state_registry_api.versionscript"
34
35  public_configs = [ ":state_registry_observer_config" ]
36
37  external_deps = [
38    "c_utils:utils",
39    "core_service:libtel_common",
40    "core_service:tel_core_service_api",
41    "hilog:libhilog",
42    "ipc:ipc_core",
43    "samgr:samgr_proxy",
44  ]
45
46  defines = [
47    "TELEPHONY_LOG_TAG = \"StateRegistryApi\"",
48    "LOG_DOMAIN = 0xD001F07",
49  ]
50  install_images = [ system_base_dir ]
51  relative_install_dir = "platformsdk"
52  innerapi_tags = [ "platformsdk" ]
53  part_name = "state_registry"
54  subsystem_name = "telephony"
55}
56