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") 15import("//foundation/distributeddatamgr/relational_store/relational_store.gni") 16 17config("devicestatus_private_config") { 18 include_dirs = [ "//utils/system/safwk/native/include" ] 19} 20 21config("devicestatus_srv_public_config") { 22 include_dirs = [ 23 "native/include", 24 "${device_status_interfaces_path}/innerkits/include", 25 "//foundation/distributedhardware/device_manager/interfaces/inner_kits/native_cpp/include/", 26 "//base/msdp/device_status/libs/interface", 27 "${ability_runtime_path}/interfaces/kits/native/ability/native/", 28 "${relational_store_innerapi_path}/appdatafwk/include/", 29 ] 30} 31 32ohos_shared_library("devicestatus_service") { 33 sources = [ 34 "native/src/devicestatus_dumper.cpp", 35 "native/src/devicestatus_manager.cpp", 36 "native/src/devicestatus_msdp_client_impl.cpp", 37 "native/src/devicestatus_service.cpp", 38 "native/src/devicestatus_srv_stub.cpp", 39 "native/src/devicestatus_callback_proxy.cpp", 40 ] 41 42 configs = [ 43 "${device_status_utils_path}:devicestatus_utils_config", 44 ":devicestatus_private_config", 45 ] 46 47 public_configs = [ ":devicestatus_srv_public_config" ] 48 49 deps = [ 50 "${device_status_interfaces_path}/innerkits:devicestatus_client", 51 "//drivers/peripheral/sensor/hal:hdi_sensor", 52 ] 53 54 external_deps = [ 55 "access_token:libaccesstoken_sdk", 56 "c_utils:utils", 57 "hisysevent_native:libhisysevent", 58 "hitrace_native:hitrace_meter", 59 "hiviewdfx_hilog_native:libhilog", 60 "ipc:ipc_core", 61 "relational_store:native_rdb", 62 "safwk:system_ability_fwk", 63 ] 64 65 part_name = "${device_status_part_name}" 66} 67