Skip to contentSkip to conversation

lib: Enable building unit tests on android

PATCH New Derek Morton 1 participant 1 message May 26, 2015 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: Enable building unit tests on android

Add a make file for android so the unit tests can be built. Enabled asserts for the library code so the unit test behaviour is correct.

---
 lib/Android.mk       |  4 +++-
 lib/tests/Android.mk | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 1 deletion(-)
 create mode 100644 lib/tests/Android.mk
lib/Android.mk +3 -1
index 1a7cf33..badec1e 100644
@@ -25,7 +25,7 @@ LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
 LOCAL_CFLAGS += -DHAVE_LIBDRM_ATOMIC_PRIMITIVES
 LOCAL_CFLAGS += -DHAVE_STRUCT_SYSINFO_TOTALRAM
 LOCAL_CFLAGS += -DANDROID -DHAVE_LINUX_KD_H
-LOCAL_CFLAGS += -std=gnu99
+LOCAL_CFLAGS += -std=gnu99 -UNDEBUG
 LOCAL_MODULE:= libintel_gpu_tools
 
 LOCAL_SHARED_LIBRARIES := libpciaccess  \
@@ -48,3 +48,5 @@ LOCAL_SRC_FILES := $(filter-out $(skip_lib_list),$(libintel_tools_la_SOURCES))
 
 include $(BUILD_STATIC_LIBRARY)
 
+include $(call first-makefiles-under, $(LOCAL_PATH))
+
lib/tests/Android.mk new file +41 -0

41 lines not on this page · raw message

Signature · 6 lines
1.9.1

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx