153a5a1b3Sopenharmony_ci# Copyright (c) 2021-2022 Huawei Device Co., Ltd. 253a5a1b3Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 353a5a1b3Sopenharmony_ci# you may not use this file except in compliance with the License. 453a5a1b3Sopenharmony_ci# You may obtain a copy of the License at 553a5a1b3Sopenharmony_ci# 653a5a1b3Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 753a5a1b3Sopenharmony_ci# 853a5a1b3Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 953a5a1b3Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1053a5a1b3Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1153a5a1b3Sopenharmony_ci# See the License for the specific language governing permissions and 1253a5a1b3Sopenharmony_ci# limitations under the License. 1353a5a1b3Sopenharmony_ci 1453a5a1b3Sopenharmony_ciimport("//build/ohos.gni") 1553a5a1b3Sopenharmony_ci 1653a5a1b3Sopenharmony_cigroup("pulseaudio_packages") { 1753a5a1b3Sopenharmony_ci deps = [ 1853a5a1b3Sopenharmony_ci "../sonic:sonic", 1953a5a1b3Sopenharmony_ci "src:pa_client_config", 2053a5a1b3Sopenharmony_ci "src:pa_daemon_config", 2153a5a1b3Sopenharmony_ci "src:pa_default_config", 2253a5a1b3Sopenharmony_ci "src:pulsecommon", 2353a5a1b3Sopenharmony_ci "src/daemon:pulseaudio", 2453a5a1b3Sopenharmony_ci "src/modules:native-modules", 2553a5a1b3Sopenharmony_ci "src/pulse:pulse", 2653a5a1b3Sopenharmony_ci "src/pulse:pulse-simple", 2753a5a1b3Sopenharmony_ci "src/pulsecore:cli", 2853a5a1b3Sopenharmony_ci "src/pulsecore:protocol-cli", 2953a5a1b3Sopenharmony_ci "src/pulsecore:protocol-native", 3053a5a1b3Sopenharmony_ci "src/pulsecore:pulsecore", 3153a5a1b3Sopenharmony_ci ] 3253a5a1b3Sopenharmony_ci if (build_variant == "root") { 3353a5a1b3Sopenharmony_ci deps += [ 3453a5a1b3Sopenharmony_ci "src/utils:pacmd", 3553a5a1b3Sopenharmony_ci "src/utils:pactl", 3653a5a1b3Sopenharmony_ci ] 3753a5a1b3Sopenharmony_ci } 3853a5a1b3Sopenharmony_ci} 3953a5a1b3Sopenharmony_ci 4053a5a1b3Sopenharmony_ciaction("gen_config_header") { 4153a5a1b3Sopenharmony_ci script = "ohos_paconfig.sh" 4253a5a1b3Sopenharmony_ci 4353a5a1b3Sopenharmony_ci args = [ 4453a5a1b3Sopenharmony_ci rebase_path("//third_party/pulseaudio", root_build_dir), 4553a5a1b3Sopenharmony_ci rebase_path("${target_gen_dir}/", root_build_dir), 4653a5a1b3Sopenharmony_ci ] 4753a5a1b3Sopenharmony_ci 4853a5a1b3Sopenharmony_ci outputs = [ "${target_gen_dir}/config.h" ] 4953a5a1b3Sopenharmony_ci} 50