Skip to content

Commit

Permalink
Install the GL/GLES/GLX/EGL header files.
Browse files Browse the repository at this point in the history
Since we've got pkg-config files for the various libraries, we should also
install the corresponding header files so that the include directory matches
up.
  • Loading branch information
kbrenneman committed Sep 4, 2019
1 parent e5a4edc commit ab9b5fc
Showing 1 changed file with 47 additions and 7 deletions.
54 changes: 47 additions & 7 deletions include/Makefile.am
Expand Up @@ -9,17 +9,57 @@ noinst_HEADERS = \
compiler.h \
glheader.h \
glvnd_list.h \
lkdhash.h \
EGL/egl.h \
EGL/eglext.h \
EGL/eglplatform.h \
lkdhash.h

GL_HEADER_FILES = \
GL/gl.h \
GL/glcorearb.h \
GL/glext.h \
GL/glx.h \
GL/glxext.h \
KHR/khrplatform.h

GLES_HEADER_FILES = \
GLES/egl.h \
GLES/gl.h \
GLES/glext.h \
GLES/glplatform.h \
KHR/khrplatform.h
GLES2/gl2ext.h \
GLES2/gl2.h \
GLES2/gl2platform.h \
GLES3/gl31.h \
GLES3/gl32.h \
GLES3/gl3.h \
GLES3/gl3platform.h

GLX_HEADER_FILES = \
GL/glx.h \
GL/glxext.h

EGL_HEADER_FILES = \
EGL/egl.h \
EGL/eglext.h \
EGL/eglplatform.h

if ENABLE_EGL
nobase_include_HEADERS += $(GL_HEADER_FILES)
else
noinst_HEADERS += $(GL_HEADER_FILES)
endif

if ENABLE_GLES
nobase_include_HEADERS += $(GLES_HEADER_FILES)
else
noinst_HEADERS += $(GLES_HEADER_FILES)
endif

if ENABLE_GLX
nobase_include_HEADERS += $(GLX_HEADER_FILES)
else
noinst_HEADERS += $(GLX_HEADER_FILES)
endif

if ENABLE_EGL
nobase_include_HEADERS += $(EGL_HEADER_FILES)
else
noinst_HEADERS += $(EGL_HEADER_FILES)
endif

0 comments on commit ab9b5fc

Please sign in to comment.