OSDN Git Service

Disable btiotest and hciemu to reduce space.
[android-x86/external-bluetooth-bluez.git] / test / Android.mk
1 LOCAL_PATH:= $(call my-dir)
2 BUILD_BTIOTEST:=0
3 BUILD_HCIEMU:=0
4
5 #
6 # hstest
7 #
8
9 include $(CLEAR_VARS)
10
11 LOCAL_CFLAGS:= \
12         -DVERSION=\"4.40\"
13
14 LOCAL_SRC_FILES:= \
15         hstest.c
16
17 LOCAL_C_INCLUDES:= \
18         $(LOCAL_PATH)/../include \
19         $(LOCAL_PATH)/../common
20
21 LOCAL_SHARED_LIBRARIES := \
22         libbluetooth
23
24 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
25 LOCAL_MODULE_TAGS := eng
26 LOCAL_MODULE:=hstest
27
28 include $(BUILD_EXECUTABLE)
29
30 #
31 # l2test
32 #
33
34 include $(CLEAR_VARS)
35
36 LOCAL_CFLAGS:= \
37         -DVERSION=\"4.40\"
38
39 LOCAL_SRC_FILES:= \
40         l2test.c
41
42 LOCAL_C_INCLUDES:= \
43         $(LOCAL_PATH)/../include \
44         $(LOCAL_PATH)/../common
45
46 LOCAL_SHARED_LIBRARIES := \
47         libbluetooth
48
49 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
50 LOCAL_MODULE_TAGS := eng
51 LOCAL_MODULE:=l2test
52
53 include $(BUILD_EXECUTABLE)
54
55 #
56 # rctest
57 #
58
59 include $(CLEAR_VARS)
60
61 LOCAL_CFLAGS:= \
62         -DVERSION=\"4.40\"
63
64 LOCAL_SRC_FILES:= \
65         rctest.c
66
67 LOCAL_C_INCLUDES:= \
68         $(LOCAL_PATH)/../include \
69         $(LOCAL_PATH)/../common
70
71 LOCAL_SHARED_LIBRARIES := \
72         libbluetooth
73
74 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
75 LOCAL_MODULE_TAGS := eng
76 LOCAL_MODULE:=rctest
77
78 include $(BUILD_EXECUTABLE)
79
80
81 #
82 # scotest
83 #
84
85 include $(CLEAR_VARS)
86
87 LOCAL_CFLAGS:= \
88         -DVERSION=\"4.40\"
89
90 LOCAL_SRC_FILES:= \
91         scotest.c
92
93 LOCAL_C_INCLUDES:= \
94         $(LOCAL_PATH)/../include \
95         $(LOCAL_PATH)/../common
96
97 LOCAL_SHARED_LIBRARIES := \
98         libbluetooth
99
100 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
101 LOCAL_MODULE_TAGS := eng
102 LOCAL_MODULE:=scotest
103
104 include $(BUILD_EXECUTABLE)
105
106 #
107 # agent
108 #
109
110 include $(CLEAR_VARS)
111
112 LOCAL_CFLAGS:= \
113         -DVERSION=\"4.40\"
114
115 LOCAL_SRC_FILES:= \
116         agent.c
117
118 LOCAL_C_INCLUDES:= \
119         $(LOCAL_PATH)/../include \
120         $(LOCAL_PATH)/../common \
121         $(call include-path-for, dbus)
122
123 LOCAL_SHARED_LIBRARIES := \
124         libdbus
125
126 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
127 LOCAL_MODULE_TAGS := eng
128 LOCAL_MODULE:=agent
129
130 include $(BUILD_EXECUTABLE)
131
132 #
133 # attest
134 #
135
136 include $(CLEAR_VARS)
137
138 LOCAL_CFLAGS:= \
139         -DVERSION=\"4.40\"
140
141 LOCAL_SRC_FILES:= \
142         attest.c
143
144 LOCAL_C_INCLUDES:= \
145         $(LOCAL_PATH)/../include \
146         $(LOCAL_PATH)/../common
147
148 LOCAL_SHARED_LIBRARIES := \
149         libbluetooth
150
151 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
152 LOCAL_MODULE_TAGS := eng
153 LOCAL_MODULE:=attest
154
155 include $(BUILD_EXECUTABLE)
156
157 #
158 # avtest
159 #
160
161 include $(CLEAR_VARS)
162
163 LOCAL_CFLAGS:= \
164         -DVERSION=\"4.40\"
165
166 LOCAL_SRC_FILES:= \
167         avtest.c
168
169 LOCAL_C_INCLUDES:= \
170         $(LOCAL_PATH)/../include \
171         $(LOCAL_PATH)/../common
172
173 LOCAL_SHARED_LIBRARIES := \
174         libbluetooth
175
176 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
177 LOCAL_MODULE_TAGS := eng
178 LOCAL_MODULE:=avtest
179
180 include $(BUILD_EXECUTABLE)
181
182 #
183 # bdaddr
184 #
185
186 include $(CLEAR_VARS)
187
188 LOCAL_CFLAGS:= \
189         -DVERSION=\"4.40\"
190
191 LOCAL_SRC_FILES:= \
192         bdaddr.c
193
194 LOCAL_C_INCLUDES:= \
195         $(LOCAL_PATH)/../include \
196         $(LOCAL_PATH)/../common
197
198 LOCAL_SHARED_LIBRARIES := \
199         libbluetooth
200
201 LOCAL_STATIC_LIBRARIES := \
202         libbluez-common-static
203
204 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
205 LOCAL_MODULE_TAGS := eng
206 LOCAL_MODULE:=bdaddr
207
208 include $(BUILD_EXECUTABLE)
209
210 ifeq ($(BUILD_BTIOTEST),1)
211 #
212 # btiotest
213 #
214
215 include $(CLEAR_VARS)
216
217 LOCAL_CFLAGS:= \
218         -DVERSION=\"4.40\"
219
220 LOCAL_SRC_FILES:= \
221         btiotest.c
222
223 LOCAL_C_INCLUDES:= \
224         $(LOCAL_PATH)/../include \
225         $(LOCAL_PATH)/../common \
226         $(call include-path-for, glib) \
227         $(call include-path-for, glib)\glib
228
229
230 LOCAL_SHARED_LIBRARIES := \
231         libbluetooth \
232
233 LOCAL_STATIC_LIBRARIES := \
234         libbluez-common-static \
235         libglib_static \
236
237
238 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
239 LOCAL_MODULE_TAGS := eng
240 LOCAL_MODULE:=btiotest
241
242 include $(BUILD_EXECUTABLE)
243 endif #BTIOTEST
244
245
246 ifeq ($(BUILD_HCIEMU),1)
247 #
248 # hciemu
249 #
250
251 include $(CLEAR_VARS)
252
253 LOCAL_CFLAGS:= \
254         -DVERSION=\"4.40\"
255
256 LOCAL_SRC_FILES:= \
257         hciemu.c
258
259 LOCAL_C_INCLUDES:= \
260         $(LOCAL_PATH)/../include \
261         $(LOCAL_PATH)/../common \
262         $(call include-path-for, glib) \
263         $(call include-path-for, glib)\glib
264
265 LOCAL_SHARED_LIBRARIES := \
266         libbluetooth \
267         libc \
268         libcutils
269
270 LOCAL_STATIC_LIBRARIES := \
271         libglib_static
272
273 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
274 LOCAL_MODULE_TAGS := eng
275 LOCAL_MODULE:=hciemu
276
277 include $(BUILD_EXECUTABLE)
278 endif #BUILD_HCIEMU
279
280 #
281 # lmptest
282 #
283
284 include $(CLEAR_VARS)
285
286 LOCAL_CFLAGS:= \
287         -DVERSION=\"4.40\"
288
289 LOCAL_SRC_FILES:= \
290         lmptest.c
291
292 LOCAL_C_INCLUDES:= \
293         $(LOCAL_PATH)/../include \
294         $(LOCAL_PATH)/../common
295
296 LOCAL_SHARED_LIBRARIES := \
297         libbluetooth
298
299 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
300 LOCAL_MODULE_TAGS := eng
301 LOCAL_MODULE:=lmptest
302
303 include $(BUILD_EXECUTABLE)
304
305 #
306 # sdptest
307 #
308
309 include $(CLEAR_VARS)
310
311 LOCAL_CFLAGS:= \
312         -DVERSION=\"4.40\"
313
314 LOCAL_SRC_FILES:= \
315         sdptest.c
316
317 LOCAL_C_INCLUDES:= \
318         $(LOCAL_PATH)/../include \
319         $(LOCAL_PATH)/../common
320
321 LOCAL_SHARED_LIBRARIES := \
322         libbluetooth
323
324 LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)
325 LOCAL_MODULE_TAGS := eng
326 LOCAL_MODULE:=sdptest
327
328 include $(BUILD_EXECUTABLE)