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