drm-shim: Let the driver choose to overwrite the first render node.
[mesa.git] / include / meson.build
1 # Copyright © 2017 Intel Corporation
2
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:
9
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
12
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
19 # SOFTWARE.
20
21 inc_include = include_directories('.')
22 inc_d3d9 = include_directories('D3D9')
23 inc_haikugl = include_directories('HaikuGL')
24
25 if not with_glvnd
26 if with_gles1 or with_gles2 or with_opengl or with_egl
27 install_headers('KHR/khrplatform.h', subdir : 'KHR')
28 endif
29
30 if with_gles1
31 install_headers(
32 'GLES/egl.h',
33 'GLES/gl.h',
34 'GLES/glext.h',
35 'GLES/glplatform.h',
36 subdir : 'GLES',
37 )
38 endif
39
40 if with_gles2
41 install_headers(
42 'GLES2/gl2.h',
43 'GLES2/gl2ext.h',
44 'GLES2/gl2platform.h',
45 subdir : 'GLES2',
46 )
47 install_headers(
48 'GLES3/gl3.h',
49 'GLES3/gl31.h',
50 'GLES3/gl32.h',
51 'GLES3/gl3ext.h',
52 'GLES3/gl3platform.h',
53 subdir : 'GLES3',
54 )
55 endif
56
57 if with_opengl
58 install_headers(
59 'GL/gl.h',
60 'GL/glcorearb.h',
61 'GL/glext.h',
62 subdir : 'GL',
63 )
64 endif
65
66 if with_glx != 'disabled'
67 install_headers(
68 'GL/glx.h',
69 'GL/glxext.h',
70 subdir : 'GL')
71 endif
72
73 if with_egl
74 install_headers(
75 'EGL/egl.h',
76 'EGL/eglext.h',
77 'EGL/eglplatform.h',
78 subdir : 'EGL',
79 )
80 endif
81 endif
82
83 # Non-upstream headers
84 if with_egl
85 install_headers(
86 'EGL/eglmesaext.h',
87 'EGL/eglextchromium.h',
88 subdir : 'EGL',
89 )
90 endif
91
92 if with_osmesa != 'none'
93 install_headers('GL/osmesa.h', subdir : 'GL')
94 endif
95
96 if with_dri
97 install_headers('GL/internal/dri_interface.h', subdir : 'GL/internal')
98 endif
99
100 if with_gallium_st_nine
101 install_headers(
102 'd3dadapter/d3dadapter9.h', 'd3dadapter/drm.h', 'd3dadapter/present.h',
103 subdir : 'd3dadapter',
104 )
105 endif
106
107 if with_platform_haiku
108 install_headers(
109 'HaikuGL/GLRenderer.h', 'HaikuGL/GLView.h', 'HaikuGL/OpenGLKit.h',
110 subdir : 'opengl',
111 )
112 endif
113
114 # Only install the headers if we are building a stand alone implementation and
115 # not an ICD enabled implementation
116 if with_gallium_opencl and not with_opencl_icd
117 install_headers(
118 'CL/cl.h',
119 'CL/cl.hpp',
120 'CL/cl2.hpp',
121 'CL/cl_d3d10.h',
122 'CL/cl_d3d11.h',
123 'CL/cl_dx9_media_sharing.h',
124 'CL/cl_dx9_media_sharing_intel.h',
125 'CL/cl_egl.h',
126 'CL/cl_ext.h',
127 'CL/cl_ext_intel.h',
128 'CL/cl_gl.h',
129 'CL/cl_gl_ext.h',
130 'CL/cl_icd.h',
131 'CL/cl_platform.h',
132 'CL/cl_va_api_media_sharing_intel.h',
133 'CL/cl_version.h',
134 'CL/opencl.h',
135 subdir: 'CL'
136 )
137 endif
138
139 if with_intel_vk
140 install_headers('vulkan/vulkan_intel.h', subdir : 'vulkan')
141 endif