• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-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("//build/ohos_var.gni")
16import(
17    "//foundation/distributedhardware/distributed_screen/distributedscreen.gni")
18
19ohos_shared_library("distributed_screen_sink") {
20  include_dirs = [
21    "//third_party/json/include",
22    "${fwk_common_path}/utils/include",
23    "${distributedhardwarefwk_path}/interfaces/inner_kits/include",
24  ]
25
26  include_dirs += [
27    "./dscreenservice/include",
28    "${services_path}/screenservice/sinkservice/screenregionmgr",
29    "${interfaces_path}/innerkits/native_cpp/screen_sink/include",
30    "${interfaces_path}/innerkits/native_cpp/screen_sink/include/callback",
31    "${interfaces_path}/innerkits/native_cpp/screen_source/include",
32    "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback",
33    "${common_path}/include",
34    "${services_path}/common/utils/include",
35    "${services_path}/common/databuffer/include",
36    "${services_path}/common/screen_channel/include",
37    "${services_path}/screentransport/screensinktrans/include",
38    "${services_path}/screentransport/screensinkprocessor/include",
39    "${services_path}/screentransport/screensinkprocessor/decoder/include",
40    "${services_path}/screenclient/include/",
41  ]
42
43  sources = [
44    "${interfaces_path}/innerkits/native_cpp/screen_sink/src/dscreen_sink_proxy.cpp",
45    "${interfaces_path}/innerkits/native_cpp/screen_source/src/dscreen_source_proxy.cpp",
46    "${services_path}/common/utils/src/dscreen_fwkkit.cpp",
47    "${services_path}/common/utils/src/dscreen_maprelation.cpp",
48    "${services_path}/common/utils/src/video_param.cpp",
49    "./dscreenservice/src/dscreen_sink_service.cpp",
50    "./dscreenservice/src/dscreen_sink_stub.cpp",
51    "./screenregionmgr/1.0/src/screenregion.cpp",
52    "./screenregionmgr/1.0/src/screenregionmgr.cpp",
53    "./screenregionmgr/2.0/src/av_receiver_engine_adapter.cpp",
54    "./screenregionmgr/2.0/src/screenregion.cpp",
55    "./screenregionmgr/2.0/src/screenregionmgr.cpp",
56  ]
57
58  deps = [
59    "${common_path}:distributed_screen_utils",
60    "${services_path}/screenclient:distributed_screen_client",
61    "${services_path}/screentransport/screensinktrans:distributed_screen_sinktrans",
62  ]
63
64  defines = [
65    "HI_LOG_ENABLE",
66    "DH_LOG_TAG=\"dscreensink\"",
67    "LOG_DOMAIN=0xD004100",
68  ]
69
70  external_deps = [
71    "c_utils:utils",
72    "distributed_hardware_fwk:distributed_av_receiver",
73    "distributed_hardware_fwk:libdhfwk_sdk",
74    "graphic_2d:libgraphic_utils",
75    "graphic_2d:surface",
76    "hisysevent:libhisysevent",
77    "image_framework:image_native",
78    "ipc:ipc_core",
79    "safwk:system_ability_fwk",
80    "samgr:samgr_proxy",
81    "window_manager:libdm",
82  ]
83
84  subsystem_name = "distributedhardware"
85
86  part_name = "distributed_screen"
87}
88