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("//build/ohos.gni") 15import("//build/ohos/ace/ace.gni") 16import("//base/msdp/device_status/device_status.gni") 17 18config("devicestatusnapi_private_config") { 19 include_dirs = [ 20 "include", 21 "${device_status_interfaces_path}/innerkits/include", 22 "${device_status_service_path}/native/include", 23 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", 24 "//foundation/distributedschedule/samgr/adapter/interfaces/innerkits/include", 25 ] 26} 27 28ohos_shared_library("deviceagent") { 29 sources = [ 30 "./devicestatus_agent.cpp", 31 ] 32 33 configs = [ 34 "${device_status_utils_path}:devicestatus_utils_config", 35 ":devicestatusnapi_private_config", 36 ] 37 38 deps = [ 39 "//base/msdp/device_status/interfaces/innerkits:devicestatus_client", 40 "//base/msdp/device_status/services:devicestatus_service", 41 "//utils/native/base:utils" 42 ] 43 44 external_deps = [ 45 "hiviewdfx_hilog_native:libhilog", 46 "ipc:ipc_core", 47 ] 48 49 subsystem_name = "msdp" 50 part_name = "${device_status_part_name}" 51} 52