• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2023 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("../../../distributedhardwarefwk.gni")
16
17ohos_shared_library("hardwaremanager") {
18  include_dirs = [
19    "include",
20    "${common_path}/log/include",
21    "${common_path}/utils/include",
22    "${innerkits_path}/include",
23    "${innerkits_path}/include/ipc",
24    "${services_path}/distributedhardwarefwkservice/include/componentmanager",
25    "${services_path}/distributedhardwarefwkservice/include/lowlatency",
26    "${services_path}/distributedhardwarefwkservice/include/utils",
27    "${services_path}/distributedhardwarefwkservice/include/task",
28    "${services_path}/distributedhardwarefwkservice/include/resourcemanager",
29    "${av_trans_path}/common/include",
30    "${utils_path}/include/log",
31    "//third_party/node/src",
32    "//third_party/json/include",
33  ]
34
35  sources = [ "src/native_distributedhardwarefwk_js.cpp" ]
36
37  deps = [
38    "${distributedhardwarefwk_path}/interfaces/inner_kits:libdhfwk_sdk",
39    "${services_path}/distributedhardwarefwkservice:distributedhardwarefwksvr",
40    "${utils_path}:distributedhardwareutils",
41  ]
42
43  defines = [
44    "HI_LOG_ENABLE",
45    "DH_LOG_TAG=\"distributedhardwaremanager_js\"",
46    "LOG_DOMAIN=0xD004100",
47  ]
48
49  external_deps = [
50    "access_token:libtokenid_sdk",
51    "bundle_framework:appexecfwk_base",
52    "ipc:ipc_core",
53    "napi:ace_napi",
54  ]
55
56  subsystem_name = "distributedhardware"
57  relative_install_dir = "module/distributedhardware"
58  part_name = "distributed_hardware_fwk"
59}
60