1# Copyright (c) 2021-2022 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") 15 16group("pulseaudio_packages") { 17 deps = [ 18 "../sonic:sonic", 19 "src:pa_client_config", 20 "src:pa_daemon_config", 21 "src:pa_default_config", 22 "src:pulsecommon", 23 "src/daemon:pulseaudio", 24 "src/modules:native-modules", 25 "src/pulse:pulse", 26 "src/pulse:pulse-simple", 27 "src/pulsecore:cli", 28 "src/pulsecore:protocol-cli", 29 "src/pulsecore:protocol-native", 30 "src/pulsecore:pulsecore", 31 ] 32 if (build_variant == "root") { 33 deps += [ 34 "src/utils:pacmd", 35 "src/utils:pactl", 36 ] 37 } 38} 39 40action("gen_config_header") { 41 script = "ohos_paconfig.sh" 42 43 args = [ 44 rebase_path("//third_party/pulseaudio", root_build_dir), 45 rebase_path("${target_gen_dir}/", root_build_dir), 46 ] 47 48 outputs = [ "${target_gen_dir}/config.h" ] 49} 50