• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021-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(
16    "//foundation/distributedhardware/distributed_hardware_fwk/distributedhardwarefwk.gni")
17
18ohos_shared_library("distributedhardwareutils") {
19  include_dirs = [
20    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
21    "//base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter",
22    "//third_party/json/include",
23    "//commonlibrary/c_utils/base/include",
24    "//utils/system/safwk/native/include",
25    "${common_path}/log/include",
26    "${common_path}/utils/include",
27    "include",
28    "include/log",
29    "include/eventbus",
30  ]
31
32  sources = [
33    "src/anonymous_string.cpp",
34    "src/dh_utils_hisysevent.cpp",
35    "src/dh_utils_hitrace.cpp",
36    "src/dh_utils_tool.cpp",
37    "src/log/dh_log.cpp",
38  ]
39
40  deps = [ "//third_party/openssl:libcrypto_shared" ]
41
42  defines = [
43    "HI_LOG_ENABLE",
44    "DH_LOG_TAG=\"distributedhardwareutils\"",
45    "LOG_DOMAIN=0xD004100",
46  ]
47
48  external_deps = [
49    "c_utils:utils",
50    "dsoftbus:softbus_client",
51    "hisysevent_native:libhisysevent",
52    "hitrace_native:hitrace_meter",
53    "hiviewdfx_hilog_native:libhilog",
54  ]
55
56  subsystem_name = "distributedhardware"
57
58  part_name = "distributed_hardware_fwk"
59}
60