@@ -57,6 +57,7 @@ SUBDIRS := \
nouveau \
radeon \
libkms \
+ tests/util \
tests/modetest
mkfiles := $(patsubst %,$(LIBDRM_TOP)/%/Android.mk,$(SUBDIRS))
@@ -1,3 +1,4 @@
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/include/libdrm)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/include/freedreno)
$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/SHARED_LIBRARIES/libdrm_*intermediates)
+$(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libdrm_*intermediates)
@@ -7,8 +7,11 @@ LOCAL_SRC_FILES := $(MODETEST_FILES)
LOCAL_MODULE := modetest
-LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/libdrm
+LOCAL_C_INCLUDES += \
+ $(TARGET_OUT_HEADERS)/libdrm \
+ $(LIBDRM_TOP)/tests
LOCAL_SHARED_LIBRARIES := libdrm
+LOCAL_STATIC_LIBRARIES := libdrm_util
include $(BUILD_EXECUTABLE)
new file mode 100644
@@ -0,0 +1,13 @@
+LOCAL_PATH := $(call my-dir)
+
+include $(CLEAR_VARS)
+include $(LOCAL_PATH)/Makefile.sources
+
+LOCAL_SRC_FILES := $(UTIL_FILES)
+
+LOCAL_MODULE := libdrm_util
+
+LOCAL_C_INCLUDES += \
+ $(TARGET_OUT_HEADERS)/libdrm
+
+include $(BUILD_STATIC_LIBRARY)
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> --- Android.mk | 1 + CleanSpec.mk | 1 + tests/modetest/Android.mk | 5 ++++- tests/util/Android.mk | 13 +++++++++++++ 4 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 tests/util/Android.mk