• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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/usb/usb_manager/usbmgr.gni")
15
16config("usbnapi_private_config") {
17  include_dirs = [
18    "//foundation/ace/napi/native_engine",
19    "//foundation/ace/napi/interfaces/kits",
20    "//third_party/node/src",
21    "${usb_manager_path}/interfaces/kits/js/napi/include",
22    "${usb_manager_path}/interfaces/innerkits/native/include",
23  ]
24}
25
26ohos_shared_library("usb") {
27  sources = [
28    "src/napi_util.cpp",
29    "src/usb_info.cpp",
30  ]
31  configs = [
32    "${utils_path}:utils_config",
33    ":usbnapi_private_config",
34  ]
35  deps = [
36    "${usb_manager_path}/interfaces/innerkits:usbsrv_client",
37    "//foundation/ace/napi:ace_napi",
38  ]
39  external_deps = [
40    "hiviewdfx_hilog_native:libhilog",
41    "ipc:ipc_core",
42    "samgr_standard:lsamgr",
43    "usb_device_driver:usbd_client",
44    "utils_base:utils",
45  ]
46
47  relative_install_dir = "module"
48
49  subsystem_name = "usb"
50  part_name = "usb_manager"
51}
52