• 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_source") {
20  include_dirs = [
21    "//third_party/json/include",
22    "//third_party/libjpeg-turbo",
23    "${distributedhardwarefwk_path}/interfaces/inner_kits/include",
24    "${distributedhardwarefwk_path}/utils/include",
25    "${fwk_common_path}/utils/include",
26  ]
27
28  include_dirs += [
29    "./dscreenservice/include",
30    "./dscreenservice/include/callback",
31    "${services_path}/screenservice/sourceservice/dscreenmgr",
32    "${services_path}/screenservice/sourceservice/dscreenmgr/common/include",
33    "${interfaces_path}/innerkits/native_cpp/screen_sink/include",
34    "${interfaces_path}/innerkits/native_cpp/screen_sink/include/callback",
35    "${interfaces_path}/innerkits/native_cpp/screen_source/include",
36    "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback",
37    "${common_path}/include",
38    "${services_path}/common/utils/include",
39    "${services_path}/common/databuffer/include",
40    "${services_path}/common/screen_channel/include",
41    "${services_path}/screentransport/screensourceprocessor/include",
42    "${services_path}/screentransport/screensourceprocessor/encoder/include",
43    "${services_path}/screentransport/screensourcetrans/include",
44    "${services_path}/common/imageJpeg/include",
45    "${services_path}/common/decision_center/include",
46  ]
47
48  sources = [
49    "${interfaces_path}/innerkits/native_cpp/screen_sink/src/dscreen_sink_proxy.cpp",
50    "${interfaces_path}/innerkits/native_cpp/screen_source/src/dscreen_source_proxy.cpp",
51    "${services_path}/common/utils/src/dscreen_fwkkit.cpp",
52    "${services_path}/common/utils/src/dscreen_maprelation.cpp",
53    "${services_path}/common/utils/src/video_param.cpp",
54    "./dscreenmgr/1.0/src/dscreen.cpp",
55    "./dscreenmgr/1.0/src/dscreen_manager.cpp",
56    "./dscreenmgr/2.0/src/av_sender_engine_adapter.cpp",
57    "./dscreenmgr/2.0/src/dscreen.cpp",
58    "./dscreenmgr/2.0/src/dscreen_manager.cpp",
59    "./dscreenmgr/common/src/screen_manager_adapter.cpp",
60    "./dscreenservice/src/callback/dscreen_source_callback_proxy.cpp",
61    "./dscreenservice/src/dscreen_source_service.cpp",
62    "./dscreenservice/src/dscreen_source_stub.cpp",
63  ]
64
65  deps = [
66    "${common_path}:distributed_screen_utils",
67    "${services_path}/screentransport/screensourcetrans:distributed_screen_sourcetrans",
68  ]
69
70  defines = [
71    "HI_LOG_ENABLE",
72    "DH_LOG_TAG=\"dscreensource\"",
73    "LOG_DOMAIN=0xD004100",
74  ]
75
76  external_deps = [
77    "c_utils:utils",
78    "distributed_hardware_fwk:distributed_av_sender",
79    "distributed_hardware_fwk:distributedhardwareutils",
80    "distributed_hardware_fwk:libdhfwk_sdk",
81    "graphic_2d:libcomposer",
82    "graphic_2d:surface",
83    "hisysevent:libhisysevent",
84    "image_framework:image_native",
85    "ipc:ipc_core",
86    "player_framework:media_client",
87    "safwk:system_ability_fwk",
88    "samgr:samgr_proxy",
89    "window_manager:libdm",
90  ]
91
92  subsystem_name = "distributedhardware"
93
94  part_name = "distributed_screen"
95}
96