• 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"
15ohos_shared_library("data") {
16  include_dirs = [
17    "//third_party/node/src",
18    "include",
19    "$SUBSYSTEM_DIR/core_service/frameworks/js/napi",
20    "$SUBSYSTEM_DIR/core_service/utils/log/include",
21    "$SUBSYSTEM_DIR/cellular_data/include/utils",
22    "$SUBSYSTEM_DIR/core_service/frameworks/js/cellular_data",
23    "$SUBSYSTEM_DIR/cellular_data/frameworks/js/napi/include",
24  ]
25
26  sources = [
27    "$SUBSYSTEM_DIR/cellular_data/frameworks/js/napi/src/napi_cellular_data.cpp",
28    "$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
29  ]
30
31  deps = [
32    "//foundation/ace/napi:ace_napi",
33    "//utils/native/base:utils",
34  ]
35
36  external_deps = [
37    "ability_base:want",
38    "cellular_data:tel_cellular_data_api",
39    "eventhandler:libeventhandler",
40    "ipc:ipc_core",
41    "safwk:system_ability_fwk",
42    "samgr_standard:samgr_proxy",
43  ]
44
45  if (is_standard_system) {
46    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
47  } else {
48    external_deps += [ "hilog:libhilog" ]
49  }
50
51  part_name = "cellular_data"
52  subsystem_name = "telephony"
53  relative_install_dir = "module/telephony"
54}
55