Rafael Barbalho | 005c333 | 2014-01-31 14:57:38 +0000 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
Rafael Barbalho | bdb08f9 | 2014-01-31 14:57:39 +0000 | [diff] [blame] | 3 | GPU_TOOLS_PATH := $(LOCAL_PATH)/.. |
Tim Gore | 57bd860 | 2014-07-24 17:38:22 +0100 | [diff] [blame] | 4 | IGT_LIB_PATH := $(LOCAL_PATH) |
Rafael Barbalho | bdb08f9 | 2014-01-31 14:57:39 +0000 | [diff] [blame] | 5 | |
Rafael Barbalho | bdb08f9 | 2014-01-31 14:57:39 +0000 | [diff] [blame] | 6 | # FIXME: autogenerate this info # |
| 7 | $(GPU_TOOLS_PATH)/config.h: |
| 8 | @echo "updating config.h" |
| 9 | @echo '#define PACKAGE_VERSION "1.5"' >> $@ ; \ |
| 10 | echo '#define TARGET_CPU_PLATFORM "android-ia"' >> $@ ; |
| 11 | |
Rafael Barbalho | 005c333 | 2014-01-31 14:57:38 +0000 | [diff] [blame] | 12 | include $(LOCAL_PATH)/Makefile.sources |
| 13 | |
Rafael Barbalho | 005c333 | 2014-01-31 14:57:38 +0000 | [diff] [blame] | 14 | include $(CLEAR_VARS) |
| 15 | |
Rafael Barbalho | bdb08f9 | 2014-01-31 14:57:39 +0000 | [diff] [blame] | 16 | LOCAL_GENERATED_SOURCES := \ |
Tim Gore | 57bd860 | 2014-07-24 17:38:22 +0100 | [diff] [blame] | 17 | $(IGT_LIB_PATH)/version.h \ |
Rafael Barbalho | bdb08f9 | 2014-01-31 14:57:39 +0000 | [diff] [blame] | 18 | $(GPU_TOOLS_PATH)/config.h |
| 19 | |
Arkadiusz Hiler | 6047b01 | 2017-04-14 15:10:20 +0200 | [diff] [blame] | 20 | LOCAL_C_INCLUDES += $(LOCAL_PATH)/.. \ |
| 21 | $(LOCAL_PATH)/stubs/drm/ |
Rafael Barbalho | 005c333 | 2014-01-31 14:57:38 +0000 | [diff] [blame] | 22 | |
Rafael Barbalho | 09bcb0a | 2014-01-31 14:57:40 +0000 | [diff] [blame] | 23 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
Rafael Barbalho | 005c333 | 2014-01-31 14:57:38 +0000 | [diff] [blame] | 24 | |
| 25 | LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES |
| 26 | LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM |
Tim Gore | 07e9f3e | 2015-01-12 09:50:22 +0000 | [diff] [blame] | 27 | LOCAL_CFLAGS += -DANDROID -DHAVE_LINUX_KD_H |
Derek Morton | 88c9a82 | 2015-05-26 15:19:17 +0100 | [diff] [blame] | 28 | LOCAL_CFLAGS += -std=gnu99 -UNDEBUG |
Rafael Barbalho | 005c333 | 2014-01-31 14:57:38 +0000 | [diff] [blame] | 29 | LOCAL_MODULE:= libintel_gpu_tools |
| 30 | |
| 31 | LOCAL_SHARED_LIBRARIES := libpciaccess \ |
Arkadiusz Hiler | 53e7f53 | 2017-04-12 09:42:47 +0200 | [diff] [blame] | 32 | libkmod \ |
Rafael Barbalho | 005c333 | 2014-01-31 14:57:38 +0000 | [diff] [blame] | 33 | libdrm \ |
| 34 | libdrm_intel |
| 35 | |
Tim Gore | 41cbe36 | 2014-05-12 13:39:00 +0100 | [diff] [blame] | 36 | ifeq ("${ANDROID_HAS_CAIRO}", "1") |
| 37 | skip_lib_list := |
| 38 | LOCAL_C_INCLUDES += $(ANDROID_BUILD_TOP)/external/cairo-1.12.16/src |
Thomas Wood | ecb0326 | 2015-04-13 17:37:22 +0100 | [diff] [blame] | 39 | LOCAL_CFLAGS += -DANDROID_HAS_CAIRO=1 -DIGT_DATADIR=\".\" -DIGT_SRCDIR=\".\" |
Tim Gore | 41cbe36 | 2014-05-12 13:39:00 +0100 | [diff] [blame] | 40 | else |
| 41 | skip_lib_list := \ |
| 42 | igt_kms.c \ |
| 43 | igt_kms.h \ |
| 44 | igt_fb.c |
| 45 | -DANDROID_HAS_CAIRO=0 |
| 46 | endif |
| 47 | |
Arkadiusz Hiler | 60c5bb5 | 2017-04-14 14:06:37 +0200 | [diff] [blame] | 48 | LOCAL_SRC_FILES := $(filter-out %.h $(skip_lib_list),$(lib_source_list)) |
Tim Gore | 41cbe36 | 2014-05-12 13:39:00 +0100 | [diff] [blame] | 49 | |
Rafael Barbalho | 005c333 | 2014-01-31 14:57:38 +0000 | [diff] [blame] | 50 | include $(BUILD_STATIC_LIBRARY) |
| 51 | |
Derek Morton | 88c9a82 | 2015-05-26 15:19:17 +0100 | [diff] [blame] | 52 | include $(call first-makefiles-under, $(LOCAL_PATH)) |
| 53 | |