• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
17config("pulseutils_config") {
18  visibility = [ ":*" ]
19
20  include_dirs = [
21    "../../../",
22    "../../../include",
23    "../../src",
24    "../../include",
25    "../../../src",
26    "$libsndfile_dir/include",
27  ]
28
29  cflags = [
30    "-Wall",
31    "-Werror",
32    "-Wno-implicit-function-declaration",
33    "-DHAVE_CONFIG_H",
34    "-D_GNU_SOURCE",
35  ]
36}
37
38ohos_executable("pacat") {
39  sources = [ "../../../src/utils/pacat.c" ]
40
41  configs = [ ":pulseutils_config" ]
42
43  deps = [
44    "$libsndfile_dir:sndfile",
45    "../../src:pulsecommon",
46    "../../src/pulse:pulse",
47  ]
48
49  subsystem_name = "thirdparty"
50  part_name = "pulseaudio"
51}
52
53ohos_executable("pactl") {
54  sources = [ "../../../src/utils/pactl.c" ]
55
56  configs = [ ":pulseutils_config" ]
57
58  deps = [
59    "$libsndfile_dir:sndfile",
60    "../../src:pulsecommon",
61    "../../src/pulse:pulse",
62  ]
63  subsystem_name = "thirdparty"
64  part_name = "pulseaudio"
65}
66
67ohos_executable("pacmd") {
68  install_enable = true
69
70  sources = [ "../../../src/utils/pacmd.c" ]
71
72  configs = [ ":pulseutils_config" ]
73
74  deps = [
75    "../../src:pulsecommon",
76    "../../src/pulse:pulse",
77  ]
78
79  subsystem_name = "thirdparty"
80  part_name = "pulseaudio"
81}
82