<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 14 July 2017 at 13:59, Eric Engestrom <span dir="ltr"><<a href="mailto:eric.engestrom@imgtec.com" target="_blank">eric.engestrom@imgtec.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">khrplatform.h is only used by EGL and GLES; let's only install it when<br>
one of those is enabled.<br>
<br>
Cc: <a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.<wbr>org</a><br>
Signed-off-by: Eric Engestrom <<a href="mailto:eric.engestrom@imgtec.com">eric.engestrom@imgtec.com</a>><br></blockquote><div><br></div><div>This is clearly better than my patch, thanks.</div><div><br></div><div>If it helps:</div><div>Reviewed-by: Jussi Kukkonen <<a href="mailto:jussi.kukkonen@intel.com">jussi.kukkonen@intel.com</a>></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> | 3 +++<br>
src/mapi/Makefile.am | 2 ++<br>
2 files changed, 5 insertions(+)<br>
<br>
diff --git a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a> b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
index 61d98e28e0..46fcd8f3fe 100644<br>
--- a/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
+++ b/<a href="http://configure.ac" rel="noreferrer" target="_blank">configure.ac</a><br>
@@ -1291,6 +1291,9 @@ AM_CONDITIONAL(HAVE_OPENGL_<wbr>ES2, test "x$enable_gles2" = xyes)<br>
AM_CONDITIONAL(NEED_OPENGL_<wbr>COMMON, test "x$enable_opengl" = xyes -o \<br>
"x$enable_gles1" = xyes -o \<br>
"x$enable_gles2" = xyes)<br>
+AM_CONDITIONAL(NEED_<wbr>KHRPLATFORM, test "x$enable_egl" = xyes -o \<br>
+ "x$enable_gles1" = xyes -o \<br>
+ "x$enable_gles2" = xyes)<br>
<br>
# Validate GLX options<br>
if test "x$enable_glx" = xyes; then<br>
diff --git a/src/mapi/Makefile.am b/src/mapi/Makefile.am<br>
index 9ff70a14fd..83e32d2185 100644<br>
--- a/src/mapi/Makefile.am<br>
+++ b/src/mapi/Makefile.am<br>
@@ -242,5 +242,7 @@ es2api/glapi_mapi_tmp.h: glapi/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps)<br>
<br>
include $(top_srcdir)/<a href="http://install-lib-links.mk" rel="noreferrer" target="_blank">install-lib-<wbr>links.mk</a><br>
<br>
+if NEED_KHRPLATFORM<br>
khrdir = $(includedir)/KHR<br>
khr_HEADERS = $(top_srcdir)/include/KHR/<wbr>khrplatform.h<br>
+endif<br>
<span class="HOEnZb"><font color="#888888">--<br>
Cheers,<br>
Eric<br>
<br>
</font></span></blockquote></div><br></div></div>