summaryrefslogtreecommitdiff
path: root/lib/Android.mk
diff options
context:
space:
mode:
authorRafael Barbalho <rafael.barbalho@intel.com>2014-01-31 14:57:38 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2014-02-04 10:52:09 +0000
commit005c333e5c3ba9285e5d918877e9dd992fd2a4b9 (patch)
tree943877ee88df2a450def0ed36e8032bb56db6fca /lib/Android.mk
parent4c79264b3cda6ef548f4125ebf49d470ab968ede (diff)
android: Add makefile for the lib directory
The lib directory should really be compiled as a static library on its own and be re-used by any tests or tools that require it. Signed-off-by: Rafael Barbalho <rafael.barbalho@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'lib/Android.mk')
-rw-r--r--lib/Android.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/Android.mk b/lib/Android.mk
new file mode 100644
index 00000000..23c7d424
--- /dev/null
+++ b/lib/Android.mk
@@ -0,0 +1,31 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(LOCAL_PATH)/Makefile.sources
+
+skip_lib_list := \
+ igt_kms.c \
+ igt_kms.h
+
+lib_list := $(filter-out $(skip_lib_list),$(libintel_tools_la_SOURCES))
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(lib_list)
+
+LOCAL_C_INCLUDES += \
+ $(LOCAL_PATH)/..
+
+LOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)
+
+LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES
+LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM
+LOCAL_CFLAGS += -DANDROID
+LOCAL_CFLAGS += -std=c99
+LOCAL_MODULE:= libintel_gpu_tools
+
+LOCAL_SHARED_LIBRARIES := libpciaccess \
+ libdrm \
+ libdrm_intel
+
+include $(BUILD_STATIC_LIBRARY)
+