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 boundary_sanitize = true 37 ubsan = true 38 integer_overflow = true 39 } 40 41 deps = [ 42 "agent:sharing_agent_srcs", 43 "configuration:sharing_configure_srcs", 44 "context:sharing_context_srcs", 45 "event:sharing_event_srcs", 46 "interaction:sharing_interaction_srcs", 47 "mediachannel:sharing_media_channel_srcs", 48 "mediaplayer:sharing_media_player_srcs", 49 "scheduler:sharing_scheduler_srcs", 50 ] 51 52 deps += [ 53 "codec:sharing_codec", 54 "common:kv_operator", 55 "common:sharing_common", 56 "network:sharing_network", 57 "protocol/rtp:sharing_rtp", 58 "protocol/rtsp:sharing_rtsp", 59 "utils:sharing_utils", 60 "//third_party/cJSON:cjson_static", 61 ] 62 63 if (sharing_framework_support_wfd) { 64 deps += [ 65 "impl/scene/wfd:sharing_wfd_srcs", 66 "impl/screen_capture:sharing_screen_capture_srcs", 67 "impl/wfd:sharing_wfd_session_srcs", 68 ] 69 } 70 71 configs = [ "$SHARING_ROOT_DIR/tests:coverage_flags" ] 72 73 external_deps = [ 74 "access_token:libaccesstoken_sdk", 75 "access_token:libnativetoken", 76 "access_token:libtoken_setproc", 77 "audio_framework:audio_capturer", 78 "audio_framework:audio_client", 79 "audio_framework:audio_renderer", 80 "graphic_2d:librender_service_base", 81 "graphic_surface:surface", 82 "hilog:libhilog", 83 "kv_store:distributeddata_inner", 84 "samgr:samgr_proxy", 85 ] 86 87 subsystem_name = "castplus" 88 part_name = "sharing_framework" 89} 90