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 16config("pulseutils_config") { 17 visibility = [ ":*" ] 18 19 include_dirs = [ 20 "../../../", 21 "../../../include", 22 "../../src", 23 "../../include", 24 "../../../src", 25 ] 26 27 cflags = [ 28 "-Wall", 29 "-Werror", 30 "-Wno-implicit-function-declaration", 31 "-DHAVE_CONFIG_H", 32 "-D_GNU_SOURCE", 33 ] 34} 35 36ohos_executable("pactl") { 37 sources = [ "../../../src/utils/pactl.c" ] 38 39 configs = [ ":pulseutils_config" ] 40 41 deps = [ 42 "../../src:pulsecommon", 43 "../../src/pulse:pulse", 44 ] 45 subsystem_name = "thirdparty" 46 part_name = "pulseaudio" 47} 48 49ohos_executable("pacmd") { 50 install_enable = true 51 52 sources = [ "../../../src/utils/pacmd.c" ] 53 54 configs = [ ":pulseutils_config" ] 55 56 deps = [ 57 "../../src:pulsecommon", 58 "../../src/pulse:pulse", 59 ] 60 61 subsystem_name = "thirdparty" 62 part_name = "pulseaudio" 63} 64