1b8e80941Smrg# Copyright © 2017 Intel Corporation 2b8e80941Smrg 3b8e80941Smrg# Permission is hereby granted, free of charge, to any person obtaining a copy 4b8e80941Smrg# of this software and associated documentation files (the "Software"), to deal 5b8e80941Smrg# in the Software without restriction, including without limitation the rights 6b8e80941Smrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7b8e80941Smrg# copies of the Software, and to permit persons to whom the Software is 8b8e80941Smrg# furnished to do so, subject to the following conditions: 9b8e80941Smrg 10b8e80941Smrg# The above copyright notice and this permission notice shall be included in 11b8e80941Smrg# all copies or substantial portions of the Software. 12b8e80941Smrg 13b8e80941Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14b8e80941Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15b8e80941Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16b8e80941Smrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17b8e80941Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18b8e80941Smrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 19b8e80941Smrg# SOFTWARE. 20b8e80941Smrg 21b8e80941Smrginc_include = include_directories('.') 22b8e80941Smrginc_d3d9 = include_directories('D3D9') 23b8e80941Smrginc_haikugl = include_directories('HaikuGL') 24b8e80941Smrg 25b8e80941Smrgif with_gles1 26b8e80941Smrg install_headers( 27b8e80941Smrg 'GLES/egl.h', 'GLES/gl.h', 'GLES/glext.h', 'GLES/glplatform.h', 28b8e80941Smrg subdir : 'GLES', 29b8e80941Smrg ) 30b8e80941Smrgendif 31b8e80941Smrg 32b8e80941Smrgif with_gles2 33b8e80941Smrg install_headers( 34b8e80941Smrg 'GLES2/gl2.h', 'GLES2/gl2ext.h', 'GLES2/gl2platform.h', 35b8e80941Smrg subdir : 'GLES2', 36b8e80941Smrg ) 37b8e80941Smrg install_headers( 38b8e80941Smrg 'GLES3/gl3.h', 'GLES3/gl31.h', 'GLES3/gl32.h', 'GLES3/gl3ext.h', 39b8e80941Smrg 'GLES3/gl3platform.h', 40b8e80941Smrg subdir : 'GLES3', 41b8e80941Smrg ) 42b8e80941Smrgendif 43b8e80941Smrg 44b8e80941Smrgif with_gles1 or with_gles2 or with_opengl or with_egl 45b8e80941Smrg install_headers('KHR/khrplatform.h', subdir : 'KHR') 46b8e80941Smrgendif 47b8e80941Smrg 48b8e80941Smrgif with_opengl 49b8e80941Smrg install_headers( 50b8e80941Smrg 'GL/gl.h', 'GL/glext.h', 'GL/glcorearb.h', 'GL/gl_mangle.h', 51b8e80941Smrg subdir : 'GL', 52b8e80941Smrg ) 53b8e80941Smrgendif 54b8e80941Smrg 55b8e80941Smrgif with_glx != 'disabled' 56b8e80941Smrg install_headers('GL/glx.h', 'GL/glxext.h', 'GL/glx_mangle.h', subdir : 'GL') 57b8e80941Smrgendif 58b8e80941Smrg 59b8e80941Smrgif with_osmesa != 'none' 60b8e80941Smrg install_headers('GL/osmesa.h', subdir : 'GL') 61b8e80941Smrgendif 62b8e80941Smrg 63b8e80941Smrgif with_egl 64b8e80941Smrg install_headers( 65b8e80941Smrg 'EGL/eglext.h', 'EGL/egl.h', 'EGL/eglextchromium.h', 'EGL/eglmesaext.h', 66b8e80941Smrg 'EGL/eglplatform.h', 67b8e80941Smrg subdir : 'EGL', 68b8e80941Smrg ) 69b8e80941Smrgendif 70b8e80941Smrg 71b8e80941Smrgif with_dri 72b8e80941Smrg install_headers('GL/internal/dri_interface.h', subdir : 'GL/internal') 73b8e80941Smrgendif 74b8e80941Smrg 75b8e80941Smrgif with_gallium_st_nine 76b8e80941Smrg install_headers( 77b8e80941Smrg 'd3dadapter/d3dadapter9.h', 'd3dadapter/drm.h', 'd3dadapter/present.h', 78b8e80941Smrg subdir : 'd3dadapter', 79b8e80941Smrg ) 80b8e80941Smrgendif 81b8e80941Smrg 82b8e80941Smrgif with_platform_haiku 83b8e80941Smrg install_headers( 84b8e80941Smrg 'HaikuGL/GLRenderer.h', 'HaikuGL/GLView.h', 'HaikuGL/OpenGLKit.h', 85b8e80941Smrg subdir : 'opengl', 86b8e80941Smrg ) 87b8e80941Smrgendif 88b8e80941Smrg 89b8e80941Smrg# Only install the headers if we are building a stand alone implementation and 90b8e80941Smrg# not an ICD enabled implementation 91b8e80941Smrgif with_gallium_opencl and not with_opencl_icd 92b8e80941Smrg install_headers( 93b8e80941Smrg 'CL/cl.h', 94b8e80941Smrg 'CL/cl.hpp', 95b8e80941Smrg 'CL/cl2.hpp', 96b8e80941Smrg 'CL/cl_d3d10.h', 97b8e80941Smrg 'CL/cl_d3d11.h', 98b8e80941Smrg 'CL/cl_dx9_media_sharing.h', 99b8e80941Smrg 'CL/cl_dx9_media_sharing_intel.h', 100b8e80941Smrg 'CL/cl_egl.h', 101b8e80941Smrg 'CL/cl_ext.h', 102b8e80941Smrg 'CL/cl_ext_intel.h', 103b8e80941Smrg 'CL/cl_gl.h', 104b8e80941Smrg 'CL/cl_gl_ext.h', 105b8e80941Smrg 'CL/cl_platform.h', 106b8e80941Smrg 'CL/cl_va_api_media_sharing_intel.h', 107b8e80941Smrg 'CL/cl_version.h', 108b8e80941Smrg 'CL/opencl.h', 109b8e80941Smrg subdir: 'CL' 110b8e80941Smrg ) 111b8e80941Smrgendif 112b8e80941Smrg 113b8e80941Smrgif with_intel_vk 114b8e80941Smrg install_headers('vulkan/vulkan_intel.h', subdir : 'vulkan') 115b8e80941Smrgendif 116