1// intbufq
2
3cc_test {
4    name: "slesTest_intbufq",
5    gtest: false,
6
7    srcs: [
8        "intbufq.c",
9        "getch.c",
10    ],
11
12    shared_libs: [
13        "liblog",
14        "libOpenSLES",
15    ],
16
17    cflags: [
18        "-Werror",
19        "-Wall",
20
21        "-UNDEBUG",
22    ],
23}
24
25// multiplay
26
27cc_test {
28    name: "slesTest_multiplay",
29    gtest: false,
30
31    srcs: ["multiplay.c"],
32
33    shared_libs: [
34        "liblog",
35        "libOpenSLES",
36    ],
37
38    cflags: [
39        "-Werror",
40        "-Wall",
41
42        "-UNDEBUG",
43    ],
44
45}
46
47// engine
48
49cc_test {
50    name: "slesTest_engine",
51    gtest: false,
52
53    srcs: ["engine.c"],
54
55    shared_libs: [
56        "liblog",
57        "libOpenSLES",
58        "libOpenMAXAL",
59    ],
60
61    static_libs: [
62        "libOpenSLESUT",
63        "liblog",
64    ],
65
66    cflags: [
67        "-Werror",
68        "-Wall",
69
70        "-UNDEBUG",
71    ],
72}
73
74// object
75
76cc_test {
77    name: "slesTest_object",
78    gtest: false,
79
80    srcs: ["object.c"],
81
82    shared_libs: [
83        "liblog",
84        "libOpenSLES",
85        "libOpenMAXAL",
86    ],
87
88    static_libs: [
89        "libOpenSLESUT",
90        "liblog",
91    ],
92
93    cflags: [
94        "-Werror",
95        "-Wall",
96
97        "-UNDEBUG",
98    ],
99}
100
101// configbq
102
103cc_test {
104    name: "slesTest_configbq",
105    gtest: false,
106
107    srcs: ["configbq.c"],
108
109    shared_libs: [
110        "liblog",
111        "libOpenSLES",
112    ],
113
114    cflags: [
115        "-Werror",
116        "-Wall",
117
118        "-UNDEBUG",
119    ],
120}
121
122// reverb
123
124cc_test {
125    name: "slesTest_reverb",
126    gtest: false,
127
128    srcs: ["reverb.c"],
129
130    shared_libs: [
131        "liblog",
132        "libOpenSLES",
133    ],
134
135    static_libs: [
136        "libOpenSLESUT",
137        "liblog",
138    ],
139
140    cflags: [
141        "-Werror",
142        "-Wall",
143
144        "-UNDEBUG",
145    ],
146}
147
148// srcsink
149
150cc_test {
151    name: "slesTest_srcsink",
152    gtest: false,
153
154    srcs: ["srcsink.c"],
155
156    shared_libs: [
157        "liblog",
158        "libOpenSLES",
159    ],
160
161    static_libs: [
162        "libOpenSLESUT",
163        "liblog",
164    ],
165
166    cflags: [
167        "-Werror",
168        "-Wall",
169
170        "-UNDEBUG",
171    ],
172}
173
174// outputmix
175
176cc_test {
177    name: "slesTest_outputmix",
178    gtest: false,
179
180    srcs: ["outputmix.c"],
181
182    shared_libs: [
183        "liblog",
184        "libOpenSLES",
185        "libOpenMAXAL",
186    ],
187
188    static_libs: [
189        "libOpenSLESUT",
190        "liblog",
191    ],
192
193    cflags: [
194        "-Werror",
195        "-Wall",
196
197        "-UNDEBUG",
198    ],
199}
200
201// urimime
202
203cc_test {
204    name: "slesTest_urimime",
205    gtest: false,
206
207    srcs: ["urimime.c"],
208
209    shared_libs: [
210        "liblog",
211        "libOpenSLES",
212        "libOpenMAXAL",
213    ],
214
215    static_libs: [
216        "libOpenSLESUT",
217        "liblog",
218    ],
219
220    cflags: [
221        "-Werror",
222        "-Wall",
223
224        "-UNDEBUG",
225    ],
226}
227
228// dim
229
230cc_test {
231    name: "slesTest_dim",
232    gtest: false,
233
234    srcs: ["dim.c"],
235
236    shared_libs: [
237        "liblog",
238        "libOpenSLES",
239        "libOpenMAXAL",
240    ],
241
242    static_libs: [
243        "libOpenSLESUT",
244        "liblog",
245    ],
246
247    cflags: [
248        "-Werror",
249        "-Wall",
250
251        "-UNDEBUG",
252    ],
253}
254
255// multithread
256
257cc_test {
258    name: "slesTest_multithread",
259    gtest: false,
260
261    srcs: ["multithread.c"],
262
263    shared_libs: [
264        "liblog",
265        "libOpenSLES",
266        "libOpenMAXAL",
267    ],
268
269    static_libs: [
270        "libOpenSLESUT",
271        "liblog",
272    ],
273
274    cflags: [
275        "-Werror",
276        "-Wall",
277
278        "-UNDEBUG",
279    ],
280}
281
282// playbq
283
284cc_test {
285    name: "slesTest_playbq",
286    gtest: false,
287
288    srcs: ["playbq.cpp"],
289
290    shared_libs: [
291        "libaudioutils",
292        "libnbaio",
293        "liblog",
294        "libOpenSLES",
295        "libOpenMAXAL",
296    ],
297
298    static_libs: [
299        "libOpenSLESUT",
300        "libsndfile",
301        "liblog",
302    ],
303
304    cflags: [
305        "-Werror",
306        "-Wall",
307
308        "-UNDEBUG",
309    ],
310}
311
312// monkey
313
314cc_test {
315    name: "slesTest_monkey",
316    gtest: false,
317
318    srcs: ["monkey.c"],
319
320    shared_libs: [
321        "liblog",
322        "libOpenSLES",
323        "libOpenMAXAL",
324    ],
325
326    static_libs: [
327        "libOpenSLESUT",
328        "liblog",
329    ],
330
331    cflags: [
332        "-Werror",
333        "-Wall",
334
335        "-UNDEBUG",
336    ],
337}
338
339// xa
340
341cc_test {
342    name: "slesTest_xa",
343    gtest: false,
344
345    srcs: ["xa.c"],
346
347    shared_libs: [
348        "liblog",
349        "libOpenMAXAL",
350    ],
351
352    static_libs: [
353        "libOpenSLESUT",
354        "liblog",
355    ],
356
357    cflags: [
358        "-Werror",
359        "-Wall",
360
361        "-UNDEBUG",
362    ],
363}
364
365// dual
366
367cc_test {
368    name: "slesTest_dual",
369    gtest: false,
370
371    srcs: ["dual.c"],
372
373    shared_libs: [
374        "liblog",
375        "libOpenSLES",
376        "libOpenMAXAL",
377    ],
378
379    static_libs: [
380        "libOpenSLESUT",
381        "liblog",
382    ],
383
384    cflags: [
385        "-Werror",
386        "-Wall",
387
388        "-UNDEBUG",
389    ],
390}
391
392// xaplay
393
394cc_test {
395    name: "slesTest_xaplay",
396    gtest: false,
397
398    srcs: [
399        "xaplay.c",
400        "nativewindow.cpp",
401    ],
402
403    shared_libs: [
404        "libutils",
405        "liblog",
406        "libOpenMAXAL",
407        "libui",
408        "libgui",
409        "libbinder",
410        "libandroid",
411    ],
412
413    static_libs: [
414        "libOpenSLESUT",
415        "liblog",
416    ],
417
418    cflags: [
419        "-UNDEBUG",
420        "-Wall",
421        "-Wextra",
422        "-Werror",
423    ],
424}
425
426subdirs = ["streamSource"]
427