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 18ohos_shared_library("distributed_audio_source") { 19 include_dirs = [ 20 "//third_party/json/include", 21 "${driver_audio_path}/include", 22 "${fwk_common_path}/utils/include", 23 "${mediastandardfwk_path}/audiocapturer/include", 24 "${mediastandardfwk_path}/audiocommon/include", 25 "${mediastandardfwk_path}/audiomanager/include", 26 ] 27 28 include_dirs += [ 29 "include", 30 "${audio_client_path}/micclient/include", 31 "${audio_client_path}/spkclient/include", 32 "${audio_control_path}/controlsource/include", 33 "${audio_hdi_proxy_path}/include", 34 "${audio_processor_path}/encodeprocessor/include", 35 "${audio_processor_path}/decodeprocessor/include", 36 "${audio_processor_path}/interface", 37 "${audio_transport_path}/audiochannel/interface", 38 "${audio_transport_path}/audiochannel/audiodatachannel/include", 39 "${audio_transport_path}/audioctrltransport/include", 40 "${audio_transport_path}/audioctrltransport/interface", 41 "${audio_transport_path}/audiotransportstatus/include", 42 "${audio_transport_path}/audiotransportstatus/interface", 43 "${audio_transport_path}/decodetransport/include", 44 "${audio_transport_path}/encodetransport/include", 45 "${audio_transport_path}/interface", 46 "${audio_transport_path}/receiverengine/include", 47 "${audio_transport_path}/senderengine/include", 48 "${common_path}/dfx_utils/include", 49 "${common_path}/include", 50 "${distributedaudio_path}/audiohandler/include", 51 "${hdf_service_path}/hdi_service/common/include", 52 "${innerkits_path}/native_cpp/audio_sink/include", 53 "${innerkits_path}/native_cpp/audio_source/include", 54 "${interfaces_path}/inner_kits/native_cpp/audio_sink/include", 55 "${interfaces_path}/inner_kits/native_cpp/audio_source/include", 56 "${services_path}/audiomanager/managersource/include", 57 "${services_path}/common/audiodata/include", 58 "${services_path}/common/audioeventcallback", 59 "${services_path}/common/audioparam", 60 "${services_path}/common/taskProcessor/include", 61 "${services_path}/hdfaudioclient/include", 62 "${services_path}/audiomanager/common/include", 63 "${softbusadapter_path}/include", 64 ] 65 66 sources = [ 67 "${audio_control_path}/controlsource/src/daudio_source_dev_ctrl_manager.cpp", 68 "${audio_hdi_proxy_path}/src/daudio_hdf_operate.cpp", 69 "${audio_hdi_proxy_path}/src/daudio_hdi_handler.cpp", 70 "${audio_hdi_proxy_path}/src/daudio_manager_callback.cpp", 71 "${common_path}/dfx_utils/src/daudio_hidumper.cpp", 72 "${interfaces_path}/inner_kits/native_cpp/audio_sink/src/daudio_sink_proxy.cpp", 73 "${interfaces_path}/inner_kits/native_cpp/audio_source/src/daudio_source_proxy.cpp", 74 "${services_path}/audiomanager/managersource/src/daudio_source_dev.cpp", 75 "${services_path}/audiomanager/managersource/src/daudio_source_manager.cpp", 76 "${services_path}/audiomanager/managersource/src/daudio_source_mgr_callback.cpp", 77 "${services_path}/audiomanager/managersource/src/dmic_dev.cpp", 78 "${services_path}/audiomanager/managersource/src/dspeaker_dev.cpp", 79 "src/daudio_ipc_callback_proxy.cpp", 80 "src/daudio_source_service.cpp", 81 "src/daudio_source_stub.cpp", 82 ] 83 84 deps = [ 85 "${audio_transport_path}/audioctrltransport:distributed_audio_control", 86 "${audio_transport_path}/decodetransport:distributed_audio_decode_transport", 87 "${audio_transport_path}/encodetransport:distributed_audio_encode_transport", 88 "${distributedaudio_path}/audiohandler:distributed_audio_handler", 89 "${hdf_interfaces_path}/audioext/v1_0:libdaudioext_proxy_1.0", 90 "${services_path}/common:distributed_audio_utils", 91 "${services_path}/hdfaudioclient:daudio_client", 92 ] 93 94 external_deps = [ 95 "c_utils:utils", 96 "distributed_hardware_fwk:distributed_av_receiver", 97 "distributed_hardware_fwk:distributed_av_sender", 98 "drivers_interface_audio:libaudio_proxy_1.0", 99 "dsoftbus:softbus_client", 100 "eventhandler:libeventhandler", 101 "hdf_core:libhdi", 102 "hisysevent:libhisysevent", 103 "hitrace:hitrace_meter", 104 "ipc:ipc_core", 105 "ipc:ipc_single", 106 "safwk:system_ability_fwk", 107 "samgr:samgr_proxy", 108 ] 109 110 defines = [ 111 "HI_LOG_ENABLE", 112 "LOG_DOMAIN=0xD004100", 113 ] 114 115 subsystem_name = "distributedhardware" 116 117 part_name = "distributed_audio" 118} 119