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