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