blob: 2d39d13b6adfcdefe06640f245cfcefdeb38c5cc [file] [log] [blame]
Dylan Bakera8d94102019-10-31 13:26:00 -07001# Copyright © 2017-2019 Intel Corporation
Dylan Bakerd1992252017-09-14 17:57:17 -07002
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
Dylan Baker61631be2017-10-10 15:44:14 -070021option(
22 'platforms',
Dylan Baker5608d0a2018-04-16 15:18:08 -070023 type : 'array',
24 value : ['auto'],
25 choices : [
Eric Engestromd3214462018-05-14 16:40:47 +010026 'auto', 'x11', 'wayland', 'drm', 'surfaceless', 'haiku', 'android',
Dylan Baker70cac062018-04-18 13:17:20 -070027 'windows',
Dylan Baker5608d0a2018-04-16 15:18:08 -070028 ],
Eric Engestrom8629d802018-10-11 16:38:24 +010029 description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.'
Dylan Baker61631be2017-10-10 15:44:14 -070030)
31option(
Kristian H. Kristensen932f51d2020-07-28 15:25:49 -070032 'android-stub',
33 type : 'boolean',
34 value : false,
35 description : 'Build against android-stub',
36)
37
38option(
Dylan Baker61631be2017-10-10 15:44:14 -070039 'dri3',
40 type : 'combo',
41 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -070042 choices : ['auto', 'true', 'false', 'disabled', 'enabled'],
Dylan Baker61631be2017-10-10 15:44:14 -070043 description : 'enable support for dri3'
44)
45option(
46 'dri-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -070047 type : 'array',
48 value : ['auto'],
Eric Engestromd3214462018-05-14 16:40:47 +010049 choices : ['auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'],
Dylan Baker5608d0a2018-04-16 15:18:08 -070050 description : 'List of dri drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
Dylan Baker61631be2017-10-10 15:44:14 -070051)
52option(
53 'dri-drivers-path',
54 type : 'string',
55 value : '',
Dylan Bakerd7235ef2018-01-16 10:36:28 -080056 description : 'Location to install dri drivers. Default: $libdir/dri.'
57)
58option(
59 'dri-search-path',
60 type : 'string',
61 value : '',
62 description : 'Locations to search for dri drivers, passed as colon separated list. Default: dri-drivers-path.'
Dylan Baker61631be2017-10-10 15:44:14 -070063)
64option(
65 'gallium-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -070066 type : 'array',
67 value : ['auto'],
68 choices : [
Eric Engestromd3214462018-05-14 16:40:47 +010069 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
Rob Herring41a0acd2019-01-24 14:03:54 -060070 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
Erik Faye-Lund8d46e352018-08-31 16:50:20 +020071 'swr', 'panfrost', 'iris', 'lima', 'zink'
Dylan Baker5608d0a2018-04-16 15:18:08 -070072 ],
73 description : 'List of gallium drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
Dylan Baker61631be2017-10-10 15:44:14 -070074)
75option(
Dylan Baker73092072017-11-28 16:31:06 -080076 'gallium-extra-hud',
77 type : 'boolean',
78 value : false,
79 description : 'Enable HUD block/NIC I/O HUD status support',
80)
81option(
Dylan Baker68076b82017-10-30 14:04:21 -070082 'gallium-vdpau',
83 type : 'combo',
84 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -070085 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Marek Olšák8c9b9aa2019-12-03 20:38:14 -050086 description : 'enable gallium vdpau frontend.',
Dylan Baker68076b82017-10-30 14:04:21 -070087)
88option(
89 'vdpau-libs-path',
90 type : 'string',
91 value : '',
92 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
93)
94option(
Dylan Baker22a817a2017-10-30 14:32:30 -070095 'gallium-xvmc',
96 type : 'combo',
97 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -070098 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Marek Olšák8c9b9aa2019-12-03 20:38:14 -050099 description : 'enable gallium xvmc frontend.',
Dylan Baker22a817a2017-10-30 14:32:30 -0700100)
101option(
102 'xvmc-libs-path',
103 type : 'string',
104 value : '',
105 description : 'path to put xvmc libraries. defaults to $libdir.'
106)
107option(
Dylan Baker1d36dc62017-10-30 15:23:06 -0700108 'gallium-omx',
109 type : 'combo',
Dylan Baker34e852d2018-03-06 10:11:38 -0800110 value : 'auto',
111 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500112 description : 'enable gallium omx frontend.',
Dylan Baker1d36dc62017-10-30 15:23:06 -0700113)
114option(
115 'omx-libs-path',
116 type : 'string',
117 value : '',
118 description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
119)
120option(
Dylan Baker5a785d52017-10-30 15:49:37 -0700121 'gallium-va',
122 type : 'combo',
123 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700124 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500125 description : 'enable gallium va frontend.',
Dylan Baker5a785d52017-10-30 15:49:37 -0700126)
127option(
128 'va-libs-path',
129 type : 'string',
130 value : '',
131 description : 'path to put va libraries. defaults to $libdir/dri.'
132)
133option(
Dylan Baker0ba909f2017-10-30 17:40:30 -0700134 'gallium-xa',
135 type : 'combo',
136 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700137 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500138 description : 'enable gallium xa frontend.',
Dylan Baker0ba909f2017-10-30 17:40:30 -0700139)
140option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800141 'gallium-nine',
142 type : 'boolean',
143 value : false,
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500144 description : 'build gallium "nine" Direct3D 9.x frontend.',
Dylan Baker6b4c7042017-11-13 17:58:51 -0800145)
146option(
Dylan Baker42ea0632017-12-08 15:26:00 -0800147 'gallium-opencl',
148 type : 'combo',
149 choices : ['icd', 'standalone', 'disabled'],
150 value : 'disabled',
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500151 description : 'build gallium "clover" OpenCL frontend.',
Dylan Baker42ea0632017-12-08 15:26:00 -0800152)
153option(
Pierre Moreau866f6f12018-01-21 19:10:58 +0100154 'opencl-spirv',
155 type : 'boolean',
156 value : false,
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500157 description : 'build gallium "clover" OpenCL frontend with SPIR-V binary support.',
Pierre Moreau866f6f12018-01-21 19:10:58 +0100158)
159option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800160 'd3d-drivers-path',
161 type : 'string',
162 value : '',
163 description : 'Location of D3D drivers. Default: $libdir/d3d',
164)
165option(
Dylan Baker61631be2017-10-10 15:44:14 -0700166 'vulkan-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700167 type : 'array',
168 value : ['auto'],
Eric Engestromd3214462018-05-14 16:40:47 +0100169 choices : ['auto', 'amd', 'freedreno', 'intel'],
Dylan Baker5608d0a2018-04-16 15:18:08 -0700170 description : 'List of vulkan drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
Dylan Baker61631be2017-10-10 15:44:14 -0700171)
172option(
173 'shader-cache',
Dylan Bakerf5eafc22018-04-18 13:20:28 -0700174 type : 'combo',
175 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700176 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700177 description : 'Build with on-disk shader cache support'
178)
179option(
180 'vulkan-icd-dir',
181 type : 'string',
182 value : '',
183 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
184)
185option(
Lionel Landwerlin20c370c2019-01-19 21:26:12 +0000186 'vulkan-overlay-layer',
187 type : 'boolean',
188 value : false,
189 description : 'Whether to build the vulkan overlay layer'
190)
191option(
Dave Airlie9bc5b2d2020-03-30 09:38:38 +1000192 'vulkan-device-select-layer',
193 type : 'boolean',
194 value : false,
195 description : 'Whether to build the vulkan device select layer'
196)
197option(
Dylan Baker61631be2017-10-10 15:44:14 -0700198 'shared-glapi',
Dylan Baker84242092019-05-31 16:16:22 -0700199 type : 'combo',
200 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700201 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker84242092019-05-31 16:16:22 -0700202 description : 'Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere'
Dylan Baker61631be2017-10-10 15:44:14 -0700203)
204option(
205 'gles1',
Dylan Bakerddc15fb2018-10-19 09:47:41 -0700206 type : 'combo',
207 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700208 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700209 description : 'Build support for OpenGL ES 1.x'
210)
211option(
212 'gles2',
Dylan Bakerddc15fb2018-10-19 09:47:41 -0700213 type : 'combo',
214 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700215 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700216 description : 'Build support for OpenGL ES 2.x and 3.x'
217)
218option(
219 'opengl',
220 type : 'boolean',
221 value : true,
222 description : 'Build support for OpenGL (all versions)'
223)
224option(
225 'gbm',
226 type : 'combo',
227 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700228 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700229 description : 'Build support for gbm platform'
230)
231option(
232 'glx',
233 type : 'combo',
234 value : 'auto',
235 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
236 description : 'Build support for GLX platform'
237)
238option(
Dylan Baker108d2572017-10-18 12:20:43 -0700239 'egl',
240 type : 'combo',
241 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700242 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker108d2572017-10-18 12:20:43 -0700243 description : 'Build support for EGL platform'
244)
245option(
Dylan Baker61631be2017-10-10 15:44:14 -0700246 'glvnd',
247 type : 'boolean',
248 value : false,
249 description : 'Enable GLVND support.'
250)
251option(
Matt Turnera5abb2d2018-06-06 20:25:09 -0700252 'glx-read-only-text',
253 type : 'boolean',
254 value : false,
255 description : 'Disable writable .text section on x86 (decreases performance)'
256)
257option(
Dylan Baker61631be2017-10-10 15:44:14 -0700258 'llvm',
Dylan Baker48f64e52017-11-17 16:37:50 -0800259 type : 'combo',
260 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700261 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700262 description : 'Build with LLVM support.'
263)
264option(
Christoph Haagb01834b2018-09-18 01:08:07 +0200265 'shared-llvm',
Daniel Stone9ecd9462020-04-14 17:41:00 +0100266 type : 'combo',
267 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700268 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Daniel Stone9ecd9462020-04-14 17:41:00 +0100269 description : 'Whether to link LLVM shared or statically.'
Christoph Haagb01834b2018-09-18 01:08:07 +0200270)
271option(
Dylan Baker61631be2017-10-10 15:44:14 -0700272 'valgrind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200273 type : 'combo',
274 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700275 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200276 description : 'Build with valgrind support'
Dylan Baker61631be2017-10-10 15:44:14 -0700277)
278option(
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200279 'libunwind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200280 type : 'combo',
281 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700282 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200283 description : 'Use libunwind for stack-traces'
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200284)
285option(
Dylan Baker5e71efe2017-11-28 16:42:37 -0800286 'lmsensors',
287 type : 'combo',
288 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700289 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker5e71efe2017-11-28 16:42:37 -0800290 description : 'Enable HUD lmsensors support.'
291)
292option(
Dylan Baker61631be2017-10-10 15:44:14 -0700293 'build-tests',
294 type : 'boolean',
295 value : false,
Rhys Perrye6366f92020-01-22 19:58:27 +0000296 description : 'Build unit tests. Currently this will build *all* unit tests except the ACO tests, which may build more than expected.'
297)
298option(
299 'build-aco-tests',
300 type : 'boolean',
301 value : false,
Rhys Perryd488d0f2020-02-14 11:32:18 +0000302 description : 'Build ACO tests. These require RADV and glslang but not an AMD GPU.'
Dylan Baker61631be2017-10-10 15:44:14 -0700303)
304option(
Jason Ekstrand8b8deec2019-04-02 10:26:09 -0500305 'install-intel-gpu-tests',
306 type : 'boolean',
307 value : false,
308 description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
309)
310option(
Eric Engestrom4b9421d2017-10-26 16:19:41 +0100311 'selinux',
312 type : 'boolean',
313 value : false,
314 description : 'Build an SELinux-aware Mesa'
315)
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700316option(
317 'osmesa',
318 type : 'combo',
319 value : 'none',
Dylan Bakerf121a662017-10-24 15:52:57 -0700320 choices : ['none', 'classic', 'gallium'],
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700321 description : 'Build OSmesa.'
322)
323option(
324 'osmesa-bits',
325 type : 'combo',
326 value : '8',
327 choices : ['8', '16', '32'],
328 description : 'Number of channel bits for OSMesa.'
329)
Dylan Bakere0b037d2017-11-29 17:50:05 -0800330option(
331 'swr-arches',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700332 type : 'array',
333 value : ['avx', 'avx2'],
334 choices : ['avx', 'avx2', 'knl', 'skx'],
335 description : 'Architectures to build SWR support for.',
Dylan Bakere0b037d2017-11-29 17:50:05 -0800336)
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800337option(
Krzysztof Raszkowskibf74a7f2020-01-22 12:26:45 +0100338 'shared-swr',
339 type : 'boolean',
340 value : true,
341 description : 'Whether to link SWR shared or statically.',
342)
343
344option(
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800345 'tools',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700346 type : 'array',
347 value : [],
Qiang Yu07b0fbe2020-04-24 16:20:25 +0800348 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'all'],
Eric Engestrom0bbee282018-10-30 11:26:46 +0000349 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800350)
Dylan Baker34bbb242018-06-07 11:13:34 -0700351option(
352 'power8',
353 type : 'combo',
354 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700355 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker34bbb242018-06-07 11:13:34 -0700356 description : 'Enable power8 optimizations.',
357)
Keith Packard7ab1fff2018-02-09 07:45:58 -0800358option(
359 'xlib-lease',
360 type : 'combo',
361 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700362 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Keith Packard7ab1fff2018-02-09 07:45:58 -0800363 description : 'Enable VK_EXT_acquire_xlib_display.'
364)
Dylan Baker7a908862018-12-04 10:06:08 -0800365option(
366 'glx-direct',
367 type : 'boolean',
368 value : true,
369 description : 'Enable direct rendering in GLX and EGL for DRI',
370)
Chia-I Wu4f863dc2019-03-08 11:27:50 -0800371option(
Kenneth Graunkedbe923b2019-11-22 22:18:58 -0800372 'prefer-iris',
373 type : 'boolean',
Kenneth Graunkeadaa3582019-11-22 22:24:52 -0800374 value : true,
Kenneth Graunkedbe923b2019-11-22 22:18:58 -0800375 description : 'Prefer new Intel iris driver over older i965 driver'
376)
Benjamin Gordonb30aad52018-06-13 16:17:32 -0600377option('egl-lib-suffix',
378 type : 'string',
379 value : '',
380 description : 'Suffix to append to EGL library name. Default: none.'
381)
382option(
383 'gles-lib-suffix',
384 type : 'string',
385 value : '',
386 description : 'Suffix to append to GLES library names. Default: none.'
387)
Gurchetan Singhb0708612019-03-15 10:08:45 -0700388option(
389 'platform-sdk-version',
390 type : 'integer',
391 min : 25,
392 max : 28,
393 value : 25,
394 description : 'Android Platform SDK version. Default: Nougat version.'
395)
Dylan Bakera8d94102019-10-31 13:26:00 -0700396option(
397 'zstd',
398 type : 'combo',
Dylan Baker138c0032020-05-19 14:01:47 -0700399 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Bakera8d94102019-10-31 13:26:00 -0700400 value : 'auto',
401 description : 'Use ZSTD instead of ZLIB in some cases.'
402)