• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_av_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_av_license"],
8}
9
10filegroup {
11    name: "audio_core_hal_client_sources",
12    srcs: [
13        "CoreConversionHelperHidl.cpp",
14        "DeviceHalHidl.cpp",
15        "DevicesFactoryHalEntry.cpp",
16        "DevicesFactoryHalHidl.cpp",
17        "StreamHalHidl.cpp",
18    ],
19}
20
21filegroup {
22    name: "audio_effect_hidl_hal_client_sources",
23    srcs: [
24        "EffectBufferHalHidl.cpp",
25        "EffectConversionHelperHidl.cpp",
26        "EffectHalHidl.cpp",
27        "EffectsFactoryHalHidl.cpp",
28    ],
29}
30
31cc_defaults {
32    name: "libaudiohal_hidl_default",
33    shared_libs: [
34        "android.hardware.audio.common-util",
35        "android.hidl.allocator@1.0",
36        "android.hidl.memory@1.0",
37        "libaudiohal_deathhandler",
38        "libeffectsconfig",
39        "libhidlbase",
40        "libhidlmemory",
41    ],
42    header_libs: [
43        "android.hardware.audio.common.util@all-versions",
44    ]
45}
46
47cc_defaults {
48    name: "libaudiohal_default",
49
50    cflags: [
51        "-Wall",
52        "-Wextra",
53        "-Werror",
54        "-fvisibility=hidden",
55    ],
56    shared_libs: [
57        "audioclient-types-aidl-cpp",
58        "av-types-aidl-cpp",
59        "libaudioclient_aidl_conversion",
60        "libaudiofoundation",
61        "libaudioutils",
62        "libbase",
63        "libbinder",
64        "libcutils",
65        "libfmq",
66        "libhardware",
67        "liblog",
68        "libmedia_helper",
69        "libmediautils",
70        "libutils",
71    ],
72    header_libs: [
73        "libaudioclient_headers",
74        "libaudiohal_headers"
75    ],
76    defaults: [
77        "latest_android_media_audio_common_types_cpp_export_shared",
78    ],
79
80    export_shared_lib_headers: [
81        "libfmq",
82    ],
83}
84
85cc_library_shared {
86    name: "libaudiohal@4.0",
87    defaults: [
88        "libaudiohal_default",
89        "libaudiohal_hidl_default"
90    ],
91    srcs: [
92        ":audio_core_hal_client_sources",
93        ":audio_effect_hidl_hal_client_sources",
94        "EffectsFactoryHalEntry.cpp",
95    ],
96    shared_libs: [
97        "android.hardware.audio.common@4.0",
98        "android.hardware.audio.common@4.0-util",
99        "android.hardware.audio.effect@4.0",
100        "android.hardware.audio.effect@4.0-util",
101        "android.hardware.audio@4.0",
102        "android.hardware.audio@4.0-util",
103    ],
104    cflags: [
105        "-DMAJOR_VERSION=4",
106        "-DMINOR_VERSION=0",
107        "-include common/all-versions/VersionMacro.h",
108    ]
109}
110
111cc_library_shared {
112    name: "libaudiohal@5.0",
113    defaults: [
114        "libaudiohal_default",
115        "libaudiohal_hidl_default"
116    ],
117    srcs: [
118        ":audio_core_hal_client_sources",
119        ":audio_effect_hidl_hal_client_sources",
120        "EffectsFactoryHalEntry.cpp",
121    ],
122    shared_libs: [
123        "android.hardware.audio.common@5.0",
124        "android.hardware.audio.common@5.0-util",
125        "android.hardware.audio.effect@5.0",
126        "android.hardware.audio.effect@5.0-util",
127        "android.hardware.audio@5.0",
128        "android.hardware.audio@5.0-util",
129    ],
130    cflags: [
131        "-DMAJOR_VERSION=5",
132        "-DMINOR_VERSION=0",
133        "-include common/all-versions/VersionMacro.h",
134    ]
135}
136
137cc_library_shared {
138    name: "libaudiohal@6.0",
139    defaults: [
140        "libaudiohal_default",
141        "libaudiohal_hidl_default"
142    ],
143    srcs: [
144        ":audio_core_hal_client_sources",
145        ":audio_effect_hidl_hal_client_sources",
146        "EffectsFactoryHalEntry.cpp",
147    ],
148    shared_libs: [
149        "android.hardware.audio.common@6.0",
150        "android.hardware.audio.common@6.0-util",
151        "android.hardware.audio.effect@6.0",
152        "android.hardware.audio.effect@6.0-util",
153        "android.hardware.audio@6.0",
154        "android.hardware.audio@6.0-util",
155    ],
156    cflags: [
157        "-DMAJOR_VERSION=6",
158        "-DMINOR_VERSION=0",
159        "-include common/all-versions/VersionMacro.h",
160    ]
161}
162
163cc_library_static {
164    name: "libaudiohal.effect@7.0",
165    defaults: [
166        "libaudiohal_default",
167        "libaudiohal_hidl_default"
168    ],
169    srcs: [
170        ":audio_effect_hidl_hal_client_sources",
171    ],
172    static_libs: [
173        "android.hardware.audio.common@7.0",
174        "android.hardware.audio.common@7.0-util",
175        "android.hardware.audio.effect@7.0",
176        "android.hardware.audio.effect@7.0-util",
177    ],
178    cflags: [
179        "-DMAJOR_VERSION=7",
180        "-DMINOR_VERSION=0",
181        "-include common/all-versions/VersionMacro.h",
182    ]
183}
184
185cc_library_shared {
186    name: "libaudiohal@7.0",
187    defaults: [
188        "libaudiohal_default",
189        "libaudiohal_hidl_default"
190    ],
191    srcs: [
192        ":audio_core_hal_client_sources",
193        "EffectsFactoryHalEntry.cpp",
194    ],
195    static_libs: [
196        "android.hardware.audio.common@7.0",
197        "android.hardware.audio.common@7.0-enums",
198        "android.hardware.audio.common@7.0-util",
199        "android.hardware.audio.effect@7.0",
200        "android.hardware.audio.effect@7.0-util",
201        "android.hardware.audio@7.0",
202        "android.hardware.audio@7.0-util",
203        "libaudiohal.effect@7.0",
204    ],
205    cflags: [
206        "-DMAJOR_VERSION=7",
207        "-DMINOR_VERSION=0",
208        "-include common/all-versions/VersionMacro.h",
209    ]
210}
211
212cc_library_shared {
213    name: "libaudiohal@7.1",
214    defaults: [
215        "latest_android_hardware_audio_core_sounddose_ndk_shared",
216        "latest_android_hardware_audio_sounddose_ndk_shared",
217        "libaudiohal_default",
218        "libaudiohal_hidl_default"
219    ],
220    srcs: [
221        ":audio_core_hal_client_sources",
222        "EffectsFactoryHalEntry.cpp",
223    ],
224    static_libs: [
225        "android.hardware.audio.common@7.0",
226        "android.hardware.audio.common@7.0-util",
227        "android.hardware.audio.common@7.1-enums",
228        "android.hardware.audio.common@7.1-util",
229        "android.hardware.audio.effect@7.0",
230        "android.hardware.audio.effect@7.0-util",
231        "android.hardware.audio@7.0",
232        "android.hardware.audio@7.1",
233        "android.hardware.audio@7.1-util",
234        "libaudiohal.effect@7.0",
235    ],
236    shared_libs: [
237        "libbinder_ndk",
238    ],
239    cflags: [
240        "-DMAJOR_VERSION=7",
241        "-DMINOR_VERSION=1",
242        "-DCOMMON_TYPES_MINOR_VERSION=0",
243        "-DCORE_TYPES_MINOR_VERSION=0",
244        "-include common/all-versions/VersionMacro.h",
245    ]
246}
247
248cc_defaults {
249    name: "libaudiohal_aidl_default",
250    defaults: [
251        "latest_android_hardware_audio_common_ndk_shared",
252        "latest_android_hardware_audio_core_ndk_shared",
253        "latest_android_hardware_audio_core_sounddose_ndk_shared",
254        "latest_android_hardware_audio_effect_ndk_shared",
255        "latest_android_media_audio_common_types_ndk_shared",
256    ],
257    shared_libs: [
258        "android.hardware.common-V2-ndk",
259        "android.hardware.common.fmq-V1-ndk",
260        "av-audio-types-aidl-ndk",
261        "libaudio_aidl_conversion_common_cpp",
262        "libaudio_aidl_conversion_common_ndk",
263        "libaudio_aidl_conversion_common_ndk_cpp",
264        "libaudio_aidl_conversion_core_ndk",
265        "libaudio_aidl_conversion_effect_ndk",
266        "libaudioaidlcommon",
267        "libbinder_ndk",
268    ],
269    header_libs: [
270        "libaudio_system_headers",
271        "libeffectsconfig_headers",
272    ],
273    cflags: [
274        "-Wall",
275        "-Wextra",
276        "-Werror",
277        "-Wthread-safety",
278        "-DBACKEND_CPP_NDK",
279    ],
280}
281
282cc_library_shared {
283    name: "libaudiohal@aidl",
284    defaults: [
285        "libaudiohal_default",
286        "libaudiohal_aidl_default",
287    ],
288    srcs: [
289        "DevicesFactoryHalEntry.cpp",
290        "EffectConversionHelperAidl.cpp",
291        "EffectBufferHalAidl.cpp",
292        "EffectHalAidl.cpp",
293        "effectsAidlConversion/AidlConversionAec.cpp",
294        "effectsAidlConversion/AidlConversionAgc1.cpp",
295        "effectsAidlConversion/AidlConversionAgc2.cpp",
296        "effectsAidlConversion/AidlConversionBassBoost.cpp",
297        "effectsAidlConversion/AidlConversionDownmix.cpp",
298        "effectsAidlConversion/AidlConversionDynamicsProcessing.cpp",
299        "effectsAidlConversion/AidlConversionEnvReverb.cpp",
300        "effectsAidlConversion/AidlConversionEq.cpp",
301        "effectsAidlConversion/AidlConversionHapticGenerator.cpp",
302        "effectsAidlConversion/AidlConversionLoudnessEnhancer.cpp",
303        "effectsAidlConversion/AidlConversionNoiseSuppression.cpp",
304        "effectsAidlConversion/AidlConversionPresetReverb.cpp",
305        "effectsAidlConversion/AidlConversionSpatializer.cpp",
306        "effectsAidlConversion/AidlConversionVendorExtension.cpp",
307        "effectsAidlConversion/AidlConversionVirtualizer.cpp",
308        "effectsAidlConversion/AidlConversionVisualizer.cpp",
309        "EffectsFactoryHalAidl.cpp",
310        "EffectsFactoryHalEntry.cpp",
311        ":audio_effectproxy_src_files",
312        ":core_audio_hal_aidl_src_files",
313    ],
314}
315
316filegroup {
317    name: "core_audio_hal_aidl_src_files",
318    srcs: [
319        "ConversionHelperAidl.cpp",
320        "DeviceHalAidl.cpp",
321        "DevicesFactoryHalAidl.cpp",
322        "StreamHalAidl.cpp",
323    ],
324}
325
326filegroup {
327    name: "audio_effectproxy_src_files",
328    srcs: ["EffectProxy.cpp"],
329}
330