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("//build/ohos.gni") 16import("//build/ohos/ace/ace.gni") 17 18config("devicestatusnapi_private_config") { 19 include_dirs = [ 20 "include", 21 "//foundation/arkui/napi/native_engine", 22 "//foundation/arkui/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/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include", 28 "//foundation/systemabilitymgr/samgr/adapter/interfaces/innerkits/include", 29 ] 30} 31 32config("devicestatus_callback_config") { 33 include_dirs = [ "include" ] 34} 35 36ohos_shared_library("stationary") { 37 sources = [ 38 "${device_status_frameworks_path}/js/napi/src/devicestatus_event.cpp", 39 "${device_status_frameworks_path}/js/napi/src/devicestatus_napi.cpp", 40 ] 41 42 configs = [ 43 "${device_status_utils_path}:devicestatus_utils_config", 44 ":devicestatusnapi_private_config", 45 ] 46 47 public_configs = [ ":devicestatus_callback_config" ] 48 49 deps = [ 50 "//base/msdp/device_status/interfaces/innerkits:devicestatus_client", 51 "//foundation/arkui/napi:ace_napi", 52 ] 53 54 external_deps = [ 55 "c_utils:utils", 56 "hiviewdfx_hilog_native:libhilog", 57 "ipc:ipc_core", 58 ] 59 60 relative_install_dir = "module" 61 subsystem_name = "msdp" 62 part_name = "${device_status_part_name}" 63} 64