meson.build revision 01e04c3f
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
2101e04c3fSmrginc_drm_uapi = include_directories('drm-uapi')
2201e04c3fSmrginc_vulkan = include_directories('vulkan')
2301e04c3fSmrginc_d3d9 = include_directories('D3D9')
2401e04c3fSmrginc_gl_internal = include_directories('GL/internal')
2501e04c3fSmrginc_haikugl = include_directories('HaikuGL')
2601e04c3fSmrg
2701e04c3fSmrgif with_gles1
2801e04c3fSmrg  install_headers(
2901e04c3fSmrg    'GLES/egl.h', 'GLES/gl.h', 'GLES/glext.h', 'GLES/glplatform.h',
3001e04c3fSmrg    subdir : 'GLES',
3101e04c3fSmrg  )
3201e04c3fSmrgendif
3301e04c3fSmrg
3401e04c3fSmrgif with_gles2
3501e04c3fSmrg  install_headers(
3601e04c3fSmrg    'GLES2/gl2.h', 'GLES2/gl2ext.h', 'GLES2/gl2platform.h',
3701e04c3fSmrg    subdir : 'GLES2',
3801e04c3fSmrg  )
3901e04c3fSmrg  install_headers(
4001e04c3fSmrg    'GLES3/gl3.h', 'GLES3/gl31.h', 'GLES3/gl32.h', 'GLES3/gl3ext.h',
4101e04c3fSmrg    'GLES3/gl3platform.h',
4201e04c3fSmrg    subdir : 'GLES3',
4301e04c3fSmrg  )
4401e04c3fSmrgendif
4501e04c3fSmrg
4601e04c3fSmrgif with_gles1 or with_gles2 or with_opengl or with_egl
4701e04c3fSmrg  install_headers('KHR/khrplatform.h', subdir : 'KHR')
4801e04c3fSmrgendif
4901e04c3fSmrg
5001e04c3fSmrgif with_opengl
5101e04c3fSmrg  install_headers(
5201e04c3fSmrg    'GL/gl.h', 'GL/glext.h', 'GL/glcorearb.h', 'GL/gl_mangle.h',
5301e04c3fSmrg    subdir : 'GL',
5401e04c3fSmrg  )
5501e04c3fSmrgendif
5601e04c3fSmrg
5701e04c3fSmrgif with_glx != 'disabled'
5801e04c3fSmrg  install_headers('GL/glx.h', 'GL/glxext.h', 'GL/glx_mangle.h', subdir : 'GL')
5901e04c3fSmrgendif
6001e04c3fSmrg
6101e04c3fSmrgif with_osmesa != 'none'
6201e04c3fSmrg  install_headers('GL/osmesa.h', subdir : 'GL')
6301e04c3fSmrgendif
6401e04c3fSmrg
6501e04c3fSmrgif with_egl
6601e04c3fSmrg  install_headers(
6701e04c3fSmrg    'EGL/eglext.h', 'EGL/egl.h', 'EGL/eglextchromium.h', 'EGL/eglmesaext.h',
6801e04c3fSmrg    'EGL/eglplatform.h',
6901e04c3fSmrg    subdir : 'EGL',
7001e04c3fSmrg  )
7101e04c3fSmrgendif
7201e04c3fSmrg
7301e04c3fSmrgif with_dri
7401e04c3fSmrg  install_headers('GL/internal/dri_interface.h', subdir : 'GL/internal')
7501e04c3fSmrgendif
7601e04c3fSmrg
7701e04c3fSmrgif with_gallium_st_nine
7801e04c3fSmrg  install_headers(
7901e04c3fSmrg    'd3dadapter/d3dadapter9.h', 'd3dadapter/drm.h', 'd3dadapter/present.h',
8001e04c3fSmrg    subdir : 'd3dadapter',
8101e04c3fSmrg  )
8201e04c3fSmrgendif
8301e04c3fSmrg
8401e04c3fSmrgif with_platform_haiku
8501e04c3fSmrg  install_headers(
8601e04c3fSmrg    'HaikuGL/GLRenderer.h', 'HaikuGL/GLView.h', 'HaikuGL/OpenGLKit.h',
8701e04c3fSmrg    subdir : 'opengl',
8801e04c3fSmrg  )
8901e04c3fSmrgendif
9001e04c3fSmrg
9101e04c3fSmrg# Only install the headers if we are building a stand alone implementation and
9201e04c3fSmrg# not an ICD enabled implementation
9301e04c3fSmrgif with_gallium_opencl and not with_opencl_icd
9401e04c3fSmrg  install_headers(
9501e04c3fSmrg    'CL/cl.h',
9601e04c3fSmrg    'CL/cl.hpp',
9701e04c3fSmrg    'CL/cl_d3d10.h',
9801e04c3fSmrg    'CL/cl_d3d11.h',
9901e04c3fSmrg    'CL/cl_dx9_media_sharing.h',
10001e04c3fSmrg    'CL/cl_egl.h',
10101e04c3fSmrg    'CL/cl_ext.h',
10201e04c3fSmrg    'CL/cl_gl.h',
10301e04c3fSmrg    'CL/cl_gl_ext.h',
10401e04c3fSmrg    'CL/cl_platform.h',
10501e04c3fSmrg    'CL/opencl.h',
10601e04c3fSmrg    subdir: 'CL'
10701e04c3fSmrg  )
10801e04c3fSmrgendif
10901e04c3fSmrg
11001e04c3fSmrgif with_intel_vk
11101e04c3fSmrg  install_headers('vulkan/vulkan_intel.h', subdir : 'vulkan')
11201e04c3fSmrgendif
113