make sure nir_opcodes.h is in LOCAL_GENERATED_SOURCES otherwise
build fails with:

"In file included from
external/mesa/src/mesa/state_tracker/st_glsl_to_nir.cpp:44:
external/mesa/src/compiler/nir/nir.h:42:10: fatal error: 'nir_opcodes.h' file 
not found"

Signed-off-by: Tapani Pälli <tapani.pa...@intel.com>
---
 src/mesa/Android.libmesa_st_mesa.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/Android.libmesa_st_mesa.mk 
b/src/mesa/Android.libmesa_st_mesa.mk
index 785b6de..e70f51e 100644
--- a/src/mesa/Android.libmesa_st_mesa.mk
+++ b/src/mesa/Android.libmesa_st_mesa.mk
@@ -63,6 +63,8 @@ LOCAL_C_INCLUDES := \
 LOCAL_WHOLE_STATIC_LIBRARIES += \
        libmesa_program
 
+LOCAL_GENERATED_SOURCES := $(MESA_GEN_NIR_H)
+
 LOCAL_STATIC_LIBRARIES += libmesa_nir
 
 include $(LOCAL_PATH)/Android.gen.mk
-- 
2.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to