android: util: Move xxd.py to util
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 10 Oct 2020 12:48:22 +0000 (14:48 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Sun, 11 Oct 2020 21:22:34 +0000 (23:22 +0200)
Android porting of gen rules as per 22ffc05266c6 ("util: Move xxd.py to util")

Fixes the following building error:

ninja: error: 'external/mesa/src/compiler/glsl/xxd.py', needed by 'out/target/product/x86_64/gen/STATIC_LIBRARIES/libmesa_glsl_intermediates/glsl/float64_glsl.h', missing and no known rule to make it

Fixes: 22ffc05266c6 ("util: Move xxd.py to util")
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7087>

src/compiler/Android.glsl.gen.mk

index a32c4ca..f654c86 100644 (file)
@@ -102,6 +102,6 @@ $(intermediates)/glsl/ir_expression_operation_strings.h: $(LOCAL_PATH)/glsl/ir_e
        @mkdir -p $(dir $@)
        $(hide) $(MESA_PYTHON2) $< strings > $@
 
-$(intermediates)/glsl/float64_glsl.h: $(LOCAL_PATH)/glsl/xxd.py
+$(intermediates)/glsl/float64_glsl.h: $(MESA_TOP)/src/util/xxd.py
        @mkdir -p $(dir $@)
        $(hide) $(MESA_PYTHON2) $< $(MESA_TOP)/src/compiler/glsl/float64.glsl $@ -n float64_source > $@