1package {
2    default_team: "trendy_team_android_media_audio_framework",
3    // See: http://go/android-license-faq
4    // A large-scale-change added 'default_applicable_licenses' to import
5    // all of the 'license_kinds' from "hardware_interfaces_license"
6    // to get the below license kinds:
7    //   SPDX-license-identifier-Apache-2.0
8    default_applicable_licenses: ["hardware_interfaces_license"],
9}
10
11cc_defaults {
12    name: "android.hardware.audio.effect-impl_default",
13    defaults: ["hidl_defaults"],
14    vendor: true,
15    relative_install_path: "hw",
16    srcs: [
17        "AcousticEchoCancelerEffect.cpp",
18        "AudioBufferManager.cpp",
19        "AutomaticGainControlEffect.cpp",
20        "BassBoostEffect.cpp",
21        "DownmixEffect.cpp",
22        "Effect.cpp",
23        "EffectsFactory.cpp",
24        "EnvironmentalReverbEffect.cpp",
25        "EqualizerEffect.cpp",
26        "LoudnessEnhancerEffect.cpp",
27        "NoiseSuppressionEffect.cpp",
28        "PresetReverbEffect.cpp",
29        "VirtualizerEffect.cpp",
30        "VisualizerEffect.cpp",
31    ],
32
33    shared_libs: [
34        "libaudioutils",
35        "libbase",
36        "libcutils",
37        "libeffects",
38        "libfmq",
39        "libhidlbase",
40        "libhidlmemory",
41        "liblog",
42        "libutils",
43        "android.hardware.audio.common-util",
44        "android.hidl.memory@1.0",
45    ],
46
47    header_libs: [
48        "android.hardware.audio.common.util@all-versions",
49        "libaudio_system_headers",
50        "libeffects_headers",
51        "libhardware_headers",
52        "libmedia_headers",
53        "libmediautils_headers",
54    ],
55}
56
57cc_library_shared {
58    name: "android.hardware.audio.effect@2.0-impl",
59    defaults: ["android.hardware.audio.effect-impl_default"],
60    shared_libs: [
61        "android.hardware.audio.common@2.0",
62        "android.hardware.audio.common@2.0-util",
63        "android.hardware.audio.effect@2.0",
64        "android.hardware.audio.effect@2.0-util",
65    ],
66    cflags: [
67        "-DMAJOR_VERSION=2",
68        "-DMINOR_VERSION=0",
69        "-include common/all-versions/VersionMacro.h",
70    ],
71}
72
73cc_library_shared {
74    name: "android.hardware.audio.effect@4.0-impl",
75    defaults: ["android.hardware.audio.effect-impl_default"],
76    shared_libs: [
77        "android.hardware.audio.common@4.0",
78        "android.hardware.audio.common@4.0-util",
79        "android.hardware.audio.effect@4.0",
80        "android.hardware.audio.effect@4.0-util",
81    ],
82    cflags: [
83        "-DMAJOR_VERSION=4",
84        "-DMINOR_VERSION=0",
85        "-include common/all-versions/VersionMacro.h",
86    ],
87}
88
89cc_library_shared {
90    name: "android.hardware.audio.effect@5.0-impl",
91    defaults: ["android.hardware.audio.effect-impl_default"],
92    shared_libs: [
93        "android.hardware.audio.common@5.0",
94        "android.hardware.audio.common@5.0-util",
95        "android.hardware.audio.effect@5.0",
96        "android.hardware.audio.effect@5.0-util",
97    ],
98    cflags: [
99        "-DMAJOR_VERSION=5",
100        "-DMINOR_VERSION=0",
101        "-include common/all-versions/VersionMacro.h",
102    ],
103}
104
105cc_library_shared {
106    name: "android.hardware.audio.effect@6.0-impl",
107    defaults: ["android.hardware.audio.effect-impl_default"],
108    shared_libs: [
109        "android.hardware.audio.common@6.0",
110        "android.hardware.audio.common@6.0-util",
111        "android.hardware.audio.effect@6.0",
112        "android.hardware.audio.effect@6.0-util",
113    ],
114    cflags: [
115        "-DMAJOR_VERSION=6",
116        "-DMINOR_VERSION=0",
117        "-include common/all-versions/VersionMacro.h",
118    ],
119}
120
121cc_library_shared {
122    name: "android.hardware.audio.effect@7.0-impl",
123    defaults: ["android.hardware.audio.effect-impl_default"],
124    shared_libs: [
125        "android.hardware.audio.common@7.0",
126        "android.hardware.audio.common@7.0-util",
127        "android.hardware.audio.effect@7.0",
128        "android.hardware.audio.effect@7.0-util",
129    ],
130    cflags: [
131        "-DMAJOR_VERSION=7",
132        "-DMINOR_VERSION=0",
133        "-include common/all-versions/VersionMacro.h",
134    ],
135}
136