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 "//foundation/ace/napi/native_engine", 22 "//foundation/ace/napi/interfaces/kits", 23 "//utils/system/safwk/native/include", 24 "//third_party/node/src", 25 "${device_status_interfaces_path}/innerkits/include", 26 "${device_status_service_path}/native/include", 27 "//foundation/distributedschedule/samgr/interfaces/innerkits/samgr_proxy/include", 28 "//foundation/distributedschedule/samgr/adapter/interfaces/innerkits/include", 29 ] 30} 31 32ohos_shared_library("devicestatus") { 33 sources = [ 34 "${device_status_frameworks_path}/js/napi/src/devicestatus_event.cpp", 35 "${device_status_frameworks_path}/js/napi/src/devicestatus_napi.cpp" 36 ] 37 38 configs = [ 39 "${device_status_utils_path}:devicestatus_utils_config", 40 ":devicestatusnapi_private_config", 41 ] 42 43 deps = [ 44 "//base/msdp/device_status/interfaces/innerkits:devicestatus_client", 45 "//base/msdp/device_status/services:devicestatus_service", 46 "//foundation/ace/napi:ace_napi", 47 "//utils/native/base:utils" 48 ] 49 50 external_deps = [ 51 "hiviewdfx_hilog_native:libhilog", 52 "ipc:ipc_core", 53 ] 54 55 relative_install_dir = "module" 56 subsystem_name = "msdp" 57 part_name = "${device_status_part_name}" 58} 59