• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022 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.
13
14import("//base/msdp/device_status/device_status.gni")
15
16config("devicestatus_private_config") {
17  include_dirs = [ "//utils/system/safwk/native/include" ]
18}
19
20config("devicestatus_srv_public_config") {
21  include_dirs = [
22    "include",
23    "interface",
24    "${device_status_interfaces_path}/innerkits/include",
25    "//foundation/distributedhardware/devicemanager/interfaces/inner_kits/native_cpp/include/",
26    "//foundation/distributeddatamgr/appdatamgr/interfaces/innerkits/native_rdb/include/",
27    "//foundation/aafwk/standard/frameworks/kits/ability/native/include/",
28    "//foundation/distributeddatamgr/appdatamgr/interfaces/innerkits/native_appdatafwk/include/",
29    "//base/sensors/sensor/interfaces/native/include/",
30  ]
31}
32
33ohos_shared_library("devicestatus_sensorhdi") {
34  sources = [ "src/devicestatus_sensor_rdb.cpp" ]
35
36  configs = [
37    "${device_status_utils_path}:devicestatus_utils_config",
38    ":devicestatus_private_config",
39  ]
40
41  public_configs = [ ":devicestatus_srv_public_config" ]
42
43  deps = [
44    "${device_status_interfaces_path}/innerkits:devicestatus_client",
45    "//drivers/peripheral/sensor/hal:hdi_sensor",
46    "//third_party/jsoncpp",
47    "//utils/native/base:utils",
48  ]
49
50  external_deps = [
51    "ability_base:base",
52    "hiviewdfx_hilog_native:libhilog",
53    "ipc:ipc_core",
54    "native_appdatamgr:native_rdb",
55    "permission_standard:libpermissionsdk_standard",
56    "safwk:system_ability_fwk",
57    "samgr_standard:samgr_proxy",
58    "sensor:sensor_interface_native",
59  ]
60
61  part_name = "${device_status_part_name}"
62}
63
64ohos_shared_library("devicestatus_msdp") {
65  sources = [ "src/devicestatus_msdp_rdb.cpp" ]
66
67  configs = [
68    "${device_status_utils_path}:devicestatus_utils_config",
69    ":devicestatus_private_config",
70  ]
71
72  public_configs = [ ":devicestatus_srv_public_config" ]
73
74  deps = [
75    "${device_status_interfaces_path}/innerkits:devicestatus_client",
76    "//drivers/peripheral/sensor/hal:hdi_sensor",
77    "//third_party/jsoncpp",
78    "//utils/native/base:utils",
79  ]
80
81  external_deps = [
82    "ability_base:base",
83    "hiviewdfx_hilog_native:libhilog",
84    "ipc:ipc_core",
85    "native_appdatamgr:native_rdb",
86    "permission_standard:libpermissionsdk_standard",
87    "safwk:system_ability_fwk",
88    "samgr_standard:samgr_proxy",
89  ]
90
91  part_name = "${device_status_part_name}"
92}
93