• 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_handler") {
20  include_dirs = [
21    "//third_party/json/include",
22    "${windowmanager_path}/interfaces/innerkits/dm",
23    "${mediastandard_path}/interfaces/inner_api/native",
24    "${fwk_common_path}/utils/include",
25  ]
26
27  include_dirs += [
28    "include",
29    "${common_path}/include",
30    "//foundation/graphic/graphic_2d/rosen/modules/render_service_base/include",
31    "//drivers/peripheral/display/interfaces/include",
32    "//drivers/peripheral/base",
33    "//foundation/communication/ipc/interfaces/innerkits/ipc_core/include",
34    "//foundation/graphic/graphic_2d/utils/buffer_handle/export",
35  ]
36
37  sources = [ "src/dscreen_handler.cpp" ]
38
39  deps = [
40    "${common_path}:distributed_screen_utils",
41    "${mediastandard_path}/interfaces/inner_api/native:media_client",
42    "${windowmanager_path}/dm:libdm",
43  ]
44
45  defines = [
46    "HI_LOG_ENABLE",
47    "DH_LOG_TAG=\"dscreenhandler\"",
48    "LOG_DOMAIN=0xD004100",
49  ]
50
51  external_deps = [ "c_utils:utils" ]
52
53  subsystem_name = "distributedhardware"
54
55  part_name = "distributed_screen"
56}
57