blob: 564eb36d119c35ff4293dbd50f12fa394f146b3f [file] [log] [blame]
Dan Willemsen154fce42018-11-16 23:15:45 -08001// audio preprocessing wrapper
Bob Badour948e6aa2021-02-12 21:02:31 -08002package {
3 default_applicable_licenses: [
4 "frameworks_av_media_libeffects_preprocessing_license",
5 ],
6}
7
8// Added automatically by a large-scale-change
9// See: http://go/android-license-faq
10license {
11 name: "frameworks_av_media_libeffects_preprocessing_license",
12 visibility: [":__subpackages__"],
13 license_kinds: [
14 "SPDX-license-identifier-Apache-2.0",
15 ],
16 license_text: [
17 "NOTICE",
18 ],
19}
20
Harish Mahendrakar70036ac2021-03-16 17:42:59 -070021cc_defaults {
22 name: "libaudiopreprocessing-defaults",
Saketh Sathuvalli08337032020-09-22 21:13:45 +053023 vendor: true,
Rivukanta Bhattacharya013e02e2021-03-12 05:50:55 +053024 host_supported: true,
Saketh Sathuvalli08337032020-09-22 21:13:45 +053025 cflags: [
26 "-Wall",
27 "-Werror",
28 "-Wextra",
29 "-Wno-unused-parameter",
30 ],
31
32 shared_libs: [
33 "liblog",
34 "libutils",
35 ],
36
37 static_libs: [
38 "webrtc_audio_processing",
39 ],
40
41 header_libs: [
42 "libaudioeffects",
43 "libhardware_headers",
Saketh Sathuvalli08337032020-09-22 21:13:45 +053044 ],
Harish Mahendrakar217c9682021-03-15 15:12:25 -070045 target: {
46 darwin: {
47 enabled: false,
48 },
49 },
Saketh Sathuvalli08337032020-09-22 21:13:45 +053050}
Harish Mahendrakar70036ac2021-03-16 17:42:59 -070051
52cc_library {
53 name: "libaudiopreprocessing",
54 defaults: ["libaudiopreprocessing-defaults"],
55 relative_install_path: "soundfx",
56 srcs: ["PreProcessing.cpp"],
57 header_libs: [
58 "libwebrtc_absl_headers",
59 ],
60}
Shraddha Basantwanice054522023-01-20 23:36:54 +053061
62cc_library_shared {
63 name: "libpreprocessingaidl",
64 srcs: [
65 "aidl/PreProcessingContext.cpp",
66 "aidl/EffectPreProcessing.cpp",
67 ":effectCommonFile",
68 ],
69 defaults: [
Shunkai Yaocbe90d02023-12-14 02:35:55 +000070 "aidlaudioeffectservice_defaults",
Shraddha Basantwanice054522023-01-20 23:36:54 +053071 ],
72 local_include_dirs: ["aidl"],
73 shared_libs: [
74 "liblog",
75 "libutils",
76 "libaudioutils",
77 ],
78 static_libs: [
79 "webrtc_audio_processing",
80 ],
81 header_libs: [
82 "libwebrtc_absl_headers",
83 "libaudioeffects",
84 "libhardware_headers",
85 ],
86 cflags: [
87 "-Wthread-safety",
88 "-Wno-unused-parameter",
89 ],
90 relative_install_path: "soundfx",
91 visibility: [
92 "//hardware/interfaces/audio/aidl/default",
93 ],
94}