1// Music bundle
2cc_library_static {
3    name: "libmusicbundle",
4
5    arch: {
6        arm: {
7            instruction_set: "arm",
8        },
9    },
10
11    vendor: true,
12    srcs: [
13        "StereoWidening/src/LVCS_BypassMix.cpp",
14        "StereoWidening/src/LVCS_Control.cpp",
15        "StereoWidening/src/LVCS_Equaliser.cpp",
16        "StereoWidening/src/LVCS_Init.cpp",
17        "StereoWidening/src/LVCS_Process.cpp",
18        "StereoWidening/src/LVCS_ReverbGenerator.cpp",
19        "StereoWidening/src/LVCS_StereoEnhancer.cpp",
20        "StereoWidening/src/LVCS_Tables.cpp",
21        "Bass/src/LVDBE_Control.cpp",
22        "Bass/src/LVDBE_Init.cpp",
23        "Bass/src/LVDBE_Process.cpp",
24        "Bass/src/LVDBE_Tables.cpp",
25        "Bundle/src/LVM_API_Specials.cpp",
26        "Bundle/src/LVM_Buffers.cpp",
27        "Bundle/src/LVM_Init.cpp",
28        "Bundle/src/LVM_Process.cpp",
29        "Bundle/src/LVM_Tables.cpp",
30        "Bundle/src/LVM_Control.cpp",
31        "SpectrumAnalyzer/src/LVPSA_Control.cpp",
32        "SpectrumAnalyzer/src/LVPSA_Init.cpp",
33        "SpectrumAnalyzer/src/LVPSA_Memory.cpp",
34        "SpectrumAnalyzer/src/LVPSA_Process.cpp",
35        "SpectrumAnalyzer/src/LVPSA_QPD_Init.cpp",
36        "SpectrumAnalyzer/src/LVPSA_QPD_Process.cpp",
37        "SpectrumAnalyzer/src/LVPSA_Tables.cpp",
38        "Eq/src/LVEQNB_CalcCoef.cpp",
39        "Eq/src/LVEQNB_Control.cpp",
40        "Eq/src/LVEQNB_Init.cpp",
41        "Eq/src/LVEQNB_Process.cpp",
42        "Eq/src/LVEQNB_Tables.cpp",
43        "Common/src/InstAlloc.cpp",
44        "Common/src/DC_2I_D16_TRC_WRA_01.cpp",
45        "Common/src/DC_2I_D16_TRC_WRA_01_Init.cpp",
46        "Common/src/FO_2I_D16F32C15_LShx_TRC_WRA_01.cpp",
47        "Common/src/FO_2I_D16F32Css_LShx_TRC_WRA_01_Init.cpp",
48        "Common/src/FO_1I_D16F16C15_TRC_WRA_01.cpp",
49        "Common/src/FO_1I_D16F16Css_TRC_WRA_01_Init.cpp",
50        "Common/src/BP_1I_D16F32C30_TRC_WRA_01.cpp",
51        "Common/src/BP_1I_D16F16C14_TRC_WRA_01.cpp",
52        "Common/src/BP_1I_D32F32C30_TRC_WRA_02.cpp",
53        "Common/src/BP_1I_D16F16Css_TRC_WRA_01_Init.cpp",
54        "Common/src/BP_1I_D16F32Cll_TRC_WRA_01_Init.cpp",
55        "Common/src/BP_1I_D32F32Cll_TRC_WRA_02_Init.cpp",
56        "Common/src/BQ_2I_D32F32Cll_TRC_WRA_01_Init.cpp",
57        "Common/src/BQ_2I_D32F32C30_TRC_WRA_01.cpp",
58        "Common/src/BQ_2I_D16F32C15_TRC_WRA_01.cpp",
59        "Common/src/BQ_2I_D16F32C14_TRC_WRA_01.cpp",
60        "Common/src/BQ_2I_D16F32C13_TRC_WRA_01.cpp",
61        "Common/src/BQ_2I_D16F32Css_TRC_WRA_01_init.cpp",
62        "Common/src/BQ_2I_D16F16C15_TRC_WRA_01.cpp",
63        "Common/src/BQ_2I_D16F16C14_TRC_WRA_01.cpp",
64        "Common/src/BQ_2I_D16F16Css_TRC_WRA_01_Init.cpp",
65        "Common/src/BQ_1I_D16F16C15_TRC_WRA_01.cpp",
66        "Common/src/BQ_1I_D16F16Css_TRC_WRA_01_Init.cpp",
67        "Common/src/BQ_1I_D16F32C14_TRC_WRA_01.cpp",
68        "Common/src/BQ_1I_D16F32Css_TRC_WRA_01_init.cpp",
69        "Common/src/PK_2I_D32F32C30G11_TRC_WRA_01.cpp",
70        "Common/src/PK_2I_D32F32C14G11_TRC_WRA_01.cpp",
71        "Common/src/PK_2I_D32F32CssGss_TRC_WRA_01_Init.cpp",
72        "Common/src/PK_2I_D32F32CllGss_TRC_WRA_01_Init.cpp",
73        "Common/src/Int16LShiftToInt32_16x32.cpp",
74        "Common/src/From2iToMono_16.cpp",
75        "Common/src/Copy_16.cpp",
76        "Common/src/MonoTo2I_16.cpp",
77        "Common/src/MonoTo2I_32.cpp",
78        "Common/src/LoadConst_16.cpp",
79        "Common/src/LoadConst_32.cpp",
80        "Common/src/dB_to_Lin32.cpp",
81        "Common/src/Shift_Sat_v16xv16.cpp",
82        "Common/src/Shift_Sat_v32xv32.cpp",
83        "Common/src/Abs_32.cpp",
84        "Common/src/Int32RShiftToInt16_Sat_32x16.cpp",
85        "Common/src/From2iToMono_32.cpp",
86        "Common/src/mult3s_16x16.cpp",
87        "Common/src/Mult3s_32x16.cpp",
88        "Common/src/NonLinComp_D16.cpp",
89        "Common/src/DelayMix_16x16.cpp",
90        "Common/src/MSTo2i_Sat_16x16.cpp",
91        "Common/src/From2iToMS_16x16.cpp",
92        "Common/src/Mac3s_Sat_16x16.cpp",
93        "Common/src/Mac3s_Sat_32x16.cpp",
94        "Common/src/Add2_Sat_16x16.cpp",
95        "Common/src/Add2_Sat_32x32.cpp",
96        "Common/src/LVC_MixSoft_1St_2i_D16C31_SAT.cpp",
97        "Common/src/LVC_MixSoft_1St_D16C31_SAT.cpp",
98        "Common/src/LVC_Mixer_VarSlope_SetTimeConstant.cpp",
99        "Common/src/LVC_Mixer_SetTimeConstant.cpp",
100        "Common/src/LVC_Mixer_SetTarget.cpp",
101        "Common/src/LVC_Mixer_GetTarget.cpp",
102        "Common/src/LVC_Mixer_Init.cpp",
103        "Common/src/LVC_Core_MixHard_1St_2i_D16C31_SAT.cpp",
104        "Common/src/LVC_Core_MixSoft_1St_2i_D16C31_WRA.cpp",
105        "Common/src/LVC_Core_MixInSoft_D16C31_SAT.cpp",
106        "Common/src/LVC_Mixer_GetCurrent.cpp",
107        "Common/src/LVC_MixSoft_2St_D16C31_SAT.cpp",
108        "Common/src/LVC_Core_MixSoft_1St_D16C31_WRA.cpp",
109        "Common/src/LVC_Core_MixHard_2St_D16C31_SAT.cpp",
110        "Common/src/LVC_MixInSoft_D16C31_SAT.cpp",
111        "Common/src/AGC_MIX_VOL_2St1Mon_D32_WRA.cpp",
112        "Common/src/LVM_Timer.cpp",
113        "Common/src/LVM_Timer_Init.cpp",
114    ],
115
116    local_include_dirs: [
117        "Eq/lib",
118        "Eq/src",
119        "Bass/lib",
120        "Bass/src",
121        "Common/src",
122        "Bundle/src",
123        "SpectrumAnalyzer/lib",
124        "SpectrumAnalyzer/src",
125        "StereoWidening/src",
126        "StereoWidening/lib",
127    ],
128    export_include_dirs: [
129        "Common/lib",
130        "Bundle/lib",
131    ],
132    shared_libs: [
133        "liblog",
134    ],
135    header_libs: [
136        "libhardware_headers"
137    ],
138    cppflags: [
139        "-fvisibility=hidden",
140        "-DSUPPORT_MC",
141
142        "-Wall",
143        "-Werror",
144    ],
145
146}
147
148// Reverb library
149cc_library_static {
150    name: "libreverb",
151
152    arch: {
153        arm: {
154            instruction_set: "arm",
155        },
156    },
157
158    vendor: true,
159    srcs: [
160        "Reverb/src/LVREV_ApplyNewSettings.cpp",
161        "Reverb/src/LVREV_ClearAudioBuffers.cpp",
162        "Reverb/src/LVREV_GetControlParameters.cpp",
163        "Reverb/src/LVREV_GetInstanceHandle.cpp",
164        "Reverb/src/LVREV_GetMemoryTable.cpp",
165        "Reverb/src/LVREV_Process.cpp",
166        "Reverb/src/LVREV_SetControlParameters.cpp",
167        "Reverb/src/LVREV_Tables.cpp",
168        "Common/src/Abs_32.cpp",
169        "Common/src/InstAlloc.cpp",
170        "Common/src/LoadConst_16.cpp",
171        "Common/src/LoadConst_32.cpp",
172        "Common/src/From2iToMono_32.cpp",
173        "Common/src/Mult3s_32x16.cpp",
174        "Common/src/FO_1I_D32F32C31_TRC_WRA_01.cpp",
175        "Common/src/FO_1I_D32F32Cll_TRC_WRA_01_Init.cpp",
176        "Common/src/DelayAllPass_Sat_32x16To32.cpp",
177        "Common/src/Copy_16.cpp",
178        "Common/src/Mac3s_Sat_32x16.cpp",
179        "Common/src/DelayWrite_32.cpp",
180        "Common/src/Shift_Sat_v32xv32.cpp",
181        "Common/src/Add2_Sat_32x32.cpp",
182        "Common/src/JoinTo2i_32x32.cpp",
183        "Common/src/MonoTo2I_32.cpp",
184        "Common/src/LVM_FO_HPF.cpp",
185        "Common/src/LVM_FO_LPF.cpp",
186        "Common/src/LVM_Polynomial.cpp",
187        "Common/src/LVM_Power10.cpp",
188        "Common/src/LVM_GetOmega.cpp",
189        "Common/src/MixSoft_2St_D32C31_SAT.cpp",
190        "Common/src/MixSoft_1St_D32C31_WRA.cpp",
191        "Common/src/MixInSoft_D32C31_SAT.cpp",
192        "Common/src/LVM_Mixer_TimeConstant.cpp",
193        "Common/src/Core_MixHard_2St_D32C31_SAT.cpp",
194        "Common/src/Core_MixSoft_1St_D32C31_WRA.cpp",
195        "Common/src/Core_MixInSoft_D32C31_SAT.cpp",
196    ],
197
198    local_include_dirs: [
199        "Reverb/src",
200        "Common/src",
201    ],
202    export_include_dirs: [
203        "Reverb/lib",
204        "Common/lib",
205    ],
206
207    cppflags: [
208        "-fvisibility=hidden",
209
210        "-Wall",
211        "-Werror",
212    ],
213}
214