894378985fdffbd90c9be3064702c9f988c39880
[mesa.git] / meson_options.txt
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 option(
22 'platforms',
23 type : 'string',
24 value : 'auto',
25 description : 'comma separated list of window systems to support. If this is set to auto all platforms applicable to the OS will be enabled.'
26 )
27 option(
28 'dri3',
29 type : 'combo',
30 value : 'auto',
31 choices : ['auto', 'true', 'false'],
32 description : 'enable support for dri3'
33 )
34 option(
35 'dri-drivers',
36 type : 'string',
37 value : 'auto',
38 description : 'comma separated list of dri drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
39 )
40 option(
41 'dri-drivers-path',
42 type : 'string',
43 value : '',
44 description : 'Location of dri drivers. Default: $libdir/dri.'
45 )
46 option(
47 'gallium-drivers',
48 type : 'string',
49 value : 'auto',
50 description : 'comma separated list of gallium drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
51 )
52 option(
53 'gallium-extra-hud',
54 type : 'boolean',
55 value : false,
56 description : 'Enable HUD block/NIC I/O HUD status support',
57 )
58 option(
59 'gallium-vdpau',
60 type : 'combo',
61 value : 'auto',
62 choices : ['auto', 'true', 'false'],
63 description : 'enable gallium vdpau state tracker.',
64 )
65 option(
66 'vdpau-libs-path',
67 type : 'string',
68 value : '',
69 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
70 )
71 option(
72 'gallium-xvmc',
73 type : 'combo',
74 value : 'auto',
75 choices : ['auto', 'true', 'false'],
76 description : 'enable gallium xvmc state tracker.',
77 )
78 option(
79 'xvmc-libs-path',
80 type : 'string',
81 value : '',
82 description : 'path to put xvmc libraries. defaults to $libdir.'
83 )
84 option(
85 'gallium-omx',
86 type : 'combo',
87 value : 'auto',
88 choices : ['auto', 'true', 'false'],
89 description : 'enable gallium omx bellagio state tracker.',
90 )
91 option(
92 'omx-libs-path',
93 type : 'string',
94 value : '',
95 description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
96 )
97 option(
98 'gallium-va',
99 type : 'combo',
100 value : 'auto',
101 choices : ['auto', 'true', 'false'],
102 description : 'enable gallium va state tracker.',
103 )
104 option(
105 'va-libs-path',
106 type : 'string',
107 value : '',
108 description : 'path to put va libraries. defaults to $libdir/dri.'
109 )
110 option(
111 'gallium-xa',
112 type : 'combo',
113 value : 'auto',
114 choices : ['auto', 'true', 'false'],
115 description : 'enable gallium xa state tracker.',
116 )
117 option(
118 'gallium-nine',
119 type : 'boolean',
120 value : false,
121 description : 'build gallium "nine" Direct3D 9.x state tracker.',
122 )
123 option(
124 'gallium-opencl',
125 type : 'combo',
126 choices : ['icd', 'standalone', 'disabled'],
127 value : 'disabled',
128 description : 'build gallium "clover" OpenCL state tracker.',
129 )
130 option(
131 'd3d-drivers-path',
132 type : 'string',
133 value : '',
134 description : 'Location of D3D drivers. Default: $libdir/d3d',
135 )
136 option(
137 'vulkan-drivers',
138 type : 'string',
139 value : 'auto',
140 description : 'comma separated list of vulkan drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
141 )
142 option(
143 'shader-cache',
144 type : 'boolean',
145 value : true,
146 description : 'Build with on-disk shader cache support'
147 )
148 option(
149 'vulkan-icd-dir',
150 type : 'string',
151 value : '',
152 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
153 )
154 option(
155 'shared-glapi',
156 type : 'boolean',
157 value : true,
158 description : 'Whether to build a shared or static glapi'
159 )
160 option(
161 'gles1',
162 type : 'boolean',
163 value : true,
164 description : 'Build support for OpenGL ES 1.x'
165 )
166 option(
167 'gles2',
168 type : 'boolean',
169 value : true,
170 description : 'Build support for OpenGL ES 2.x and 3.x'
171 )
172 option(
173 'opengl',
174 type : 'boolean',
175 value : true,
176 description : 'Build support for OpenGL (all versions)'
177 )
178 option(
179 'gbm',
180 type : 'combo',
181 value : 'auto',
182 choices : ['auto', 'true', 'false'],
183 description : 'Build support for gbm platform'
184 )
185 option(
186 'glx',
187 type : 'combo',
188 value : 'auto',
189 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
190 description : 'Build support for GLX platform'
191 )
192 option(
193 'egl',
194 type : 'combo',
195 value : 'auto',
196 choices : ['auto', 'true', 'false'],
197 description : 'Build support for EGL platform'
198 )
199 option(
200 'glvnd',
201 type : 'boolean',
202 value : false,
203 description : 'Enable GLVND support.'
204 )
205 option(
206 'asm',
207 type : 'boolean',
208 value : true,
209 description : 'Build assembly code if possible'
210 )
211 option(
212 'llvm',
213 type : 'combo',
214 value : 'auto',
215 choices : ['auto', 'true', 'false'],
216 description : 'Build with LLVM support.'
217 )
218 option(
219 'valgrind',
220 type : 'combo',
221 value : 'auto',
222 choices : ['auto', 'true', 'false'],
223 description : 'Build with valgrind support'
224 )
225 option(
226 'libunwind',
227 type : 'combo',
228 value : 'auto',
229 choices : ['auto', 'true', 'false'],
230 description : 'Use libunwind for stack-traces'
231 )
232 option(
233 'lmsensors',
234 type : 'combo',
235 value : 'auto',
236 choices : ['auto', 'true', 'false'],
237 description : 'Enable HUD lmsensors support.'
238 )
239 option(
240 'build-tests',
241 type : 'boolean',
242 value : false,
243 description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.'
244 )
245 option(
246 'texture-float',
247 type : 'boolean',
248 value : false,
249 description : 'Enable floating point textures and renderbuffers. This option may be patent encumbered, please read docs/patents.txt and consult with your lawyer before turning this on.'
250 )
251 option(
252 'selinux',
253 type : 'boolean',
254 value : false,
255 description : 'Build an SELinux-aware Mesa'
256 )
257 option(
258 'osmesa',
259 type : 'combo',
260 value : 'none',
261 choices : ['none', 'classic', 'gallium'],
262 description : 'Build OSmesa.'
263 )
264 option(
265 'osmesa-bits',
266 type : 'combo',
267 value : '8',
268 choices : ['8', '16', '32'],
269 description : 'Number of channel bits for OSMesa.'
270 )
271 option(
272 'swr-arches',
273 type : 'string',
274 value : 'avx,avx2',
275 description : 'Comma delemited swr architectures. choices : avx,avx2,knl,skx'
276 )