• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2022-2023 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")
15import("../../../../config.gni")
16
17ohos_shared_library("audio_renderer_sink") {
18  sanitize = {
19    cfi = true
20    cfi_cross_dso = true
21    debug = false
22    blocklist = "../../../../cfi_blocklist.txt"
23  }
24  install_enable = true
25
26  sources = [ "primary/audio_renderer_sink.cpp" ]
27
28  cflags = [ "-fPIC" ]
29  cflags += [ "-Wall" ]
30  cflags_cc = cflags
31
32  include_dirs = [
33    "common",
34    "../../audioutils/include",
35    "../../../../interfaces/inner_api/native/audiocommon/include",
36  ]
37
38  deps = [ "../../audioutils:audio_utils" ]
39
40  external_deps = [
41    "c_utils:utils",
42    "drivers_interface_audio:audio_idl_headers",
43    "drivers_interface_audio:libaudio_proxy_1.0",
44    "hilog:libhilog",
45    "power_manager:powermgr_client",
46  ]
47
48  part_name = "audio_framework"
49  subsystem_name = "multimedia"
50}
51
52ohos_shared_library("fast_audio_renderer_sink") {
53  sanitize = {
54    cfi = true
55    cfi_cross_dso = true
56    debug = false
57    blocklist = "../../../../cfi_blocklist.txt"
58  }
59  install_enable = true
60
61  sources = [ "fast/fast_audio_renderer_sink.cpp" ]
62
63  include_dirs = [
64    "common",
65    "../../audioutils/include",
66    "../../../../interfaces/inner_api/native/audiocommon/include",
67  ]
68
69  deps = [
70    "../../audioutils:audio_utils",
71    "//third_party/bounds_checking_function:libsec_shared",
72  ]
73
74  external_deps = [
75    "c_utils:utils",
76    "drivers_interface_audio:audio_idl_headers",
77    "drivers_interface_audio:libaudio_proxy_1.0",
78    "hilog:libhilog",
79    "power_manager:powermgr_client",
80  ]
81
82  part_name = "audio_framework"
83  subsystem_name = "multimedia"
84}
85
86ohos_shared_library("bluetooth_renderer_sink") {
87  sanitize = {
88    cfi = true
89    cfi_cross_dso = true
90    debug = false
91    blocklist = "../../../../cfi_blocklist.txt"
92  }
93  install_enable = true
94
95  sources = [ "bluetooth/bluetooth_renderer_sink.cpp" ]
96
97  cflags = [ "-fPIC" ]
98  cflags += [ "-Wall" ]
99
100  cflags_cc = cflags
101
102  include_dirs = [
103    "common",
104    "../../audioutils/include",
105    "../../../../interfaces/inner_api/native/audiocommon/include",
106    "//drivers/peripheral/bluetooth/audio/interfaces/include",
107    "//drivers/peripheral/bluetooth/audio/hal/hdi_binder/proxy/include",
108  ]
109
110  deps = [
111    "../../audioutils:audio_utils",
112    "//third_party/bounds_checking_function:libsec_shared",
113  ]
114
115  external_deps = [
116    "hdf_core:libhdf_ipc_adapter",
117    "hdf_core:libhdi",
118    "hdf_core:libpub_utils",
119    "hilog:libhilog",
120    "power_manager:powermgr_client",
121  ]
122
123  part_name = "audio_framework"
124  subsystem_name = "multimedia"
125}
126
127ohos_shared_library("remote_audio_renderer_sink") {
128  sanitize = {
129    cfi = true
130    cfi_cross_dso = true
131    debug = false
132    blocklist = "../../../../cfi_blocklist.txt"
133  }
134  install_enable = true
135
136  sources = [ "remote/remote_audio_renderer_sink.cpp" ]
137
138  cflags = [ "-fPIC" ]
139  cflags += [ "-Wall" ]
140  cflags_cc = cflags
141
142  include_dirs = [
143    "common",
144    "../../audioutils/include",
145    "../../../../interfaces/inner_api/native/audiocommon/include",
146  ]
147
148  include_dirs += [ multimedia_audio_framework_drivers ]
149
150  deps = [
151    "${third_party_path}/bounds_checking_function:libsec_shared",
152    "../../audioutils:audio_utils",
153  ]
154
155  external_deps = [ "hilog:libhilog" ]
156  defines = []
157  if (audio_framework_feature_daudio_enable) {
158    defines += [ "FEATURE_DISTRIBUTE_AUDIO" ]
159    external_deps += [ "distributed_audio:daudio_client" ]
160  }
161
162  part_name = "audio_framework"
163  subsystem_name = "multimedia"
164}
165
166ohos_shared_library("remote_fast_audio_renderer_sink") {
167  sanitize = {
168    cfi = true
169    cfi_cross_dso = true
170    debug = false
171    blocklist = "../../../../cfi_blocklist.txt"
172  }
173  install_enable = true
174
175  sources = [ "remote_fast/remote_fast_audio_renderer_sink.cpp" ]
176
177  cflags = [ "-fPIC" ]
178  cflags += [ "-Wall" ]
179  cflags_cc = cflags
180
181  include_dirs = [
182    "common",
183    "fast",
184    "remote_fast",
185    "../../audioutils/include",
186    "../../../../interfaces/inner_api/native/audiocommon/include",
187  ]
188
189  include_dirs += [ multimedia_audio_framework_drivers ]
190
191  deps = [
192    "${third_party_path}/bounds_checking_function:libsec_shared",
193    "../../audioutils:audio_utils",
194  ]
195
196  external_deps = [
197    "c_utils:utils",
198    "hilog:libhilog",
199  ]
200  defines = []
201  if (audio_framework_feature_daudio_enable) {
202    defines += [ "FEATURE_DISTRIBUTE_AUDIO" ]
203    external_deps += [ "distributed_audio:daudio_client" ]
204  }
205
206  part_name = "audio_framework"
207  subsystem_name = "multimedia"
208}
209
210ohos_shared_library("audio_renderer_file_sink") {
211  sanitize = {
212    cfi = true
213    cfi_cross_dso = true
214    debug = false
215    blocklist = "../../../../cfi_blocklist.txt"
216  }
217  install_enable = true
218
219  sources = [ "file/audio_renderer_file_sink.cpp" ]
220
221  cflags = [ "-fPIC" ]
222  cflags += [ "-Wall" ]
223
224  cflags_cc = cflags
225
226  include_dirs = [
227    "common",
228    "../../../../interfaces/inner_api/native/audiocommon/include",
229  ]
230
231  external_deps = [ "hilog:libhilog" ]
232
233  part_name = "audio_framework"
234  subsystem_name = "multimedia"
235}
236
237ohos_shared_library("renderer_sink_adapter") {
238  sanitize = {
239    cfi = true
240    cfi_cross_dso = true
241    debug = false
242    blocklist = "../../../../cfi_blocklist.txt"
243  }
244  install_enable = true
245
246  sources = [
247    "common/i_audio_renderer_sink.cpp",
248    "common/renderer_sink_adapter.c",
249  ]
250
251  cflags = [ "-fPIC" ]
252  cflags += [ "-Wall" ]
253
254  cflags_cc = cflags
255
256  include_dirs = [
257    "common",
258    "primary",
259    "file",
260    "bluetooth",
261    "remote",
262    "../../../../interfaces/inner_api/native/audiocommon/include",
263  ]
264
265  deps = [
266    ":audio_renderer_file_sink",
267    ":audio_renderer_sink",
268    ":bluetooth_renderer_sink",
269    ":fast_audio_renderer_sink",
270    ":remote_audio_renderer_sink",
271    ":remote_fast_audio_renderer_sink",
272  ]
273
274  external_deps = [ "hilog:libhilog" ]
275
276  part_name = "audio_framework"
277  subsystem_name = "multimedia"
278}
279