• 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")
15import("//build/ohos.gni")
16import("//build/ohos/ace/ace.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/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy/include",
24    "//foundation/systemabilitymgr/samgr/adapter/interfaces/innerkits/include",
25  ]
26}
27
28ohos_shared_library("deviceagent") {
29  sources = [ "./devicestatus_agent.cpp" ]
30
31  configs = [
32    "${device_status_utils_path}:devicestatus_utils_config",
33    ":devicestatusnapi_private_config",
34  ]
35
36  deps = [
37    "//base/msdp/device_status/interfaces/innerkits:devicestatus_client",
38  ]
39
40  public_configs = [
41    "${device_status_frameworks_path}/js/napi:devicestatus_callback_config",
42  ]
43
44  external_deps = [
45    "c_utils:utils",
46    "hiviewdfx_hilog_native:libhilog",
47    "ipc:ipc_core",
48  ]
49
50  subsystem_name = "msdp"
51  part_name = "${device_status_part_name}"
52}
53