Fix khrplatform.h not installed if EGL is disabled.
authorEric Le Bihan <eric.le.bihan.dev@free.fr>
Mon, 12 Jun 2017 11:00:07 +0000 (12:00 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 14 Jun 2017 15:55:13 +0000 (16:55 +0100)
KHR/khrplatform.h is required by the EGL, GLES and VG headers, but is
only installed if Mesa3d is compiled with EGL support.

This patch installs this header file unconditionally.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77240
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/Makefile.am
src/mapi/Makefile.am

index 14fd77f14a968381d3a04ef3e5f0829bbb85a29d..81090387b582f65b6e3a98210496550a7c773423 100644 (file)
@@ -163,9 +163,6 @@ pkgconfigdir = $(libdir)/pkgconfig
 
 pkgconfig_DATA = main/egl.pc
 
-khrdir = $(includedir)/KHR
-khr_HEADERS = $(top_srcdir)/include/KHR/khrplatform.h
-
 egldir = $(includedir)/EGL
 egl_HEADERS = \
        $(top_srcdir)/include/EGL/eglext.h \
index e5477364ce53717d2ba6e9dd35feeb6f7431d7b5..9ff70a14fddaaf20a0606c22851f340362a60e44 100644 (file)
@@ -241,3 +241,6 @@ es2api/glapi_mapi_tmp.h: glapi/gen/gl_and_es_API.xml $(glapi_gen_mapi_deps)
                $(srcdir)/glapi/gen/gl_and_es_API.xml > $@
 
 include $(top_srcdir)/install-lib-links.mk
+
+khrdir = $(includedir)/KHR
+khr_HEADERS = $(top_srcdir)/include/KHR/khrplatform.h