st/mesa: Generate format_info.c in Android builds
authorTomasz Figa <tomasz.figa@gmail.com>
Sat, 27 Sep 2014 14:20:00 +0000 (16:20 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 3 Oct 2014 00:25:32 +0000 (01:25 +0100)
Current Android makefiles lack generation of format_info.c, which is
a dependency of main/format.c. This patch adds necessary code to
Android.gen.mk.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
src/mesa/Android.gen.mk

index c6280f5cbd4f430452afb4879b9921019ffb8373..c7b7f7edf3066e11a69d1a0e3655db893de05ce4 100644 (file)
@@ -115,3 +115,12 @@ GET_HASH_GEN := $(LOCAL_PATH)/main/get_hash_generator.py
 $(intermediates)/main/get_hash.h: $(glapi)/gl_and_es_API.xml \
                $(LOCAL_PATH)/main/get_hash_params.py $(GET_HASH_GEN)
        @$(MESA_PYTHON2) $(GET_HASH_GEN) -f $< > $@
+
+FORMAT_INFO := $(LOCAL_PATH)/main/format_info.py
+format_info_deps := \
+       $(LOCAL_PATH)/main/formats.csv \
+       $(LOCAL_PATH)/main/format_parser.py \
+       $(FORMAT_INFO)
+
+$(intermediates)/main/format_info.c: $(format_info_deps)
+       @$(MESA_PYTHON2) $(FORMAT_INFO) $< > $@