meson.build revision 53c12917
101e04c3fSmrg# Copyright © 2017 Intel Corporation
201e04c3fSmrg
301e04c3fSmrg# Permission is hereby granted, free of charge, to any person obtaining a copy
401e04c3fSmrg# of this software and associated documentation files (the "Software"), to deal
501e04c3fSmrg# in the Software without restriction, including without limitation the rights
601e04c3fSmrg# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
701e04c3fSmrg# copies of the Software, and to permit persons to whom the Software is
801e04c3fSmrg# furnished to do so, subject to the following conditions:
901e04c3fSmrg
1001e04c3fSmrg# The above copyright notice and this permission notice shall be included in
1101e04c3fSmrg# all copies or substantial portions of the Software.
1201e04c3fSmrg
1301e04c3fSmrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1401e04c3fSmrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1501e04c3fSmrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1601e04c3fSmrg# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1701e04c3fSmrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1801e04c3fSmrg# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1901e04c3fSmrg# SOFTWARE.
2001e04c3fSmrg
2153c12917Smayainc_include = include_directories('.')
2201e04c3fSmrginc_d3d9 = include_directories('D3D9')
2301e04c3fSmrginc_haikugl = include_directories('HaikuGL')
2401e04c3fSmrg
2501e04c3fSmrgif with_gles1
2601e04c3fSmrg  install_headers(
2701e04c3fSmrg    'GLES/egl.h', 'GLES/gl.h', 'GLES/glext.h', 'GLES/glplatform.h',
2801e04c3fSmrg    subdir : 'GLES',
2901e04c3fSmrg  )
3001e04c3fSmrgendif
3101e04c3fSmrg
3201e04c3fSmrgif with_gles2
3301e04c3fSmrg  install_headers(
3401e04c3fSmrg    'GLES2/gl2.h', 'GLES2/gl2ext.h', 'GLES2/gl2platform.h',
3501e04c3fSmrg    subdir : 'GLES2',
3601e04c3fSmrg  )
3701e04c3fSmrg  install_headers(
3801e04c3fSmrg    'GLES3/gl3.h', 'GLES3/gl31.h', 'GLES3/gl32.h', 'GLES3/gl3ext.h',
3901e04c3fSmrg    'GLES3/gl3platform.h',
4001e04c3fSmrg    subdir : 'GLES3',
4101e04c3fSmrg  )
4201e04c3fSmrgendif
4301e04c3fSmrg
4401e04c3fSmrgif with_gles1 or with_gles2 or with_opengl or with_egl
4501e04c3fSmrg  install_headers('KHR/khrplatform.h', subdir : 'KHR')
4601e04c3fSmrgendif
4701e04c3fSmrg
4801e04c3fSmrgif with_opengl
4901e04c3fSmrg  install_headers(
5001e04c3fSmrg    'GL/gl.h', 'GL/glext.h', 'GL/glcorearb.h', 'GL/gl_mangle.h',
5101e04c3fSmrg    subdir : 'GL',
5201e04c3fSmrg  )
5301e04c3fSmrgendif
5401e04c3fSmrg
5501e04c3fSmrgif with_glx != 'disabled'
5601e04c3fSmrg  install_headers('GL/glx.h', 'GL/glxext.h', 'GL/glx_mangle.h', subdir : 'GL')
5701e04c3fSmrgendif
5801e04c3fSmrg
5901e04c3fSmrgif with_osmesa != 'none'
6001e04c3fSmrg  install_headers('GL/osmesa.h', subdir : 'GL')
6101e04c3fSmrgendif
6201e04c3fSmrg
6301e04c3fSmrgif with_egl
6401e04c3fSmrg  install_headers(
6501e04c3fSmrg    'EGL/eglext.h', 'EGL/egl.h', 'EGL/eglextchromium.h', 'EGL/eglmesaext.h',
6601e04c3fSmrg    'EGL/eglplatform.h',
6701e04c3fSmrg    subdir : 'EGL',
6801e04c3fSmrg  )
6901e04c3fSmrgendif
7001e04c3fSmrg
7101e04c3fSmrgif with_dri
7201e04c3fSmrg  install_headers('GL/internal/dri_interface.h', subdir : 'GL/internal')
7301e04c3fSmrgendif
7401e04c3fSmrg
7501e04c3fSmrgif with_gallium_st_nine
7601e04c3fSmrg  install_headers(
7701e04c3fSmrg    'd3dadapter/d3dadapter9.h', 'd3dadapter/drm.h', 'd3dadapter/present.h',
7801e04c3fSmrg    subdir : 'd3dadapter',
7901e04c3fSmrg  )
8001e04c3fSmrgendif
8101e04c3fSmrg
8201e04c3fSmrgif with_platform_haiku
8301e04c3fSmrg  install_headers(
8401e04c3fSmrg    'HaikuGL/GLRenderer.h', 'HaikuGL/GLView.h', 'HaikuGL/OpenGLKit.h',
8501e04c3fSmrg    subdir : 'opengl',
8601e04c3fSmrg  )
8701e04c3fSmrgendif
8801e04c3fSmrg
8901e04c3fSmrg# Only install the headers if we are building a stand alone implementation and
9001e04c3fSmrg# not an ICD enabled implementation
9101e04c3fSmrgif with_gallium_opencl and not with_opencl_icd
9201e04c3fSmrg  install_headers(
9301e04c3fSmrg    'CL/cl.h',
9401e04c3fSmrg    'CL/cl.hpp',
9553c12917Smaya    'CL/cl2.hpp',
9601e04c3fSmrg    'CL/cl_d3d10.h',
9701e04c3fSmrg    'CL/cl_d3d11.h',
9801e04c3fSmrg    'CL/cl_dx9_media_sharing.h',
9953c12917Smaya    'CL/cl_dx9_media_sharing_intel.h',
10001e04c3fSmrg    'CL/cl_egl.h',
10101e04c3fSmrg    'CL/cl_ext.h',
10253c12917Smaya    'CL/cl_ext_intel.h',
10301e04c3fSmrg    'CL/cl_gl.h',
10401e04c3fSmrg    'CL/cl_gl_ext.h',
10501e04c3fSmrg    'CL/cl_platform.h',
10653c12917Smaya    'CL/cl_va_api_media_sharing_intel.h',
10753c12917Smaya    'CL/cl_version.h',
10801e04c3fSmrg    'CL/opencl.h',
10901e04c3fSmrg    subdir: 'CL'
11001e04c3fSmrg  )
11101e04c3fSmrgendif
11201e04c3fSmrg
11301e04c3fSmrgif with_intel_vk
11401e04c3fSmrg  install_headers('vulkan/vulkan_intel.h', subdir : 'vulkan')
11501e04c3fSmrgendif
116