• 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("//build/ohos.gni")
15import("//build/ohos_var.gni")
16import(
17    "//foundation/distributedhardware/distributed_screen/distributedscreen.gni")
18
19ohos_shared_library("distributed_screen_utils") {
20  include_dirs = [
21    "//commonlibrary/c_utils/base/include",
22    "include",
23    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
24    "//base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter",
25    "//third_party/json/include",
26  ]
27
28  sources = [
29    "src/dscreen_hisysevent.cpp",
30    "src/dscreen_json_util.cpp",
31    "src/dscreen_log.cpp",
32    "src/dscreen_sa_process_state.cpp",
33    "src/dscreen_util.cpp",
34  ]
35
36  external_deps = [
37    "c_utils:utils",
38    "dsoftbus:softbus_client",
39    "hisysevent_native:libhisysevent",
40    "hiviewdfx_hilog_native:libhilog",
41  ]
42
43  defines = [
44    "HI_LOG_ENABLE",
45    "DH_LOG_TAG=\"dscreenutil\"",
46    "LOG_DOMAIN=0xD004100",
47  ]
48
49  subsystem_name = "distributedhardware"
50
51  part_name = "distributed_screen"
52}
53