lib: Add MI_LOAD_REGISTER_IMM
[platform/upstream/intel-gpu-tools.git] / benchmarks / Android.mk
1 LOCAL_PATH := $(call my-dir)
2
3 include $(LOCAL_PATH)/Makefile.sources
4
5 #================#
6
7 define add_benchmark
8     include $(CLEAR_VARS)
9
10     LOCAL_SRC_FILES := $1.c
11
12     LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM
13     LOCAL_CFLAGS += -DANDROID -UNDEBUG -include "check-ndebug.h"
14     LOCAL_CFLAGS += -std=c99
15     # FIXME: drop once Bionic correctly annotates "noreturn" on pthread_exit
16     LOCAL_CFLAGS += -Wno-error=return-type
17     # Excessive complaining for established cases. Rely on the Linux version warnings.
18     LOCAL_CFLAGS += -Wno-sign-compare
19
20     LOCAL_MODULE := $1
21     LOCAL_MODULE_TAGS := optional
22
23     LOCAL_STATIC_LIBRARIES := libintel_gpu_tools
24
25     LOCAL_SHARED_LIBRARIES := libpciaccess  \
26                               libdrm        \
27                               libdrm_intel
28
29     include $(BUILD_EXECUTABLE)
30 endef
31
32 #================#
33
34 benchmark_list := $(bin_PROGRAMS)
35
36 $(foreach item,$(benchmark_list),$(eval $(call add_benchmark,$(item))))