lib: Enable building unit tests on android
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.
Signed-off-by Derek Morton <[email protected]>
--- 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
@@ -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