[Mesa-dev] [PATCH] mapi: fix out-of-tree build dependencies

Nicolai Hähnle nhaehnle at gmail.com
Tue Oct 11 13:46:05 UTC 2016


From: Nicolai Hähnle <nicolai.haehnle at amd.com>

Pick up changes to API XML files also when Mesa is built outside the source
tree.
---
 src/mapi/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mapi/Makefile.am b/src/mapi/Makefile.am
index d6bf5d8..46afe3b 100644
--- a/src/mapi/Makefile.am
+++ b/src/mapi/Makefile.am
@@ -49,22 +49,22 @@ AM_CPPFLAGS =							\
 	-I$(top_srcdir)/src/mapi				\
 	-I$(top_builddir)/src/mapi
 
 include Makefile.sources
 
 MKDIR_GEN = $(AM_V_at)$(MKDIR_P) $(@D)
 PYTHON_GEN = $(AM_V_GEN)$(PYTHON2) $(PYTHON_FLAGS)
 
 glapi_gen_mapi_deps := \
 	mapi_abi.py \
-	$(wildcard glapi/gen/*.xml) \
-	$(wildcard glapi/gen/*.py)
+	$(wildcard $(top_srcdir)/src/mapi/glapi/gen/*.xml) \
+	$(wildcard $(top_srcdir)/src/mapi/glapi/gen/*.py)
 
 if HAVE_SHARED_GLAPI
 BUILT_SOURCES += shared-glapi/glapi_mapi_tmp.h
 
 lib_LTLIBRARIES += shared-glapi/libglapi.la
 shared_glapi_libglapi_la_SOURCES = $(MAPI_GLAPI_FILES) shared-glapi/glapi_mapi_tmp.h
 shared_glapi_libglapi_la_CPPFLAGS = \
 	$(AM_CPPFLAGS) \
 	-DMAPI_MODE_GLAPI \
 	-DMAPI_ABI_HEADER=\"shared-glapi/glapi_mapi_tmp.h\"
-- 
2.7.4



More information about the mesa-dev mailing list