1 # Copyright © 2017 Intel Corporation
3 # Permission is hereby granted, free of charge, to any person obtaining a copy
4 # of this software and associated documentation files (the "Software"), to deal
5 # in the Software without restriction, including without limitation the rights
6 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 # copies of the Software, and to permit persons to whom the Software is
8 # furnished to do so, subject to the following conditions:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
13 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 inc_include = [include_directories('.')]
22 inc_d3d9 = include_directories('D3D9')
24 # Most things assume that Android headers are in the default include
25 # path when compiling for Android so add the stub headers to
26 # inc_include when using the stub.
28 inc_include += [include_directories('android_stub')]
32 if with_gles1 or with_gles2 or with_opengl or with_egl
33 install_headers('KHR/khrplatform.h', subdir : 'KHR')
50 'GLES2/gl2platform.h',
58 'GLES3/gl3platform.h',
72 if with_glx != 'disabled'
89 # Non-upstream headers
99 install_headers('GL/osmesa.h', subdir : 'GL')
103 install_headers('GL/internal/dri_interface.h', subdir : 'GL/internal')
106 if with_gallium_st_nine
108 'd3dadapter/d3dadapter9.h', 'd3dadapter/drm.h', 'd3dadapter/present.h',
109 subdir : 'd3dadapter',
113 opencl_headers = files(
119 'CL/cl_dx9_media_sharing.h',
120 'CL/cl_dx9_media_sharing_intel.h',
128 'CL/cl_va_api_media_sharing_intel.h',
133 # Only install the headers if we are building a stand alone implementation and
134 # not an ICD enabled implementation
135 if with_gallium_opencl and not with_opencl_icd