• 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("//foundation/distributedhardware/distributedscreen/distributedscreen.gni")
17
18ohos_shared_library("distributed_screen_sink") {
19    include_dirs = [
20        "//third_party/json/include",
21        "//utils/native/base/include",
22        "//utils/system/safwk/native/include",
23        "//foundation/graphic/standard/interfaces/innerkits/surface",
24        "${windowmanager_path}/interfaces/innerkits/dm",
25        "${fwk_common_path}/utils/include",
26    ]
27
28    include_dirs += [
29        "./dscreenservice/include",
30        "./screenregionmgr/include",
31        "${interfaces_path}/innerkits/native_cpp/screen_sink/include",
32        "${interfaces_path}/innerkits/native_cpp/screen_sink/include/callback",
33        "${interfaces_path}/innerkits/native_cpp/screen_source/include",
34        "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback",
35        "${common_path}/include",
36        "${services_path}/common/utils/include",
37        "${services_path}/common/databuffer/include",
38        "${services_path}/common/screen_channel/include",
39        "${services_path}/screentransport/screensinktrans/include",
40        "${services_path}/screentransport/screensinkprocessor/include",
41        "${services_path}/screentransport/screensinkprocessor/decoder/include",
42        "${services_path}/screenclient/include/",
43    ]
44
45    sources = [
46        "${services_path}/common/utils/src/dscreen_maprelation.cpp",
47        "${services_path}/common/utils/src/video_param.cpp",
48        "${interfaces_path}/innerkits/native_cpp/screen_sink/src/dscreen_sink_proxy.cpp",
49        "${interfaces_path}/innerkits/native_cpp/screen_source/src/dscreen_source_proxy.cpp",
50        "./dscreenservice/src/dscreen_sink_service.cpp",
51        "./dscreenservice/src/dscreen_sink_stub.cpp",
52        "./screenregionmgr/src/screenregion.cpp",
53        "./screenregionmgr/src/screenregionmgr.cpp",
54    ]
55
56    deps = [
57        "//utils/native/base:utils",
58        "${common_path}:distributed_screen_utils",
59        "${services_path}/screentransport/screensinktrans:distributed_screen_sinktrans",
60        "${services_path}/screenclient:distributed_screen_client",
61        "//foundation/graphic/standard/frameworks/surface:surface",
62        "${windowmanager_path}/dm:libdm",
63    ]
64
65    defines = [
66        "HI_LOG_ENABLE",
67        "DH_LOG_TAG=\"dscreensink\"",
68        "LOG_DOMAIN=0xD004100",
69    ]
70
71    external_deps = [
72        "hiviewdfx_hilog_native:libhilog",
73        "ipc:ipc_core",
74        "safwk:system_ability_fwk",
75        "samgr_standard:samgr_proxy",
76        "multimedia_media_standard:media_client",
77    ]
78
79    subsystem_name = "distributedhardware"
80
81    part_name = "distributed_screen"
82}