summaryrefslogtreecommitdiff
path: root/lib/Android.mk
diff options
context:
space:
mode:
authorDerek Morton <derek.j.morton@intel.com>2015-05-26 15:19:17 +0100
committerThomas Wood <thomas.wood@intel.com>2015-05-27 16:17:05 +0100
commit88c9a82318bae6bf97e55bf1a28018708aca2200 (patch)
treee5e2f585d91f68004e27338083907dbf2e3b7887 /lib/Android.mk
parentf2a5896bdddc595489a61cb0e0051de8d43a2591 (diff)
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 <derek.j.morton@intel.com> Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/Android.mk')
-rw-r--r--lib/Android.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Android.mk b/lib/Android.mk
index 1a7cf338..badec1e3 100644
--- a/lib/Android.mk
+++ b/lib/Android.mk
@@ -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))
+