blob: bf031eeb11fe305b45fd216798a41b8118d5558a [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'],
Dave Airlieb38879f2020-06-19 16:40:27 +1000169 choices : ['auto', 'amd', 'freedreno', 'intel', 'swrast'],
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(
Kristian H. Kristensene8075842020-04-07 12:36:20 -0700173 'freedreno-kgsl',
174 type : 'boolean',
175 value : false,
176 description : 'use kgsl backend for freedreno vulkan driver',
177)
178option(
Dylan Baker61631be2017-10-10 15:44:14 -0700179 'shader-cache',
Dylan Bakerf5eafc22018-04-18 13:20:28 -0700180 type : 'combo',
181 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700182 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700183 description : 'Build with on-disk shader cache support'
184)
185option(
186 'vulkan-icd-dir',
187 type : 'string',
188 value : '',
189 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
190)
191option(
Lionel Landwerlin20c370c2019-01-19 21:26:12 +0000192 'vulkan-overlay-layer',
193 type : 'boolean',
194 value : false,
195 description : 'Whether to build the vulkan overlay layer'
196)
197option(
Dave Airlie9bc5b2d2020-03-30 09:38:38 +1000198 'vulkan-device-select-layer',
199 type : 'boolean',
200 value : false,
201 description : 'Whether to build the vulkan device select layer'
202)
203option(
Dylan Baker61631be2017-10-10 15:44:14 -0700204 'shared-glapi',
Dylan Baker84242092019-05-31 16:16:22 -0700205 type : 'combo',
206 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700207 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker84242092019-05-31 16:16:22 -0700208 description : 'Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere'
Dylan Baker61631be2017-10-10 15:44:14 -0700209)
210option(
211 'gles1',
Dylan Bakerddc15fb2018-10-19 09:47:41 -0700212 type : 'combo',
213 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700214 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700215 description : 'Build support for OpenGL ES 1.x'
216)
217option(
218 'gles2',
Dylan Bakerddc15fb2018-10-19 09:47:41 -0700219 type : 'combo',
220 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700221 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700222 description : 'Build support for OpenGL ES 2.x and 3.x'
223)
224option(
225 'opengl',
226 type : 'boolean',
227 value : true,
228 description : 'Build support for OpenGL (all versions)'
229)
230option(
231 'gbm',
232 type : 'combo',
233 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700234 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700235 description : 'Build support for gbm platform'
236)
237option(
238 'glx',
239 type : 'combo',
240 value : 'auto',
241 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
242 description : 'Build support for GLX platform'
243)
244option(
Dylan Baker108d2572017-10-18 12:20:43 -0700245 'egl',
246 type : 'combo',
247 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700248 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker108d2572017-10-18 12:20:43 -0700249 description : 'Build support for EGL platform'
250)
251option(
Dylan Baker61631be2017-10-10 15:44:14 -0700252 'glvnd',
253 type : 'boolean',
254 value : false,
255 description : 'Enable GLVND support.'
256)
257option(
Matt Turnera5abb2d2018-06-06 20:25:09 -0700258 'glx-read-only-text',
259 type : 'boolean',
260 value : false,
261 description : 'Disable writable .text section on x86 (decreases performance)'
262)
263option(
Dylan Baker61631be2017-10-10 15:44:14 -0700264 'llvm',
Dylan Baker48f64e52017-11-17 16:37:50 -0800265 type : 'combo',
266 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700267 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700268 description : 'Build with LLVM support.'
269)
270option(
Christoph Haagb01834b2018-09-18 01:08:07 +0200271 'shared-llvm',
Daniel Stone9ecd9462020-04-14 17:41:00 +0100272 type : 'combo',
273 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700274 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Daniel Stone9ecd9462020-04-14 17:41:00 +0100275 description : 'Whether to link LLVM shared or statically.'
Christoph Haagb01834b2018-09-18 01:08:07 +0200276)
277option(
Dylan Baker61631be2017-10-10 15:44:14 -0700278 'valgrind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200279 type : 'combo',
280 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700281 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200282 description : 'Build with valgrind support'
Dylan Baker61631be2017-10-10 15:44:14 -0700283)
284option(
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200285 'libunwind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200286 type : 'combo',
287 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700288 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200289 description : 'Use libunwind for stack-traces'
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200290)
291option(
Dylan Baker5e71efe2017-11-28 16:42:37 -0800292 'lmsensors',
293 type : 'combo',
294 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700295 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker5e71efe2017-11-28 16:42:37 -0800296 description : 'Enable HUD lmsensors support.'
297)
298option(
Dylan Baker61631be2017-10-10 15:44:14 -0700299 'build-tests',
300 type : 'boolean',
301 value : false,
Rhys Perrye6366f92020-01-22 19:58:27 +0000302 description : 'Build unit tests. Currently this will build *all* unit tests except the ACO tests, which may build more than expected.'
303)
304option(
305 'build-aco-tests',
306 type : 'boolean',
307 value : false,
Rhys Perryd488d0f2020-02-14 11:32:18 +0000308 description : 'Build ACO tests. These require RADV and glslang but not an AMD GPU.'
Dylan Baker61631be2017-10-10 15:44:14 -0700309)
310option(
Jason Ekstrand8b8deec2019-04-02 10:26:09 -0500311 'install-intel-gpu-tests',
312 type : 'boolean',
313 value : false,
314 description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
315)
316option(
Eric Engestrom4b9421d2017-10-26 16:19:41 +0100317 'selinux',
318 type : 'boolean',
319 value : false,
320 description : 'Build an SELinux-aware Mesa'
321)
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700322option(
323 'osmesa',
324 type : 'combo',
325 value : 'none',
Dylan Bakerf121a662017-10-24 15:52:57 -0700326 choices : ['none', 'classic', 'gallium'],
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700327 description : 'Build OSmesa.'
328)
329option(
330 'osmesa-bits',
331 type : 'combo',
332 value : '8',
333 choices : ['8', '16', '32'],
334 description : 'Number of channel bits for OSMesa.'
335)
Dylan Bakere0b037d2017-11-29 17:50:05 -0800336option(
337 'swr-arches',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700338 type : 'array',
339 value : ['avx', 'avx2'],
340 choices : ['avx', 'avx2', 'knl', 'skx'],
341 description : 'Architectures to build SWR support for.',
Dylan Bakere0b037d2017-11-29 17:50:05 -0800342)
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800343option(
Krzysztof Raszkowskibf74a7f2020-01-22 12:26:45 +0100344 'shared-swr',
345 type : 'boolean',
346 value : true,
347 description : 'Whether to link SWR shared or statically.',
348)
349
350option(
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800351 'tools',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700352 type : 'array',
353 value : [],
Qiang Yu07b0fbe2020-04-24 16:20:25 +0800354 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'all'],
Eric Engestrom0bbee282018-10-30 11:26:46 +0000355 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800356)
Dylan Baker34bbb242018-06-07 11:13:34 -0700357option(
358 'power8',
359 type : 'combo',
360 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700361 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker34bbb242018-06-07 11:13:34 -0700362 description : 'Enable power8 optimizations.',
363)
Keith Packard7ab1fff2018-02-09 07:45:58 -0800364option(
365 'xlib-lease',
366 type : 'combo',
367 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700368 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Keith Packard7ab1fff2018-02-09 07:45:58 -0800369 description : 'Enable VK_EXT_acquire_xlib_display.'
370)
Dylan Baker7a908862018-12-04 10:06:08 -0800371option(
372 'glx-direct',
373 type : 'boolean',
374 value : true,
375 description : 'Enable direct rendering in GLX and EGL for DRI',
376)
Chia-I Wu4f863dc2019-03-08 11:27:50 -0800377option(
Kenneth Graunkedbe923b2019-11-22 22:18:58 -0800378 'prefer-iris',
379 type : 'boolean',
Kenneth Graunkeadaa3582019-11-22 22:24:52 -0800380 value : true,
Kenneth Graunkedbe923b2019-11-22 22:18:58 -0800381 description : 'Prefer new Intel iris driver over older i965 driver'
382)
Benjamin Gordonb30aad52018-06-13 16:17:32 -0600383option('egl-lib-suffix',
384 type : 'string',
385 value : '',
386 description : 'Suffix to append to EGL library name. Default: none.'
387)
388option(
389 'gles-lib-suffix',
390 type : 'string',
391 value : '',
392 description : 'Suffix to append to GLES library names. Default: none.'
393)
Gurchetan Singhb0708612019-03-15 10:08:45 -0700394option(
395 'platform-sdk-version',
396 type : 'integer',
397 min : 25,
398 max : 28,
399 value : 25,
400 description : 'Android Platform SDK version. Default: Nougat version.'
401)
Dylan Bakera8d94102019-10-31 13:26:00 -0700402option(
403 'zstd',
404 type : 'combo',
Dylan Baker138c0032020-05-19 14:01:47 -0700405 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Bakera8d94102019-10-31 13:26:00 -0700406 value : 'auto',
407 description : 'Use ZSTD instead of ZLIB in some cases.'
408)