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 } 28 29 sources = [ 30 "base_consumer.cpp", 31 "base_producer.cpp", 32 "buffer_dispatcher.cpp", 33 "channel_manager.cpp", 34 "media_channel.cpp", 35 ] 36 37 configs = [ "$SHARING_ROOT_DIR/tests:coverage_flags" ] 38 39 include_dirs = [ 40 "//utils/native/base/include", 41 "$SHARING_ROOT_DIR/services", 42 "$SHARING_ROOT_DIR/services/mediaplayer/include", 43 "$SHARING_ROOT_DIR/services/mediachannel", 44 "$SHARING_ROOT_DIR/services/utils", 45 "$SHARING_ROOT_DIR/services/common", 46 "$SHARING_ROOT_DIR/services/codec/include", 47 "$SHARING_ROOT_DIR/services/protocol", 48 "$SHARING_ROOT_DIR/services/protocol/frame", 49 "$SHARING_ROOT_DIR/services/protocol/rtp", 50 "$SHARING_ROOT_DIR/services/protocol/rtp/interfaces", 51 "$SHARING_ROOT_DIR/services/extend/magic_enum", 52 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 53 "//base/security/access_token/interfaces/innerkits/token_setproc/include", 54 "//drivers/peripheral/camera/interfaces/metadata/include", 55 "//utils/system/safwk/native/include", 56 ] 57 58 external_deps = [ 59 "access_token:libaccesstoken_sdk", 60 "access_token:libnativetoken", 61 "access_token:libtoken_setproc", 62 "audio_framework:audio_capturer", 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