summaryrefslogtreecommitdiffstats
path: root/src/glsl/Android.gen.mk
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2015-04-22 14:51:31 +0100
committerEmil Velikov <[email protected]>2015-04-22 14:51:31 +0100
commitc734261dcf91fef6f3f55096835608a600bddec4 (patch)
tree37a8d192e4f20c4edd972a1a084fcac9de76fc0f /src/glsl/Android.gen.mk
parent06619749a11651a50e353168c7c793082820585d (diff)
android: nir: add build rules for nir_builder_opcodes.h
Missed out with commit 2a135c470e3(nir: Add an ALU op builder kind of like ir_builder.h) Signed-off-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/glsl/Android.gen.mk')
-rw-r--r--src/glsl/Android.gen.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/glsl/Android.gen.mk b/src/glsl/Android.gen.mk
index e161bd8e885..137a97fa58a 100644
--- a/src/glsl/Android.gen.mk
+++ b/src/glsl/Android.gen.mk
@@ -34,6 +34,7 @@ sources := \
glsl_parser.cpp \
glcpp/glcpp-lex.c \
glcpp/glcpp-parse.c \
+ nir/nir_builder_opcodes.h \
nir/nir_constant_expressions.c \
nir/nir_opcodes.c \
nir/nir_opcodes.h \
@@ -90,6 +91,15 @@ $(intermediates)/glcpp/glcpp-lex.c: $(LOCAL_PATH)/glcpp/glcpp-lex.l
$(intermediates)/glcpp/glcpp-parse.c: $(LOCAL_PATH)/glcpp/glcpp-parse.y
$(call glsl_local-y-to-c-and-h)
+nir_builder_opcodes_gen := $(LOCAL_PATH)/nir/nir_builder_opcodes_h.py
+nir_builder_opcodes_deps := \
+ $(LOCAL_PATH)/nir/nir_opcodes.py \
+ $(LOCAL_PATH)/nir/nir_builder_opcodes_h.py
+
+$(intermediates)/nir/nir_builder_opcodes.h: $(nir_builder_opcodes_deps)
+ @mkdir -p $(dir $@)
+ $(hide) $(MESA_PYTHON2) $(nir_builder_opcodes_gen) $< > $@
+
nir_constant_expressions_gen := $(LOCAL_PATH)/nir/nir_constant_expressions.py
nir_constant_expressions_deps := \
$(LOCAL_PATH)/nir/nir_opcodes.py \