-if with_gles2
- install_headers(
- 'GLES2/gl2.h', 'GLES2/gl2ext.h', 'GLES2/gl2platform.h',
- subdir : 'GLES2',
- )
- install_headers(
- 'GLES3/gl3.h', 'GLES3/gl31.h', 'GLES3/gl32.h', 'GLES3/gl3ext.h',
- 'GLES3/gl3platform.h',
- subdir : 'GLES3',
- )
-endif
+if not with_glvnd
+ if with_gles1 or with_gles2 or with_opengl or with_egl
+ install_headers('KHR/khrplatform.h', subdir : 'KHR')
+ endif