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("decode_transport_pub_config") { 19 include_dirs = [ 20 "include", 21 "../audiochannel/audiodatachannel/include", 22 "../audiochannel/interface", 23 "../audiotransportstatus/include", 24 "../audiotransportstatus/interface", 25 "../interface", 26 "../../audioprocessor/interface", 27 ] 28} 29 30ohos_shared_library("distributed_audio_decode_transport") { 31 include_dirs = [ 32 "${mediastandard_path}/interfaces/innerkits/native/media/include", 33 "${mediastandardfwk_path}/audiocommon/include", 34 "//third_party/json/include", 35 ] 36 37 include_dirs += [ 38 "include", 39 "${audio_processor_path}/decodeprocessor/include", 40 "${audio_processor_path}/decoder/include", 41 "${audio_processor_path}/directprocessor/include", 42 "${audio_processor_path}/interface", 43 "${audio_transport_path}/audiochannel/audiodatachannel/include", 44 "${audio_transport_path}/audiochannel/interface", 45 "${audio_transport_path}/audiotransportstatus/include", 46 "${audio_transport_path}/audiotransportstatus/interface", 47 "${audio_transport_path}/interface", 48 "${audio_transport_path}/receiverengine/include", 49 "${common_path}/include", 50 "${common_path}/dfx_utils/include", 51 "${services_path}/common/audiodata/include", 52 "${services_path}/common/audioparam", 53 "${softbusadapter_path}/include", 54 ] 55 56 public_configs = [ ":decode_transport_pub_config" ] 57 58 sources = [ 59 "${audio_processor_path}/decodeprocessor/src/audio_decoder_processor.cpp", 60 "${audio_processor_path}/decoder/src/audio_decoder.cpp", 61 "${audio_processor_path}/decoder/src/audio_decoder_callback.cpp", 62 "${audio_processor_path}/directprocessor/src/audio_direct_processor.cpp", 63 "${audio_transport_path}/receiverengine/src/av_receiver_engine_adapter.cpp", 64 "${audio_transport_path}/receiverengine/src/av_receiver_engine_transport.cpp", 65 "${services_path}/common/audiodata/src/audio_data.cpp", 66 "src/audio_decode_transport.cpp", 67 ] 68 69 deps = [ 70 "${audio_transport_path}/audiochannel/audiodatachannel:distributed_audio_data_channel", 71 "${audio_transport_path}/audiotransportstatus:distributed_audio_transport_status", 72 "${services_path}/common:distributed_audio_utils", 73 ] 74 75 external_deps = [ 76 "c_utils:utils", 77 "distributed_hardware_fwk:distributed_av_receiver", 78 "dsoftbus:softbus_client", 79 "hisysevent:libhisysevent", 80 "hitrace:hitrace_meter", 81 "player_framework:media_client", 82 ] 83 84 defines = [ 85 "HI_LOG_ENABLE", 86 "LOG_DOMAIN=0xD004100", 87 ] 88 89 subsystem_name = "distributedhardware" 90 91 part_name = "distributed_audio" 92} 93