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 17ohos_source_set("sharing_media_channel_srcs") { 18 cflags = [ 19 "-Wno-invalid-noreturn", 20 "-Wno-deprecated-builtins", 21 ] 22 23 sanitize = { 24 cfi = true 25 cfi_cross_dso = true 26 debug = false 27 boundary_sanitize = true 28 ubsan = true 29 integer_overflow = true 30 } 31 32 sources = [ 33 "base_consumer.cpp", 34 "base_producer.cpp", 35 "buffer_dispatcher.cpp", 36 "channel_manager.cpp", 37 "media_channel.cpp", 38 ] 39 40 configs = [ 41 "$SHARING_ROOT_DIR/tests:coverage_flags", 42 "$SHARING_ROOT_DIR:wifi_display_default_config", 43 ] 44 45 include_dirs = [ 46 "$SHARING_ROOT_DIR/services", 47 "$SHARING_ROOT_DIR/services/mediaplayer/include", 48 "$SHARING_ROOT_DIR/services/mediachannel", 49 "$SHARING_ROOT_DIR/services/utils", 50 "$SHARING_ROOT_DIR/services/common", 51 "$SHARING_ROOT_DIR/services/codec/include", 52 "$SHARING_ROOT_DIR/services/protocol", 53 "$SHARING_ROOT_DIR/services/protocol/frame", 54 "$SHARING_ROOT_DIR/services/protocol/rtp", 55 "$SHARING_ROOT_DIR/services/protocol/rtp/interfaces", 56 "$SHARING_ROOT_DIR/services/extend/magic_enum", 57 ] 58 59 external_deps = [ 60 "access_token:libaccesstoken_sdk", 61 "access_token:libnativetoken", 62 "access_token:libtoken_setproc", 63 "audio_framework:audio_client", 64 "audio_framework:audio_renderer", 65 "av_codec:av_codec_client", 66 "camera_framework:camera_framework", 67 "drivers_interface_camera:metadata", 68 "graphic_surface:surface", 69 "hilog:libhilog", 70 ] 71 72 subsystem_name = "castplus" 73 part_name = "sharing_framework" 74} 75