ir/gp/lower.c \
ir/gp/nir.c \
ir/gp/node.c \
- ir/gp/physical_regalloc.c \
+ ir/gp/regalloc.c \
ir/gp/reduce_scheduler.c \
ir/gp/scheduler.c \
- ir/gp/value_regalloc.c \
ir/lima_ir.h \
ir/lima_nir_lower_uniform_to_scalar.c \
ir/pp/codegen.c \
LOCAL_SHARED_LIBRARIES := libdrm
-LOCAL_STATIC_LIBRARIES := libmesa_nir
+LOCAL_STATIC_LIBRARIES := \
+ libmesa_nir \
+ libpanfrost_shared \
+
+LOCAL_MODULE_CLASS := STATIC_LIBRARIES
+
+intermediates := $(call local-generated-sources-dir)
+
+$(intermediates)/lima_nir_algebraic.c: $(LOCAL_PATH)/ir/lima_nir_algebraic.py
+ @echo "target Generated: $(PRIVATE_MODULE) <= $(notdir $(@))"
+ @mkdir -p $(dir $@)
+ $(hide) $(MESA_PYTHON2) $< -p $(MESA_TOP)/src/compiler/nir/ > $@
+
+LOCAL_GENERATED_SOURCES := \
+ $(intermediates)/lima_nir_algebraic.c \
include $(GALLIUM_COMMON_MK)
include $(BUILD_STATIC_LIBRARY)