tests/gem_cacheing: convert to subtest infrastructure
[platform/upstream/intel-gpu-tools.git] / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 LOCAL_SRC_FILES :=                      \
5        tools/intel_reg_write.c          \
6        lib/intel_pci.c                  \
7        lib/intel_gpu_tools.h            \
8        tools/intel_reg.h                \
9        lib/intel_batchbuffer.h          \
10        lib/intel_batchbuffer.c          \
11         lib/intel_reg_map.c             \
12        lib/intel_mmio.c                 \
13        tools/intel_chipset.h
14        
15
16 LOCAL_C_INCLUDES +=                                     \
17        $(LOCAL_PATH)/lib                                \
18        $(TOPDIR)hardware/intel/libdrm/include/drm       \
19        $(TOPDIR)hardware/intel/libdrm/intel             \
20        $(LOCAL_PATH)/../libpciaccess/include/ 
21
22 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
23 LOCAL_CFLAGS += -DANDROID
24
25 LOCAL_MODULE := intel_reg_write
26 LOCAL_MODULE_TAGS := optional
27
28 LOCAL_SHARED_LIBRARIES := libpciaccess  \
29                           libdrm        \
30                           libdrm_intel
31
32 include $(BUILD_EXECUTABLE)
33
34 #================
35 include $(CLEAR_VARS)
36
37 LOCAL_SRC_FILES :=                      \
38        tools/intel_reg_read.c           \
39        lib/intel_pci.c                  \
40        lib/intel_gpu_tools.h            \
41        tools/intel_reg.h                \
42        lib/intel_batchbuffer.h          \
43        lib/intel_batchbuffer.c          \
44         lib/intel_reg_map.c             \
45        lib/intel_mmio.c                 \
46        tools/intel_chipset.h
47        
48
49 LOCAL_C_INCLUDES +=                                     \
50        $(LOCAL_PATH)/lib                                \
51        $(TOPDIR)hardware/intel/libdrm/include/drm       \
52        $(TOPDIR)hardware/intel/libdrm/intel             \
53        $(LOCAL_PATH)/../libpciaccess/include/
54
55 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
56 LOCAL_CFLAGS += -DANDROID
57
58
59 LOCAL_MODULE := intel_reg_read
60 LOCAL_MODULE_TAGS := optional
61
62 LOCAL_SHARED_LIBRARIES := libpciaccess  \
63                           libdrm        \
64                           libdrm_intel
65
66 include $(BUILD_EXECUTABLE)
67
68 #================
69 include $(CLEAR_VARS)
70
71 LOCAL_SRC_FILES :=                              \
72        tools/intel_disable_clock_gating.c       \
73        lib/intel_pci.c                          \
74        lib/intel_gpu_tools.h                    \
75        tools/intel_reg.h                        \
76        lib/intel_batchbuffer.h                  \
77        lib/intel_batchbuffer.c                  \
78        lib/intel_mmio.c                         \
79        tools/intel_chipset.h
80        
81
82 LOCAL_C_INCLUDES +=                                     \
83        $(LOCAL_PATH)/lib                                \
84        $(TOPDIR)hardware/intel/libdrm/include/drm       \
85        $(TOPDIR)hardware/intel/libdrm/intel             \
86        $(LOCAL_PATH)/../libpciaccess/include/
87
88 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
89 LOCAL_CFLAGS += -DANDROID
90
91
92 LOCAL_MODULE := intel_disable_clock_gating
93 LOCAL_MODULE_TAGS := optional
94
95 LOCAL_SHARED_LIBRARIES := libpciaccess  \
96                           libdrm        \
97                           libdrm_intel
98
99 include $(BUILD_EXECUTABLE)
100
101 #================
102 include $(CLEAR_VARS)
103
104 LOCAL_SRC_FILES :=                      \
105        tools/intel_audio_dump.c         \
106        lib/intel_pci.c                  \
107        lib/intel_gpu_tools.h            \
108        tools/intel_reg.h                \
109        lib/intel_batchbuffer.h          \
110        lib/intel_batchbuffer.c          \
111        lib/intel_mmio.c                 \
112        tools/intel_chipset.h
113        
114
115 LOCAL_C_INCLUDES +=                                             \
116        $(LOCAL_PATH)/lib                                        \
117        $(TOPDIR)hardware/intel/libdrm/include/drm               \
118        $(TOPDIR)hardware/intel/libdrm/intel                     \
119        $(LOCAL_PATH)/../libpciaccess/include/
120
121 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
122 LOCAL_CFLAGS += -DANDROID
123
124
125 LOCAL_MODULE := intel_audio_dump
126 LOCAL_MODULE_TAGS := optional
127
128 LOCAL_SHARED_LIBRARIES := libpciaccess  \
129                           libdrm        \
130                           libdrm_intel
131
132 include $(BUILD_EXECUTABLE)
133
134 #================
135 include $(CLEAR_VARS)
136
137 LOCAL_SRC_FILES :=                      \
138        tools/intel_backlight.c          \
139        lib/intel_pci.c                  \
140        lib/intel_gpu_tools.h            \
141        tools/intel_reg.h                \
142        lib/intel_batchbuffer.h          \
143        lib/intel_batchbuffer.c          \
144        lib/intel_mmio.c                 \
145        tools/intel_chipset.h
146        
147
148 LOCAL_C_INCLUDES +=                                     \
149        $(LOCAL_PATH)/lib                                \
150        $(TOPDIR)hardware/intel/libdrm/include/drm       \
151        $(TOPDIR)hardware/intel/libdrm/intel             \
152        $(LOCAL_PATH)/../libpciaccess/include/
153
154 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
155 LOCAL_CFLAGS += -DANDROID
156
157
158 LOCAL_MODULE := intel_backlight
159 LOCAL_MODULE_TAGS := optional
160
161 LOCAL_SHARED_LIBRARIES := libpciaccess  \
162                           libdrm        \
163                           libdrm_intel
164
165 include $(BUILD_EXECUTABLE)
166
167 #================
168 include $(CLEAR_VARS)
169
170 LOCAL_SRC_FILES :=                      \
171        tools/intel_bios_dumper.c        \
172        lib/intel_pci.c                  \
173        lib/intel_gpu_tools.h            \
174        tools/intel_reg.h                \
175        lib/intel_batchbuffer.h          \
176        lib/intel_batchbuffer.c          \
177        lib/intel_mmio.c                 \
178        tools/intel_chipset.h
179        
180
181 LOCAL_C_INCLUDES +=                                     \
182        $(LOCAL_PATH)/lib                                \
183        $(TOPDIR)hardware/intel/libdrm/include/drm       \
184        $(TOPDIR)hardware/intel/libdrm/intel             \
185        $(LOCAL_PATH)/../libpciaccess/include/
186
187 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
188 LOCAL_CFLAGS += -DANDROID
189
190
191 LOCAL_MODULE := intel_bios_dumper
192 LOCAL_MODULE_TAGS := optional
193
194 LOCAL_SHARED_LIBRARIES := libpciaccess  \
195                           libdrm        \
196                           libdrm_intel
197
198 include $(BUILD_EXECUTABLE)
199
200 #================
201 include $(CLEAR_VARS)
202
203 LOCAL_SRC_FILES :=                      \
204        tools/intel_bios_reader.c        \
205        lib/intel_pci.c                  \
206        lib/intel_gpu_tools.h            \
207        tools/intel_reg.h                \
208        lib/intel_batchbuffer.h          \
209        lib/intel_batchbuffer.c          \
210        lib/intel_mmio.c                 \
211        tools/intel_chipset.h
212        
213
214 LOCAL_C_INCLUDES +=                                     \
215        $(LOCAL_PATH)/lib                                \
216        $(TOPDIR)hardware/intel/libdrm/include/drm       \
217        $(TOPDIR)hardware/intel/libdrm/intel             \
218        $(LOCAL_PATH)/../libpciaccess/include/
219
220 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
221 LOCAL_CFLAGS += -DANDROID
222
223
224 LOCAL_MODULE := intel_bios_reader
225 LOCAL_MODULE_TAGS := optional
226
227 LOCAL_SHARED_LIBRARIES := libpciaccess  \
228                           libdrm        \
229                           libdrm_intel
230
231 include $(BUILD_EXECUTABLE)
232
233 #================
234 # Disabling intel_error_decode tool, since Android still does not have libdrm2.4.30
235 #================
236 #include $(CLEAR_VARS)
237 #
238 #LOCAL_SRC_FILES :=                             \
239 #       tools/intel_error_decode.c              \
240 #       lib/intel_pci.c                         \
241 #       lib/intel_gpu_tools.h           \
242 #       tools/intel_reg.h                       \
243 #       lib/intel_batchbuffer.h         \
244 #       lib/intel_batchbuffer.c         \
245 #       lib/intel_mmio.c                \
246 #       tools/intel_chipset.h           \
247 #       lib/instdone.h                          \
248 #       lib/instdone.c                          \
249 #       tools/intel_decode.h            \
250 #       lib/intel_drm.c
251 #       
252 #
253 #LOCAL_C_INCLUDES +=                                            \
254 #       $(LOCAL_PATH)/lib                               \
255 #       $(TOPDIR)hardware/intel/libdrm/include/drm      \
256 #       $(TOPDIR)hardware/intel/libdrm/intel            \
257 #       $(LOCAL_PATH)/../libpciaccess/include/
258 #
259 #LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
260 #LOCAL_CFLAGS += -DANDROID
261 #LOCAL_CFLAGS += -std=c99
262 #
263 #
264 #LOCAL_MODULE := intel_error_decode
265 #LOCAL_MODULE_TAGS := optional
266 #
267 #LOCAL_SHARED_LIBRARIES := libpciaccess         \
268 #                          libdrm       \
269 #                          libdrm_intel
270 #
271 #include $(BUILD_EXECUTABLE)
272 #
273 #================
274 include $(CLEAR_VARS)
275
276 LOCAL_SRC_FILES :=                      \
277        tools/intel_gpu_top.c            \
278        lib/intel_pci.c                  \
279        lib/intel_gpu_tools.h            \
280        tools/intel_reg.h                \
281        lib/intel_batchbuffer.h          \
282        lib/intel_batchbuffer.c          \
283        lib/intel_mmio.c                 \
284        tools/intel_chipset.h            \
285        lib/instdone.h                   \
286        lib/instdone.c                   \
287         lib/intel_reg_map.c
288        
289
290 LOCAL_C_INCLUDES +=                                     \
291        $(LOCAL_PATH)/lib                                \
292        $(TOPDIR)hardware/intel/libdrm/include/drm       \
293        $(TOPDIR)hardware/intel/libdrm/intel             \
294        $(LOCAL_PATH)/../libpciaccess/include/
295
296 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
297 LOCAL_CFLAGS += -DANDROID
298
299
300 LOCAL_MODULE := intel_gpu_top
301 LOCAL_MODULE_TAGS := optional
302
303 LOCAL_SHARED_LIBRARIES := libpciaccess  \
304                           libdrm        \
305                           libdrm_intel
306
307 include $(BUILD_EXECUTABLE)
308
309 #================
310 include $(CLEAR_VARS)
311
312 LOCAL_SRC_FILES :=                      \
313        tools/intel_gpu_time.c           \
314        lib/intel_pci.c                  \
315        lib/intel_gpu_tools.h            \
316        tools/intel_reg.h                \
317        lib/intel_batchbuffer.h          \
318        lib/intel_batchbuffer.c          \
319        lib/intel_mmio.c                 \
320        tools/intel_chipset.h
321        
322
323 LOCAL_C_INCLUDES +=                                     \
324        $(LOCAL_PATH)/lib                                \
325        $(TOPDIR)hardware/intel/libdrm/include/drm       \
326        $(TOPDIR)hardware/intel/libdrm/intel             \
327        $(LOCAL_PATH)/../libpciaccess/include/
328
329 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
330 LOCAL_CFLAGS += -DANDROID
331
332
333 LOCAL_MODULE := intel_gpu_time
334 LOCAL_MODULE_TAGS := optional
335
336 LOCAL_SHARED_LIBRARIES := libpciaccess  \
337                           libdrm        \
338                           libdrm_intel
339
340 include $(BUILD_EXECUTABLE)
341
342 #================
343 include $(CLEAR_VARS)
344
345 LOCAL_SRC_FILES :=                      \
346        tools/intel_gtt.c                \
347        lib/intel_pci.c                  \
348        lib/intel_gpu_tools.h            \
349        tools/intel_reg.h                \
350        lib/intel_batchbuffer.h          \
351        lib/intel_batchbuffer.c          \
352        lib/intel_mmio.c                 \
353        tools/intel_chipset.h
354        
355
356 LOCAL_C_INCLUDES +=                                     \
357        $(LOCAL_PATH)/lib                                \
358        $(TOPDIR)hardware/intel/libdrm/include/drm       \
359        $(TOPDIR)hardware/intel/libdrm/intel             \
360        $(LOCAL_PATH)/../libpciaccess/include/
361
362 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
363
364 LOCAL_MODULE := intel_gtt
365 LOCAL_MODULE_TAGS := optional
366
367 LOCAL_SHARED_LIBRARIES := libpciaccess  \
368                           libdrm        \
369                           libdrm_intel
370
371 include $(BUILD_EXECUTABLE)
372
373 #================
374 include $(CLEAR_VARS)
375
376 LOCAL_SRC_FILES :=                      \
377        tools/intel_stepping.c           \
378        lib/intel_pci.c                  \
379        lib/intel_gpu_tools.h            \
380        tools/intel_reg.h                \
381        lib/intel_batchbuffer.h          \
382        lib/intel_batchbuffer.c          \
383        lib/intel_mmio.c                 \
384        tools/intel_chipset.h
385        
386
387 LOCAL_C_INCLUDES +=                                     \
388        $(LOCAL_PATH)/lib                                \
389        $(TOPDIR)hardware/intel/libdrm/include/drm       \
390        $(TOPDIR)hardware/intel/libdrm/intel             \
391        $(LOCAL_PATH)/../libpciaccess/include/
392
393 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
394 LOCAL_CFLAGS += -DANDROID
395
396
397 LOCAL_MODULE := intel_stepping
398 LOCAL_MODULE_TAGS := optional
399
400 LOCAL_SHARED_LIBRARIES := libpciaccess  \
401                           libdrm        \
402                           libdrm_intel
403
404 include $(BUILD_EXECUTABLE)
405
406 #================
407 include $(CLEAR_VARS)
408
409 LOCAL_SRC_FILES :=                      \
410        tools/intel_reg_dumper.c         \
411        lib/intel_pci.c                  \
412        lib/intel_gpu_tools.h            \
413        tools/intel_reg.h                \
414        lib/intel_batchbuffer.h          \
415        lib/intel_batchbuffer.c          \
416        lib/intel_mmio.c                 \
417        tools/intel_chipset.h
418        
419
420 LOCAL_C_INCLUDES +=                                     \
421        $(LOCAL_PATH)/lib                                \
422        $(TOPDIR)hardware/intel/libdrm/include/drm       \
423        $(TOPDIR)hardware/intel/libdrm/intel             \
424        $(LOCAL_PATH)/../libpciaccess/include/
425
426 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
427 LOCAL_CFLAGS += -DANDROID
428
429
430 LOCAL_MODULE := intel_reg_dumper
431 LOCAL_MODULE_TAGS := optional
432
433 LOCAL_SHARED_LIBRARIES := libpciaccess  \
434                           libdrm        \
435                           libdrm_intel
436
437 include $(BUILD_EXECUTABLE)
438
439 #================
440 include $(CLEAR_VARS)
441
442 LOCAL_SRC_FILES :=                      \
443        tools/intel_reg_snapshot.c       \
444        lib/intel_pci.c                  \
445        lib/intel_gpu_tools.h            \
446        tools/intel_reg.h                \
447        lib/intel_batchbuffer.h          \
448        lib/intel_batchbuffer.c          \
449        lib/intel_mmio.c                 \
450        tools/intel_chipset.h
451        
452
453 LOCAL_C_INCLUDES +=                                     \
454        $(LOCAL_PATH)/lib                                \
455        $(TOPDIR)hardware/intel/libdrm/include/drm       \
456        $(TOPDIR)hardware/intel/libdrm/intel             \
457        $(LOCAL_PATH)/../libpciaccess/include/
458
459 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
460
461 LOCAL_MODULE := intel_reg_snapshot
462 LOCAL_MODULE_TAGS := optional
463
464 LOCAL_SHARED_LIBRARIES := libpciaccess  \
465                           libdrm        \
466                           libdrm_intel
467
468 include $(BUILD_EXECUTABLE)
469
470 #================
471 include $(CLEAR_VARS)
472
473 LOCAL_SRC_FILES :=                      \
474        tools/forcewaked.c               \
475        lib/intel_pci.c                  \
476        lib/intel_gpu_tools.h            \
477        tools/intel_reg.h                \
478        lib/intel_batchbuffer.h          \
479        lib/intel_batchbuffer.c          \
480        lib/intel_mmio.c                 \
481        tools/intel_chipset.h            \
482        lib/intel_reg_map.c              \
483        lib/intel_drm.c
484        
485
486 LOCAL_C_INCLUDES +=                                     \
487        $(LOCAL_PATH)/lib                                \
488        $(TOPDIR)hardware/intel/libdrm/include/drm       \
489        $(TOPDIR)hardware/intel/libdrm/intel             \
490        $(LOCAL_PATH)/../libpciaccess/include/
491
492 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
493 LOCAL_CFLAGS += -DANDROID
494
495
496 LOCAL_MODULE := forcewaked
497 LOCAL_MODULE_TAGS := optional
498
499 LOCAL_SHARED_LIBRARIES := libpciaccess  \
500                           libdrm        \
501                           libdrm_intel
502
503 include $(BUILD_EXECUTABLE)
504
505 #================
506 include $(CLEAR_VARS)
507
508 LOCAL_SRC_FILES :=                      \
509        lib/intel_gpu_tools.h            \
510        tools/intel_reg_checker.c        \
511         lib/intel_pci.c                 \
512         lib/intel_mmio.c
513        
514
515 LOCAL_C_INCLUDES +=                                     \
516        $(LOCAL_PATH)/lib                                \
517        $(TOPDIR)hardware/intel/libdrm/include/drm       \
518        $(TOPDIR)hardware/intel/libdrm/intel             \
519        $(LOCAL_PATH)/../libpciaccess/include/
520
521 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
522 LOCAL_CFLAGS += -DANDROID
523
524
525 LOCAL_MODULE := intel_reg_checker
526 LOCAL_MODULE_TAGS := optional
527
528 LOCAL_SHARED_LIBRARIES := libpciaccess  
529
530 include $(BUILD_EXECUTABLE)
531