[Mesa-dev] [PATCH] android: fix a build issue with libmesa_st_mesa_32

Tapani Pälli tapani.palli at intel.com
Mon Aug 29 08:52:30 UTC 2016


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.palli at 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



More information about the mesa-dev mailing list