summaryrefslogtreecommitdiff
path: root/lib/mesa/src/gallium/drivers/virgl/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mesa/src/gallium/drivers/virgl/Android.mk')
-rw-r--r--lib/mesa/src/gallium/drivers/virgl/Android.mk17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/drivers/virgl/Android.mk b/lib/mesa/src/gallium/drivers/virgl/Android.mk
index a64828e90..c06c16558 100644
--- a/lib/mesa/src/gallium/drivers/virgl/Android.mk
+++ b/lib/mesa/src/gallium/drivers/virgl/Android.mk
@@ -30,7 +30,22 @@ LOCAL_SRC_FILES := \
LOCAL_MODULE := libmesa_pipe_virgl
-LOCAL_C_INCLUDES := $(MESA_TOP)/src/virtio
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+intermediates := $(call local-generated-sources-dir)
+LOCAL_GENERATED_SOURCES := $(intermediates)/virgl/virgl_driinfo.h
+
+GEN_DRIINFO_INPUTS := \
+ $(MESA_TOP)/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h \
+ $(LOCAL_PATH)/virgl_driinfo.h.in
+
+MERGE_DRIINFO := $(MESA_TOP)/src/util/merge_driinfo.py
+
+$(intermediates)/virgl/virgl_driinfo.h: $(MERGE_DRIINFO) $(GEN_DRIINFO_INPUTS)
+ @mkdir -p $(dir $@)
+ @echo "Gen Header: $(PRIVATE_MODULE) <= $(notdir $(@))"
+ $(hide) $(MESA_PYTHON2) $(MERGE_DRIINFO) $(GEN_DRIINFO_INPUTS) > $@ || ($(RM) $@; false)
+
+LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates)
include $(GALLIUM_COMMON_MK)
include $(BUILD_STATIC_LIBRARY)