1# Copyright (c) 2022-2023 Huawei Device 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("//build/ohos_var.gni") 16import("../../../distributedaudio.gni") 17 18config("encode_transport_pub_config") { 19 include_dirs = [ 20 "include", 21 "../interface", 22 "../../audioprocessor/interface", 23 ] 24} 25 26ohos_shared_library("distributed_audio_encode_transport") { 27 sanitize = { 28 boundary_sanitize = true 29 cfi = true 30 cfi_cross_dso = true 31 debug = false 32 integer_overflow = true 33 ubsan = true 34 } 35 stack_protector_ret = true 36 include_dirs = [ 37 "${mediastandard_path}/interfaces/innerkits/native/media/include", 38 "${mediastandardfwk_path}/audiocommon/include", 39 "//third_party/json/include", 40 ] 41 42 include_dirs += [ 43 "include", 44 "${audio_processor_path}/directprocessor/include", 45 "${audio_processor_path}/interface", 46 "${audio_transport_path}/interface", 47 "${audio_transport_path}/senderengine/include", 48 "${common_path}/dfx_utils/include", 49 "${common_path}/include", 50 "${services_path}/common/audiodata/include", 51 "${services_path}/common/audioparam", 52 ] 53 54 public_configs = [ ":encode_transport_pub_config" ] 55 56 sources = [ 57 "${audio_processor_path}/directprocessor/src/audio_direct_processor.cpp", 58 "${audio_transport_path}/senderengine/src/av_sender_engine_adapter.cpp", 59 "${audio_transport_path}/senderengine/src/av_sender_engine_transport.cpp", 60 "${services_path}/common/audiodata/src/audio_data.cpp", 61 ] 62 63 deps = [ "${services_path}/common:distributed_audio_utils" ] 64 65 external_deps = [ 66 "c_utils:utils", 67 "distributed_hardware_fwk:distributed_av_sender", 68 "dsoftbus:softbus_client", 69 "hisysevent:libhisysevent", 70 "hitrace:hitrace_meter", 71 "player_framework:media_client", 72 ] 73 74 defines = [ 75 "HI_LOG_ENABLE", 76 "LOG_DOMAIN=0xD004130", 77 ] 78 79 subsystem_name = "distributedhardware" 80 81 part_name = "distributed_audio" 82} 83