1# Copyright (c) 2023 Shenzhen Kaihong Digital Industry Development 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("//foundation/CastEngine/castengine_wifi_display/config.gni") 16 17group("sharing_services_package") { 18 deps = [ 19 ":sharing_service", 20 "codec:sharing_codec", 21 "common:kv_operator", 22 "common:sharing_common", 23 "network:sharing_network", 24 "protocol/rtp:sharing_rtp", 25 "utils:sharing_utils", 26 ] 27} 28 29ohos_shared_library("sharing_service") { 30 install_enable = true 31 32 sanitize = { 33 cfi = true 34 cfi_cross_dso = true 35 debug = false 36 } 37 38 deps = [ 39 "agent:sharing_agent_srcs", 40 "configuration:sharing_configure_srcs", 41 "context:sharing_context_srcs", 42 "event:sharing_event_srcs", 43 "interaction:sharing_interaction_srcs", 44 "mediachannel:sharing_media_channel_srcs", 45 "mediaplayer:sharing_media_player_srcs", 46 "scheduler:sharing_scheduler_srcs", 47 ] 48 49 deps += [ 50 "codec:sharing_codec", 51 "common:kv_operator", 52 "common:sharing_common", 53 "network:sharing_network", 54 "protocol/rtp:sharing_rtp", 55 "protocol/rtsp:sharing_rtsp", 56 "utils:sharing_utils", 57 "//third_party/cJSON:cjson_static", 58 ] 59 60 if (sharing_framework_support_wfd) { 61 deps += [ 62 "impl/scene/wfd:sharing_wfd_srcs", 63 "impl/screen_capture:sharing_screen_capture_srcs", 64 "impl/wfd:sharing_wfd_session_srcs", 65 ] 66 } 67 68 configs = [ "$SHARING_ROOT_DIR/tests:coverage_flags" ] 69 70 external_deps = [ 71 "access_token:libaccesstoken_sdk", 72 "access_token:libnativetoken", 73 "access_token:libtoken_setproc", 74 "audio_framework:audio_capturer", 75 "audio_framework:audio_client", 76 "audio_framework:audio_renderer", 77 "graphic_surface:surface", 78 "hilog:libhilog", 79 "kv_store:distributeddata_inner", 80 "samgr:samgr_proxy", 81 ] 82 83 subsystem_name = "castplus" 84 part_name = "sharing_framework" 85} 86