1// Music bundle
2package {
3    default_team: "trendy_team_media_framework_audio",
4    default_applicable_licenses: [
5        "frameworks_av_media_libeffects_lvm_lib_license",
6    ],
7}
8
9// Added automatically by a large-scale-change
10// See: http://go/android-license-faq
11license {
12    name: "frameworks_av_media_libeffects_lvm_lib_license",
13    visibility: [":__subpackages__"],
14    license_kinds: [
15        "SPDX-license-identifier-Apache-2.0",
16    ],
17    license_text: [
18        "NOTICE",
19    ],
20}
21
22cc_library_static {
23    name: "libmusicbundle",
24
25    arch: {
26        arm: {
27            instruction_set: "arm",
28        },
29    },
30
31    vendor: true,
32    host_supported: true,
33    srcs: [
34        "Bass/src/LVDBE_Control.cpp",
35        "Bass/src/LVDBE_Init.cpp",
36        "Bass/src/LVDBE_Process.cpp",
37        "Bass/src/LVDBE_Tables.cpp",
38        "Bundle/src/LVM_API_Specials.cpp",
39        "Bundle/src/LVM_Buffers.cpp",
40        "Bundle/src/LVM_Control.cpp",
41        "Bundle/src/LVM_Init.cpp",
42        "Bundle/src/LVM_Process.cpp",
43        "Bundle/src/LVM_Tables.cpp",
44        "Common/src/AGC_MIX_VOL_2St1Mon_D32_WRA.cpp",
45        "Common/src/Add2_Sat_32x32.cpp",
46        "Common/src/Copy_16.cpp",
47        "Common/src/DC_2I_D16_TRC_WRA_01.cpp",
48        "Common/src/DC_2I_D16_TRC_WRA_01_Init.cpp",
49        "Common/src/DelayMix_16x16.cpp",
50        "Common/src/From2iToMS_16x16.cpp",
51        "Common/src/From2iToMono_32.cpp",
52        "Common/src/LVC_Core_MixHard_1St_2i_D16C31_SAT.cpp",
53        "Common/src/LVC_Core_MixHard_2St_D16C31_SAT.cpp",
54        "Common/src/LVC_Core_MixInSoft_D16C31_SAT.cpp",
55        "Common/src/LVC_Core_MixSoft_1St_2i_D16C31_WRA.cpp",
56        "Common/src/LVC_Core_MixSoft_1St_D16C31_WRA.cpp",
57        "Common/src/LVC_MixInSoft_D16C31_SAT.cpp",
58        "Common/src/LVC_MixSoft_1St_2i_D16C31_SAT.cpp",
59        "Common/src/LVC_MixSoft_1St_D16C31_SAT.cpp",
60        "Common/src/LVC_MixSoft_2St_D16C31_SAT.cpp",
61        "Common/src/LVC_Mixer_GetCurrent.cpp",
62        "Common/src/LVC_Mixer_GetTarget.cpp",
63        "Common/src/LVC_Mixer_Init.cpp",
64        "Common/src/LVC_Mixer_SetTarget.cpp",
65        "Common/src/LVC_Mixer_SetTimeConstant.cpp",
66        "Common/src/LVC_Mixer_VarSlope_SetTimeConstant.cpp",
67        "Common/src/LVM_Timer.cpp",
68        "Common/src/LVM_Timer_Init.cpp",
69        "Common/src/MSTo2i_Sat_16x16.cpp",
70        "Common/src/Mac3s_Sat_32x16.cpp",
71        "Common/src/MonoTo2I_32.cpp",
72        "Common/src/Mult3s_32x16.cpp",
73        "Common/src/NonLinComp_D16.cpp",
74        "Common/src/Shift_Sat_v16xv16.cpp",
75        "Common/src/Shift_Sat_v32xv32.cpp",
76        "Common/src/dB_to_Lin32.cpp",
77        "Eq/src/LVEQNB_CalcCoef.cpp",
78        "Eq/src/LVEQNB_Control.cpp",
79        "Eq/src/LVEQNB_Init.cpp",
80        "Eq/src/LVEQNB_Process.cpp",
81        "Eq/src/LVEQNB_Tables.cpp",
82        "SpectrumAnalyzer/src/LVPSA_Control.cpp",
83        "SpectrumAnalyzer/src/LVPSA_Init.cpp",
84        "SpectrumAnalyzer/src/LVPSA_Process.cpp",
85        "SpectrumAnalyzer/src/LVPSA_QPD_Init.cpp",
86        "SpectrumAnalyzer/src/LVPSA_QPD_Process.cpp",
87        "SpectrumAnalyzer/src/LVPSA_Tables.cpp",
88        "StereoWidening/src/LVCS_BypassMix.cpp",
89        "StereoWidening/src/LVCS_Control.cpp",
90        "StereoWidening/src/LVCS_Equaliser.cpp",
91        "StereoWidening/src/LVCS_Init.cpp",
92        "StereoWidening/src/LVCS_Process.cpp",
93        "StereoWidening/src/LVCS_ReverbGenerator.cpp",
94        "StereoWidening/src/LVCS_StereoEnhancer.cpp",
95        "StereoWidening/src/LVCS_Tables.cpp",
96    ],
97
98    local_include_dirs: [
99        "Bass/lib",
100        "Bass/src",
101        "Bundle/src",
102        "Common/src",
103        "Eq/lib",
104        "Eq/src",
105        "SpectrumAnalyzer/lib",
106        "SpectrumAnalyzer/src",
107        "StereoWidening/lib",
108        "StereoWidening/src",
109    ],
110    export_include_dirs: [
111        "Bundle/lib",
112        "Common/lib",
113    ],
114    shared_libs: [
115        "liblog",
116    ],
117    static_libs: [
118        "libaudioutils",
119    ],
120    header_libs: [
121        "libhardware_headers",
122    ],
123    cppflags: [
124        "-Wall",
125        "-Werror",
126        "-fvisibility=hidden",
127    ],
128
129}
130
131// Reverb library
132cc_library_static {
133    name: "libreverb",
134
135    arch: {
136        arm: {
137            instruction_set: "arm",
138        },
139    },
140
141    vendor: true,
142    host_supported: true,
143    srcs: [
144        "Common/src/Add2_Sat_32x32.cpp",
145        "Common/src/Copy_16.cpp",
146        "Common/src/Core_MixHard_2St_D32C31_SAT.cpp",
147        "Common/src/Core_MixInSoft_D32C31_SAT.cpp",
148        "Common/src/Core_MixSoft_1St_D32C31_WRA.cpp",
149        "Common/src/From2iToMono_32.cpp",
150        "Common/src/JoinTo2i_32x32.cpp",
151        "Common/src/LVM_FO_HPF.cpp",
152        "Common/src/LVM_FO_LPF.cpp",
153        "Common/src/LVM_GetOmega.cpp",
154        "Common/src/LVM_Mixer_TimeConstant.cpp",
155        "Common/src/LVM_Polynomial.cpp",
156        "Common/src/LVM_Power10.cpp",
157        "Common/src/Mac3s_Sat_32x16.cpp",
158        "Common/src/MixInSoft_D32C31_SAT.cpp",
159        "Common/src/MixSoft_1St_D32C31_WRA.cpp",
160        "Common/src/MixSoft_2St_D32C31_SAT.cpp",
161        "Common/src/MonoTo2I_32.cpp",
162        "Common/src/Mult3s_32x16.cpp",
163        "Common/src/Shift_Sat_v32xv32.cpp",
164        "Reverb/src/LVREV_ApplyNewSettings.cpp",
165        "Reverb/src/LVREV_ClearAudioBuffers.cpp",
166        "Reverb/src/LVREV_GetControlParameters.cpp",
167        "Reverb/src/LVREV_GetInstanceHandle.cpp",
168        "Reverb/src/LVREV_Process.cpp",
169        "Reverb/src/LVREV_SetControlParameters.cpp",
170        "Reverb/src/LVREV_Tables.cpp",
171    ],
172
173    local_include_dirs: [
174        "Common/src",
175        "Reverb/src",
176    ],
177    export_include_dirs: [
178        "Common/lib",
179        "Reverb/lib",
180    ],
181    static_libs: [
182        "libaudioutils",
183    ],
184    cppflags: [
185        "-Wall",
186        "-Werror",
187        "-fvisibility=hidden",
188    ],
189}
190