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 = [ 38 "$SHARING_ROOT_DIR/services/codec:codec_external_include", 39 "$SHARING_ROOT_DIR/tests:coverage_flags", 40 ] 41 42 include_dirs = [ 43 "//utils/native/base/include", 44 "$SHARING_ROOT_DIR/services", 45 "$SHARING_ROOT_DIR/services/mediaplayer/include", 46 "$SHARING_ROOT_DIR/services/mediachannel", 47 "$SHARING_ROOT_DIR/services/utils", 48 "$SHARING_ROOT_DIR/services/common", 49 "$SHARING_ROOT_DIR/services/codec/include", 50 "$SHARING_ROOT_DIR/services/protocol", 51 "$SHARING_ROOT_DIR/services/protocol/frame", 52 "$SHARING_ROOT_DIR/services/protocol/rtp", 53 "$SHARING_ROOT_DIR/services/protocol/rtp/interfaces", 54 "$SHARING_ROOT_DIR/services/extend/magic_enum", 55 "//base/security/access_token/interfaces/innerkits/accesstoken/include", 56 "//base/security/access_token/interfaces/innerkits/token_setproc/include", 57 "//drivers/peripheral/camera/interfaces/metadata/include", 58 "//utils/system/safwk/native/include", 59 ] 60 61 external_deps = [ 62 "access_token:libaccesstoken_sdk", 63 "access_token:libnativetoken", 64 "access_token:libtoken_setproc", 65 "audio_framework:audio_capturer", 66 "audio_framework:audio_client", 67 "audio_framework:audio_renderer", 68 "camera_framework:camera_framework", 69 "drivers_interface_camera:metadata", 70 "graphic_surface:surface", 71 "hilog:libhilog", 72 "player_framework:media_client", 73 ] 74 75 subsystem_name = "castplus" 76 part_name = "sharing_framework" 77} 78