• 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")
15import("../../../../../config.gni")
16import("../../../../../ressche_part.gni")
17
18config("hdi_config") {
19  visibility = [ ":*" ]
20
21  include_dirs = [
22    ".",
23    "../../../audioqosmanager/include",
24    "../../../audioschedule/include",
25    "../../../audioeffect/include",
26    "../../../playbackcapturer/include",
27    "../../../../../interfaces/inner_api/native/audiocommon/include",
28    "../../../../../services/audio_service/common/include",
29    "../../../../../services/audio_service/common/include/limiter",
30    "hdi_adapter_intf/include",
31    "../../../hdiadapter_new/include",
32  ]
33
34  cflags = [
35    "-Wall",
36    "-Werror",
37    "-DHAVE_CONFIG_H",
38    "-D_GNU_SOURCE",
39    "-D__INCLUDED_FROM_PULSE_AUDIO",
40  ]
41}
42
43ohos_shared_library("module-hdi-sink") {
44  sanitize = {
45    cfi = true
46    cfi_cross_dso = true
47    cfi_vcall_icall_only = true
48    debug = false
49  }
50  sources = [
51    "hdi_sink.c",
52    "module_hdi_sink.c",
53  ]
54
55  configs = [ ":hdi_config" ]
56
57  cflags = [ "-DPA_MODULE_NAME=libmodule_hdi_sink_z_so" ]
58
59  ldflags = [
60    "-Wl",
61    "--no-undefined",
62  ]
63
64  deps = [
65    "../../../../../services/audio_service:audio_common",
66    "../../../audioeffect:audio_effect",
67    "../../../audioqosmanager:audio_qosmanager",
68    "../../../audioschedule:audio_schedule",
69    "../../../audioutils:audio_utils",
70    "../../../hdiadapter_new:hdiadapter_new",
71    "../../../playbackcapturer:playback_capturer",
72    "hdi_adapter_intf:sink_adapter",
73  ]
74
75  external_deps = [
76    "bounds_checking_function:libsec_shared",
77    "c_utils:utils",
78    "drivers_interface_audio:libaudio_proxy_4.0",
79    "hilog:libhilog",
80    "init:libbegetutil",
81    "pulseaudio:pulse",
82    "pulseaudio:pulsecommon",
83    "pulseaudio:pulsecore",
84  ]
85  if (ressche_enable == true) {
86    external_deps += [ "resource_schedule_service:ressched_client" ]
87  }
88
89  subsystem_name = "multimedia"
90  part_name = "audio_framework"
91}
92
93ohos_shared_library("module-hdi-source") {
94  sanitize = {
95    cfi = true
96    cfi_cross_dso = true
97    cfi_vcall_icall_only = true
98    debug = false
99  }
100  sources = [
101    "hdi_source.c",
102    "module_hdi_source.c",
103  ]
104
105  defines = []
106
107  if (is_emulator) {
108    defines += [ "IS_EMULATOR" ]
109  }
110
111  configs = [ ":hdi_config" ]
112
113  cflags = [ "-DPA_MODULE_NAME=libmodule_hdi_source_z_so" ]
114
115  deps = [
116    "../../../audioeffect:audio_effect",
117    "../../../audioschedule:audio_schedule",
118    "../../../audioutils:audio_utils",
119    "../../../hdiadapter_new:hdiadapter_new",
120    "hdi_adapter_intf:source_adapter",
121  ]
122
123  external_deps = [
124    "bounds_checking_function:libsec_shared",
125    "drivers_interface_audio:libaudio_proxy_4.0",
126    "hdf_core:libhdf_utils",
127    "hilog:libhilog",
128    "pulseaudio:pulse",
129    "pulseaudio:pulsecommon",
130    "pulseaudio:pulsecore",
131  ]
132
133  subsystem_name = "multimedia"
134  part_name = "audio_framework"
135}
136
137ohos_shared_library("module-split-stream-sink") {
138  sanitize = {
139    cfi = true
140    cfi_cross_dso = true
141    cfi_vcall_icall_only = true
142    debug = false
143  }
144  sources = [ "module_split_stream_sink.c" ]
145
146  configs = [ ":hdi_config" ]
147
148  cflags = [ "-DPA_MODULE_NAME=libmodule_split_stream_sink_z_so" ]
149
150  ldflags = [
151    "-Wl",
152    "--no-undefined",
153  ]
154
155  deps = [
156    "../../../../../services/audio_service:audio_common",
157    "../../../audioschedule:audio_schedule",
158    "../../../audioutils:audio_utils",
159    "../../../hdiadapter_new:hdiadapter_new",
160    "hdi_adapter_intf:sink_adapter",
161  ]
162
163  external_deps = [
164    "bounds_checking_function:libsec_shared",
165    "c_utils:utils",
166    "hilog:libhilog",
167    "pulseaudio:pulse",
168    "pulseaudio:pulsecommon",
169    "pulseaudio:pulsecore",
170  ]
171
172  if (ressche_enable == true) {
173    external_deps += [ "resource_schedule_service:ressched_client" ]
174  }
175
176  subsystem_name = "multimedia"
177  part_name = "audio_framework"
178}
179