Android.mk revision 0a058cc3d720cdf3f0f8222472a862258482f34f
1LOCAL_PATH:= $(call my-dir)
2
3# intbufq
4
5include $(CLEAR_VARS)
6
7LOCAL_MODULE_TAGS := tests
8
9LOCAL_C_INCLUDES:= \
10	system/media/opensles/include
11
12LOCAL_SRC_FILES:= \
13    intbufq.c \
14	getch.c
15
16LOCAL_SHARED_LIBRARIES := \
17	libutils \
18	libOpenSLES
19
20ifeq ($(TARGET_OS),linux)
21	LOCAL_CFLAGS += -DXP_UNIX
22	#LOCAL_SHARED_LIBRARIES += librt
23endif
24
25LOCAL_CFLAGS += -UNDEBUG
26
27LOCAL_MODULE:= slesTest_intbufq
28
29include $(BUILD_EXECUTABLE)
30
31# multiplay
32
33include $(CLEAR_VARS)
34
35LOCAL_MODULE_TAGS := tests
36
37LOCAL_C_INCLUDES:= \
38	system/media/opensles/include
39
40LOCAL_SRC_FILES:= \
41	multiplay.c
42
43LOCAL_SHARED_LIBRARIES := \
44	libutils \
45	libOpenSLES
46
47ifeq ($(TARGET_OS),linux)
48	LOCAL_CFLAGS += -DXP_UNIX
49endif
50
51LOCAL_CFLAGS += -UNDEBUG
52
53LOCAL_MODULE:= slesTest_multiplay
54
55include $(BUILD_EXECUTABLE)
56
57# engine
58
59include $(CLEAR_VARS)
60
61LOCAL_MODULE_TAGS := tests
62
63LOCAL_C_INCLUDES:= \
64	system/media/opensles/include
65
66LOCAL_SRC_FILES:= \
67	engine.c
68
69LOCAL_SHARED_LIBRARIES := \
70	libutils \
71	libOpenSLES
72
73LOCAL_STATIC_LIBRARIES := \
74    libOpenSLESUT
75
76ifeq ($(TARGET_OS),linux)
77	LOCAL_CFLAGS += -DXP_UNIX
78endif
79
80LOCAL_CFLAGS += -UNDEBUG
81
82LOCAL_MODULE:= slesTest_engine
83
84include $(BUILD_EXECUTABLE)
85
86# object
87
88include $(CLEAR_VARS)
89
90LOCAL_MODULE_TAGS := tests
91
92LOCAL_C_INCLUDES:= \
93	system/media/opensles/include
94
95LOCAL_SRC_FILES:= \
96	object.c
97
98LOCAL_SHARED_LIBRARIES := \
99	libutils \
100	libOpenSLES
101
102LOCAL_STATIC_LIBRARIES := \
103    libOpenSLESUT
104
105ifeq ($(TARGET_OS),linux)
106	LOCAL_CFLAGS += -DXP_UNIX
107endif
108
109LOCAL_CFLAGS += -UNDEBUG
110
111LOCAL_MODULE:= slesTest_object
112
113include $(BUILD_EXECUTABLE)
114
115# configbq
116
117include $(CLEAR_VARS)
118
119LOCAL_MODULE_TAGS := tests
120
121LOCAL_C_INCLUDES:= \
122	system/media/opensles/include
123
124LOCAL_SRC_FILES:= \
125	configbq.c
126
127LOCAL_SHARED_LIBRARIES := \
128	libutils \
129	libOpenSLES
130
131ifeq ($(TARGET_OS),linux)
132	LOCAL_CFLAGS += -DXP_UNIX
133endif
134
135LOCAL_CFLAGS += -UNDEBUG
136
137LOCAL_MODULE:= slesTest_configbq
138
139include $(BUILD_EXECUTABLE)
140
141# reverb
142
143include $(CLEAR_VARS)
144
145LOCAL_MODULE_TAGS := tests
146
147LOCAL_C_INCLUDES:= \
148	system/media/opensles/include
149
150LOCAL_SRC_FILES:= \
151	reverb.c
152
153LOCAL_SHARED_LIBRARIES := \
154	libutils \
155	libOpenSLES
156
157LOCAL_STATIC_LIBRARIES := \
158    libOpenSLESUT
159
160ifeq ($(TARGET_OS),linux)
161	LOCAL_CFLAGS += -DXP_UNIX
162endif
163
164LOCAL_CFLAGS += -UNDEBUG
165
166LOCAL_MODULE:= slesTest_reverb
167
168include $(BUILD_EXECUTABLE)
169
170# srcsink
171
172include $(CLEAR_VARS)
173
174LOCAL_MODULE_TAGS := tests
175
176LOCAL_C_INCLUDES:= \
177	system/media/opensles/include
178
179LOCAL_SRC_FILES:= \
180	srcsink.c
181
182LOCAL_SHARED_LIBRARIES := \
183	libutils \
184	libOpenSLES
185
186LOCAL_STATIC_LIBRARIES := \
187    libOpenSLESUT
188
189ifeq ($(TARGET_OS),linux)
190	LOCAL_CFLAGS += -DXP_UNIX
191endif
192
193LOCAL_CFLAGS += -UNDEBUG
194
195LOCAL_MODULE:= slesTest_srcsink
196
197include $(BUILD_EXECUTABLE)
198
199# outputmix
200
201include $(CLEAR_VARS)
202
203LOCAL_MODULE_TAGS := tests
204
205LOCAL_C_INCLUDES:= \
206	system/media/opensles/include
207
208LOCAL_SRC_FILES:= \
209	outputmix.c
210
211LOCAL_SHARED_LIBRARIES := \
212	libutils \
213	libOpenSLES
214
215LOCAL_STATIC_LIBRARIES := \
216    libOpenSLESUT
217
218ifeq ($(TARGET_OS),linux)
219	LOCAL_CFLAGS += -DXP_UNIX
220endif
221
222LOCAL_CFLAGS += -UNDEBUG
223
224LOCAL_MODULE:= slesTest_outputmix
225
226include $(BUILD_EXECUTABLE)
227
228# urimime
229
230include $(CLEAR_VARS)
231
232LOCAL_MODULE_TAGS := tests
233
234LOCAL_C_INCLUDES:= \
235	system/media/opensles/include
236
237LOCAL_SRC_FILES:= \
238	urimime.c
239
240LOCAL_SHARED_LIBRARIES := \
241	libutils \
242	libOpenSLES
243
244LOCAL_STATIC_LIBRARIES := \
245    libOpenSLESUT
246
247ifeq ($(TARGET_OS),linux)
248	LOCAL_CFLAGS += -DXP_UNIX
249endif
250
251LOCAL_CFLAGS += -UNDEBUG
252
253LOCAL_MODULE:= slesTest_urimime
254
255include $(BUILD_EXECUTABLE)
256
257# dim
258
259include $(CLEAR_VARS)
260
261LOCAL_MODULE_TAGS := tests
262
263LOCAL_C_INCLUDES:= \
264	system/media/opensles/include
265
266LOCAL_SRC_FILES:= \
267	dim.c
268
269LOCAL_SHARED_LIBRARIES := \
270	libutils \
271	libOpenSLES
272
273LOCAL_STATIC_LIBRARIES := \
274    libOpenSLESUT
275
276ifeq ($(TARGET_OS),linux)
277	LOCAL_CFLAGS += -DXP_UNIX
278endif
279
280LOCAL_CFLAGS += -UNDEBUG
281
282LOCAL_MODULE:= slesTest_dim
283
284include $(BUILD_EXECUTABLE)
285
286# multithread
287
288include $(CLEAR_VARS)
289
290LOCAL_MODULE_TAGS := tests
291
292LOCAL_C_INCLUDES:= \
293	system/media/opensles/include
294
295LOCAL_SRC_FILES:= \
296	multithread.c
297
298LOCAL_SHARED_LIBRARIES := \
299	libutils \
300	libOpenSLES
301
302LOCAL_STATIC_LIBRARIES := \
303    libOpenSLESUT
304
305ifeq ($(TARGET_OS),linux)
306	LOCAL_CFLAGS += -DXP_UNIX
307endif
308
309LOCAL_CFLAGS += -UNDEBUG
310
311LOCAL_MODULE:= slesTest_multithread
312
313include $(BUILD_EXECUTABLE)
314
315# playbq
316
317include $(CLEAR_VARS)
318
319LOCAL_MODULE_TAGS := tests
320
321LOCAL_C_INCLUDES:= \
322	system/media/opensles/include
323
324LOCAL_SRC_FILES:= \
325	playbq.c
326
327LOCAL_SHARED_LIBRARIES := \
328	libutils \
329	libOpenSLES
330
331LOCAL_STATIC_LIBRARIES := \
332    libOpenSLESUT \
333    libsndfile
334
335ifeq ($(TARGET_OS),linux)
336	LOCAL_CFLAGS += -DXP_UNIX
337endif
338
339LOCAL_CFLAGS += -UNDEBUG
340
341LOCAL_MODULE:= slesTest_playbq
342
343# commented out because libsndfile is not yet standard
344#include $(BUILD_EXECUTABLE)
345
346# monkey
347
348include $(CLEAR_VARS)
349
350LOCAL_MODULE_TAGS := tests
351
352LOCAL_C_INCLUDES:= \
353	system/media/opensles/include
354
355LOCAL_SRC_FILES:= \
356	monkey.c
357
358LOCAL_SHARED_LIBRARIES := \
359	libutils \
360	libOpenSLES
361
362LOCAL_STATIC_LIBRARIES := \
363    libOpenSLESUT
364
365ifeq ($(TARGET_OS),linux)
366	LOCAL_CFLAGS += -DXP_UNIX
367endif
368
369LOCAL_CFLAGS += -UNDEBUG
370
371LOCAL_MODULE:= slesTest_monkey
372
373include $(BUILD_EXECUTABLE)
374