1LOCAL_PATH:= $(call my-dir)
2
3# intbufq
4
5include $(CLEAR_VARS)
6
7LOCAL_MODULE_TAGS := tests
8
9LOCAL_C_INCLUDES:= \
10	$(call include-path-for, wilhelm)
11
12LOCAL_SRC_FILES:= \
13    intbufq.c \
14	getch.c
15
16LOCAL_SHARED_LIBRARIES := \
17	liblog \
18	libOpenSLES
19
20LOCAL_CFLAGS := -Werror -Wall
21ifeq ($(TARGET_OS),linux)
22	LOCAL_CFLAGS += -DXP_UNIX
23	#LOCAL_SHARED_LIBRARIES += librt
24endif
25
26LOCAL_CFLAGS += -UNDEBUG
27
28LOCAL_MODULE:= slesTest_intbufq
29
30include $(BUILD_EXECUTABLE)
31
32# multiplay
33
34include $(CLEAR_VARS)
35
36LOCAL_MODULE_TAGS := tests
37
38LOCAL_C_INCLUDES:= \
39	$(call include-path-for, wilhelm)
40
41LOCAL_SRC_FILES:= \
42	multiplay.c
43
44LOCAL_SHARED_LIBRARIES := \
45	liblog \
46	libOpenSLES
47
48ifeq ($(TARGET_OS),linux)
49	LOCAL_CFLAGS += -DXP_UNIX
50endif
51
52LOCAL_CFLAGS := -Werror -Wall
53LOCAL_CFLAGS += -UNDEBUG
54
55LOCAL_MODULE:= slesTest_multiplay
56
57include $(BUILD_EXECUTABLE)
58
59# engine
60
61include $(CLEAR_VARS)
62
63LOCAL_MODULE_TAGS := tests
64
65LOCAL_C_INCLUDES:= \
66	$(call include-path-for, wilhelm) \
67	$(call include-path-for, wilhelm-ut)
68
69LOCAL_SRC_FILES:= \
70	engine.c
71
72LOCAL_SHARED_LIBRARIES := \
73	liblog \
74	libOpenSLES
75
76LOCAL_STATIC_LIBRARIES := \
77    libOpenSLESUT \
78    liblog
79
80ifeq ($(TARGET_OS),linux)
81	LOCAL_CFLAGS += -DXP_UNIX
82endif
83
84LOCAL_CFLAGS := -Werror -Wall
85LOCAL_CFLAGS += -UNDEBUG
86
87LOCAL_MODULE:= slesTest_engine
88
89include $(BUILD_EXECUTABLE)
90
91# object
92
93include $(CLEAR_VARS)
94
95LOCAL_MODULE_TAGS := tests
96
97LOCAL_C_INCLUDES:= \
98	$(call include-path-for, wilhelm) \
99	$(call include-path-for, wilhelm-ut)
100
101LOCAL_SRC_FILES:= \
102	object.c
103
104LOCAL_SHARED_LIBRARIES := \
105	liblog \
106	libOpenSLES
107
108LOCAL_STATIC_LIBRARIES := \
109    libOpenSLESUT \
110    liblog
111
112ifeq ($(TARGET_OS),linux)
113	LOCAL_CFLAGS += -DXP_UNIX
114endif
115
116LOCAL_CFLAGS := -Werror -Wall
117LOCAL_CFLAGS += -UNDEBUG
118
119LOCAL_MODULE:= slesTest_object
120
121include $(BUILD_EXECUTABLE)
122
123# configbq
124
125include $(CLEAR_VARS)
126
127LOCAL_MODULE_TAGS := tests
128
129LOCAL_C_INCLUDES:= \
130	$(call include-path-for, wilhelm)
131
132LOCAL_SRC_FILES:= \
133	configbq.c
134
135LOCAL_SHARED_LIBRARIES := \
136	liblog \
137	libOpenSLES
138
139ifeq ($(TARGET_OS),linux)
140	LOCAL_CFLAGS += -DXP_UNIX
141endif
142
143LOCAL_CFLAGS := -Werror -Wall
144LOCAL_CFLAGS += -UNDEBUG
145
146LOCAL_MODULE:= slesTest_configbq
147
148include $(BUILD_EXECUTABLE)
149
150# reverb
151
152include $(CLEAR_VARS)
153
154LOCAL_MODULE_TAGS := tests
155
156LOCAL_C_INCLUDES:= \
157	$(call include-path-for, wilhelm)
158
159LOCAL_SRC_FILES:= \
160	reverb.c
161
162LOCAL_SHARED_LIBRARIES := \
163	liblog \
164	libOpenSLES
165
166LOCAL_STATIC_LIBRARIES := \
167    libOpenSLESUT \
168    liblog
169
170ifeq ($(TARGET_OS),linux)
171	LOCAL_CFLAGS += -DXP_UNIX
172endif
173
174LOCAL_CFLAGS := -Werror -Wall
175LOCAL_CFLAGS += -UNDEBUG
176
177LOCAL_MODULE:= slesTest_reverb
178
179include $(BUILD_EXECUTABLE)
180
181# srcsink
182
183include $(CLEAR_VARS)
184
185LOCAL_MODULE_TAGS := tests
186
187LOCAL_C_INCLUDES:= \
188	$(call include-path-for, wilhelm)
189
190LOCAL_SRC_FILES:= \
191	srcsink.c
192
193LOCAL_SHARED_LIBRARIES := \
194	liblog \
195	libOpenSLES
196
197LOCAL_STATIC_LIBRARIES := \
198    libOpenSLESUT \
199    liblog
200
201ifeq ($(TARGET_OS),linux)
202	LOCAL_CFLAGS += -DXP_UNIX
203endif
204
205LOCAL_CFLAGS := -Werror -Wall
206LOCAL_CFLAGS += -UNDEBUG
207
208LOCAL_MODULE:= slesTest_srcsink
209
210include $(BUILD_EXECUTABLE)
211
212# outputmix
213
214include $(CLEAR_VARS)
215
216LOCAL_MODULE_TAGS := tests
217
218LOCAL_C_INCLUDES:= \
219	$(call include-path-for, wilhelm) \
220	$(call include-path-for, wilhelm-ut)
221
222LOCAL_SRC_FILES:= \
223	outputmix.c
224
225LOCAL_SHARED_LIBRARIES := \
226	liblog \
227	libOpenSLES
228
229LOCAL_STATIC_LIBRARIES := \
230    libOpenSLESUT \
231    liblog
232
233ifeq ($(TARGET_OS),linux)
234	LOCAL_CFLAGS += -DXP_UNIX
235endif
236
237LOCAL_CFLAGS := -Werror -Wall
238LOCAL_CFLAGS += -UNDEBUG
239
240LOCAL_MODULE:= slesTest_outputmix
241
242include $(BUILD_EXECUTABLE)
243
244# urimime
245
246include $(CLEAR_VARS)
247
248LOCAL_MODULE_TAGS := tests
249
250LOCAL_C_INCLUDES:= \
251	$(call include-path-for, wilhelm)
252
253LOCAL_SRC_FILES:= \
254	urimime.c
255
256LOCAL_SHARED_LIBRARIES := \
257	liblog \
258	libOpenSLES
259
260LOCAL_STATIC_LIBRARIES := \
261    libOpenSLESUT \
262    liblog
263
264ifeq ($(TARGET_OS),linux)
265	LOCAL_CFLAGS += -DXP_UNIX
266endif
267
268LOCAL_CFLAGS := -Werror -Wall
269LOCAL_CFLAGS += -UNDEBUG
270
271LOCAL_MODULE:= slesTest_urimime
272
273include $(BUILD_EXECUTABLE)
274
275# dim
276
277include $(CLEAR_VARS)
278
279LOCAL_MODULE_TAGS := tests
280
281LOCAL_C_INCLUDES:= \
282	$(call include-path-for, wilhelm)
283
284LOCAL_SRC_FILES:= \
285	dim.c
286
287LOCAL_SHARED_LIBRARIES := \
288	liblog \
289	libOpenSLES
290
291LOCAL_STATIC_LIBRARIES := \
292    libOpenSLESUT \
293    liblog
294
295ifeq ($(TARGET_OS),linux)
296	LOCAL_CFLAGS += -DXP_UNIX
297endif
298
299LOCAL_CFLAGS := -Werror -Wall
300LOCAL_CFLAGS += -UNDEBUG
301
302LOCAL_MODULE:= slesTest_dim
303
304include $(BUILD_EXECUTABLE)
305
306# multithread
307
308include $(CLEAR_VARS)
309
310LOCAL_MODULE_TAGS := tests
311
312LOCAL_C_INCLUDES:= \
313	$(call include-path-for, wilhelm)
314
315LOCAL_SRC_FILES:= \
316	multithread.c
317
318LOCAL_SHARED_LIBRARIES := \
319	liblog \
320	libOpenSLES
321
322LOCAL_STATIC_LIBRARIES := \
323    libOpenSLESUT \
324    liblog
325
326ifeq ($(TARGET_OS),linux)
327	LOCAL_CFLAGS += -DXP_UNIX
328endif
329
330LOCAL_CFLAGS := -Werror -Wall
331LOCAL_CFLAGS += -UNDEBUG
332
333LOCAL_MODULE:= slesTest_multithread
334
335include $(BUILD_EXECUTABLE)
336
337# playbq
338
339include $(CLEAR_VARS)
340
341LOCAL_MODULE_TAGS := tests
342
343LOCAL_C_INCLUDES:= \
344	$(call include-path-for, wilhelm) \
345	$(call include-path-for, audio-utils)
346
347LOCAL_SRC_FILES:= \
348	playbq.cpp
349
350LOCAL_SHARED_LIBRARIES := \
351	libaudioutils \
352	libnbaio \
353	liblog \
354	libOpenSLES
355
356LOCAL_STATIC_LIBRARIES := \
357    libOpenSLESUT \
358    libsndfile \
359    liblog
360
361ifeq ($(TARGET_OS),linux)
362	LOCAL_CFLAGS += -DXP_UNIX
363endif
364
365LOCAL_CFLAGS := -Werror -Wall
366LOCAL_CFLAGS += -UNDEBUG
367
368LOCAL_MODULE:= slesTest_playbq
369
370include $(BUILD_EXECUTABLE)
371
372# monkey
373
374include $(CLEAR_VARS)
375
376LOCAL_MODULE_TAGS := tests
377
378LOCAL_C_INCLUDES:= \
379	$(call include-path-for, wilhelm)
380
381LOCAL_SRC_FILES:= \
382	monkey.c
383
384LOCAL_SHARED_LIBRARIES := \
385	liblog \
386	libOpenSLES
387
388LOCAL_STATIC_LIBRARIES := \
389    libOpenSLESUT \
390    liblog
391
392ifeq ($(TARGET_OS),linux)
393	LOCAL_CFLAGS += -DXP_UNIX
394endif
395
396LOCAL_CFLAGS := -Werror -Wall
397LOCAL_CFLAGS += -UNDEBUG
398
399LOCAL_MODULE:= slesTest_monkey
400
401include $(BUILD_EXECUTABLE)
402
403# xa
404
405include $(CLEAR_VARS)
406
407LOCAL_MODULE_TAGS := tests
408
409LOCAL_C_INCLUDES:= \
410	$(call include-path-for, wilhelm)
411
412LOCAL_SRC_FILES:= \
413	xa.c
414
415LOCAL_SHARED_LIBRARIES := \
416	liblog \
417	libOpenMAXAL
418
419LOCAL_STATIC_LIBRARIES := \
420    libOpenSLESUT \
421    liblog
422
423ifeq ($(TARGET_OS),linux)
424	LOCAL_CFLAGS += -DXP_UNIX
425endif
426
427LOCAL_CFLAGS := -Werror -Wall
428LOCAL_CFLAGS += -UNDEBUG
429
430LOCAL_MODULE:= slesTest_xa
431
432include $(BUILD_EXECUTABLE)
433
434# dual
435
436include $(CLEAR_VARS)
437
438LOCAL_MODULE_TAGS := tests
439
440LOCAL_C_INCLUDES:= \
441	$(call include-path-for, wilhelm)
442
443LOCAL_SRC_FILES:= \
444	dual.c
445
446LOCAL_SHARED_LIBRARIES := \
447	liblog \
448	libOpenSLES \
449	libOpenMAXAL
450
451LOCAL_STATIC_LIBRARIES := \
452    libOpenSLESUT \
453    liblog
454
455ifeq ($(TARGET_OS),linux)
456	LOCAL_CFLAGS += -DXP_UNIX
457endif
458
459LOCAL_CFLAGS := -Werror -Wall
460LOCAL_CFLAGS += -UNDEBUG
461
462LOCAL_MODULE:= slesTest_dual
463
464include $(BUILD_EXECUTABLE)
465
466# xaplay
467
468include $(CLEAR_VARS)
469
470LOCAL_MODULE_TAGS := tests
471
472LOCAL_C_INCLUDES:= \
473	$(call include-path-for, wilhelm)
474
475LOCAL_SRC_FILES:= \
476	xaplay.c nativewindow.cpp
477
478LOCAL_SHARED_LIBRARIES := \
479	libutils \
480	liblog \
481	libOpenMAXAL \
482    libgui \
483    libbinder \
484    libandroid
485
486LOCAL_STATIC_LIBRARIES := \
487    libOpenSLESUT \
488    liblog
489
490ifeq ($(TARGET_OS),linux)
491	LOCAL_CFLAGS += -DXP_UNIX
492endif
493
494LOCAL_CFLAGS += -UNDEBUG -Wall -Wextra -Werror
495
496LOCAL_MODULE:= xaplay
497
498include $(BUILD_EXECUTABLE)
499