1# Copyright (c) 2022-2025 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("../../../../config.gni") 16 17group("pa_extend_modules") { 18 if (!audio_framework_feature_new_engine_flag) { 19 deps = [ 20 ":pa_client_config", 21 ":pa_daemon_config", 22 ":pa_default_config", 23 "hdi:module-hdi-sink", 24 "hdi:module-hdi-source", 25 "hdi:module-split-stream-sink", 26 ] 27 28 if (audio_framework_feature_inner_capturer) { 29 deps += [ "capturer:module-inner-capturer-sink" ] 30 } 31 32 external_deps = [ 33 "pulseaudio:cli", 34 "pulseaudio:module-cli-protocol-unix", 35 "pulseaudio:module-native-protocol-fd", 36 "pulseaudio:module-native-protocol-tcp", 37 "pulseaudio:module-native-protocol-unix", 38 "pulseaudio:module-suspend-on-idle", 39 "pulseaudio:protocol-cli", 40 "pulseaudio:protocol-native", 41 "pulseaudio:pulse", 42 "pulseaudio:pulse-simple", 43 "pulseaudio:pulseaudio", 44 "pulseaudio:pulsecommon", 45 "pulseaudio:pulsecore", 46 "pulseaudio:sonic", 47 ] 48 } 49} 50 51ohos_prebuilt_etc("pa_daemon_config") { 52 source = "../conf/daemon.conf" 53 54 module_install_dir = "etc/pulse" 55 56 subsystem_name = "multimedia" 57 part_name = "audio_framework" 58} 59 60ohos_prebuilt_etc("pa_default_config") { 61 source = "../conf/default.pa" 62 module_install_dir = "etc/pulse" 63 64 subsystem_name = "multimedia" 65 part_name = "audio_framework" 66} 67 68ohos_prebuilt_etc("pa_client_config") { 69 source = "../conf/client.conf" 70 module_install_dir = "etc/pulse" 71 72 subsystem_name = "multimedia" 73 part_name = "audio_framework" 74} 75