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  external_deps = [ "hilog:libhilog" ]
46  subsystem_name = "thirdparty"
47  part_name = "pulseaudio"
48}
49
50ohos_executable("pacmd") {
51  install_enable = true
52
53  sources = [ "../../../src/utils/pacmd.c" ]
54
55  configs = [ ":pulseutils_config" ]
56
57  deps = [
58    "../../src:pulsecommon",
59    "../../src/pulse:pulse",
60  ]
61  external_deps = [ "hilog:libhilog" ]
62  subsystem_name = "thirdparty"
63  part_name = "pulseaudio"
64}
65