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_sink") { 20 include_dirs = [ 21 "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include", 22 "//third_party/json/include", 23 "//commonlibrary/c_utils/base/include", 24 "//utils/system/safwk/native/include", 25 "//foundation/graphic/graphic_2d/interfaces/inner_api/surface", 26 "//foundation/graphic/graphic_2d/interfaces/inner_api/common", 27 "//foundation/graphic/graphic_2d/utils/buffer_handle/export", 28 "${windowmanager_path}/interfaces/innerkits/dm", 29 "${fwk_common_path}/utils/include", 30 "${distributedhardwarefwk_path}/interfaces/inner_kits/include", 31 ] 32 33 include_dirs += [ 34 "./dscreenservice/include", 35 "./screenregionmgr/include", 36 "${interfaces_path}/innerkits/native_cpp/screen_sink/include", 37 "${interfaces_path}/innerkits/native_cpp/screen_sink/include/callback", 38 "${interfaces_path}/innerkits/native_cpp/screen_source/include", 39 "${interfaces_path}/innerkits/native_cpp/screen_source/include/callback", 40 "${common_path}/include", 41 "${services_path}/common/utils/include", 42 "${services_path}/common/databuffer/include", 43 "${services_path}/common/screen_channel/include", 44 "${services_path}/screentransport/screensinktrans/include", 45 "${services_path}/screentransport/screensinkprocessor/include", 46 "${services_path}/screentransport/screensinkprocessor/decoder/include", 47 "${services_path}/screenclient/include/", 48 "//foundation/multimedia/image_framework/interfaces/innerkits/include", 49 "//drivers/peripheral/display/interfaces/include", 50 "//drivers/peripheral/base", 51 ] 52 53 sources = [ 54 "${interfaces_path}/innerkits/native_cpp/screen_sink/src/dscreen_sink_proxy.cpp", 55 "${interfaces_path}/innerkits/native_cpp/screen_source/src/dscreen_source_proxy.cpp", 56 "${services_path}/common/utils/src/dscreen_fwkkit.cpp", 57 "${services_path}/common/utils/src/dscreen_maprelation.cpp", 58 "${services_path}/common/utils/src/video_param.cpp", 59 "./dscreenservice/src/dscreen_sink_service.cpp", 60 "./dscreenservice/src/dscreen_sink_stub.cpp", 61 "./screenregionmgr/src/screenregion.cpp", 62 "./screenregionmgr/src/screenregionmgr.cpp", 63 ] 64 65 deps = [ 66 "${common_path}:distributed_screen_utils", 67 "${distributedhardwarefwk_path}/interfaces/inner_kits:libdhfwk_sdk", 68 "${services_path}/screenclient:distributed_screen_client", 69 "${services_path}/screentransport/screensinktrans:distributed_screen_sinktrans", 70 "${windowmanager_path}/dm:libdm", 71 ] 72 73 defines = [ 74 "HI_LOG_ENABLE", 75 "DH_LOG_TAG=\"dscreensink\"", 76 "LOG_DOMAIN=0xD004100", 77 ] 78 79 external_deps = [ 80 "c_utils:utils", 81 "ipc:ipc_core", 82 "safwk:system_ability_fwk", 83 "samgr:samgr_proxy", 84 ] 85 86 subsystem_name = "distributedhardware" 87 88 part_name = "distributed_screen" 89} 90