blob: 04a0c2bcb95ef7fe5fe415705c0eb19d4500e24b [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(
Jason Ekstrandef453f52020-10-06 11:26:07 -0500160 'static-libclc',
161 type : 'array',
162 value : [],
163 choices : ['spirv', 'spirv64', 'all'],
164 description : 'Link libclc SPIR-V statically.',
165)
166option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800167 'd3d-drivers-path',
168 type : 'string',
169 value : '',
170 description : 'Location of D3D drivers. Default: $libdir/d3d',
171)
172option(
Dylan Baker61631be2017-10-10 15:44:14 -0700173 'vulkan-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700174 type : 'array',
175 value : ['auto'],
Alejandro Piñeiroe5034f02019-11-25 16:29:12 +0100176 choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'swrast'],
Dylan Baker5608d0a2018-04-16 15:18:08 -0700177 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 -0700178)
179option(
Kristian H. Kristensene8075842020-04-07 12:36:20 -0700180 'freedreno-kgsl',
181 type : 'boolean',
182 value : false,
183 description : 'use kgsl backend for freedreno vulkan driver',
184)
185option(
Dylan Baker61631be2017-10-10 15:44:14 -0700186 'shader-cache',
Dylan Bakerf5eafc22018-04-18 13:20:28 -0700187 type : 'combo',
188 value : 'auto',
John Bates5de56932020-09-30 18:35:02 -0700189 choices : ['auto', 'true', 'false', 'enabled', 'disabled', 'default-disabled'],
190 description : 'Build with on-disk shader cache support. If set to default-disabled, the feature is only activated when environment variable MESA_GLSL_CACHE_DISABLE is set to false'
Dylan Baker61631be2017-10-10 15:44:14 -0700191)
192option(
193 'vulkan-icd-dir',
194 type : 'string',
195 value : '',
196 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
197)
198option(
Lionel Landwerlin20c370c2019-01-19 21:26:12 +0000199 'vulkan-overlay-layer',
200 type : 'boolean',
201 value : false,
202 description : 'Whether to build the vulkan overlay layer'
203)
204option(
Dave Airlie9bc5b2d2020-03-30 09:38:38 +1000205 'vulkan-device-select-layer',
206 type : 'boolean',
207 value : false,
208 description : 'Whether to build the vulkan device select layer'
209)
210option(
Dylan Baker61631be2017-10-10 15:44:14 -0700211 'shared-glapi',
Dylan Baker84242092019-05-31 16:16:22 -0700212 type : 'combo',
213 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700214 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker84242092019-05-31 16:16:22 -0700215 description : 'Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere'
Dylan Baker61631be2017-10-10 15:44:14 -0700216)
217option(
218 'gles1',
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 1.x'
223)
224option(
225 'gles2',
Dylan Bakerddc15fb2018-10-19 09:47:41 -0700226 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 OpenGL ES 2.x and 3.x'
230)
231option(
232 'opengl',
233 type : 'boolean',
234 value : true,
235 description : 'Build support for OpenGL (all versions)'
236)
237option(
238 'gbm',
239 type : 'combo',
240 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700241 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700242 description : 'Build support for gbm platform'
243)
244option(
245 'glx',
246 type : 'combo',
247 value : 'auto',
248 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
249 description : 'Build support for GLX platform'
250)
251option(
Dylan Baker108d2572017-10-18 12:20:43 -0700252 'egl',
253 type : 'combo',
254 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700255 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker108d2572017-10-18 12:20:43 -0700256 description : 'Build support for EGL platform'
257)
258option(
Dylan Baker61631be2017-10-10 15:44:14 -0700259 'glvnd',
260 type : 'boolean',
261 value : false,
262 description : 'Enable GLVND support.'
263)
264option(
Matt Turnera5abb2d2018-06-06 20:25:09 -0700265 'glx-read-only-text',
266 type : 'boolean',
267 value : false,
268 description : 'Disable writable .text section on x86 (decreases performance)'
269)
270option(
Dylan Baker61631be2017-10-10 15:44:14 -0700271 'llvm',
Dylan Baker48f64e52017-11-17 16:37:50 -0800272 type : 'combo',
273 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700274 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700275 description : 'Build with LLVM support.'
276)
277option(
Christoph Haagb01834b2018-09-18 01:08:07 +0200278 'shared-llvm',
Daniel Stone9ecd9462020-04-14 17:41:00 +0100279 type : 'combo',
280 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700281 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Daniel Stone9ecd9462020-04-14 17:41:00 +0100282 description : 'Whether to link LLVM shared or statically.'
Christoph Haagb01834b2018-09-18 01:08:07 +0200283)
284option(
Dylan Baker61631be2017-10-10 15:44:14 -0700285 'valgrind',
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 : 'Build with valgrind support'
Dylan Baker61631be2017-10-10 15:44:14 -0700290)
291option(
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200292 'libunwind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200293 type : 'combo',
294 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700295 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200296 description : 'Use libunwind for stack-traces'
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200297)
298option(
Dylan Baker5e71efe2017-11-28 16:42:37 -0800299 'lmsensors',
300 type : 'combo',
301 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700302 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker5e71efe2017-11-28 16:42:37 -0800303 description : 'Enable HUD lmsensors support.'
304)
305option(
Dylan Baker61631be2017-10-10 15:44:14 -0700306 'build-tests',
307 type : 'boolean',
308 value : false,
Rhys Perrye6366f92020-01-22 19:58:27 +0000309 description : 'Build unit tests. Currently this will build *all* unit tests except the ACO tests, which may build more than expected.'
310)
311option(
312 'build-aco-tests',
313 type : 'boolean',
314 value : false,
Rhys Perryd488d0f2020-02-14 11:32:18 +0000315 description : 'Build ACO tests. These require RADV and glslang but not an AMD GPU.'
Dylan Baker61631be2017-10-10 15:44:14 -0700316)
317option(
Jason Ekstrand8b8deec2019-04-02 10:26:09 -0500318 'install-intel-gpu-tests',
319 type : 'boolean',
320 value : false,
321 description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
322)
323option(
Eric Engestrom4b9421d2017-10-26 16:19:41 +0100324 'selinux',
325 type : 'boolean',
326 value : false,
327 description : 'Build an SELinux-aware Mesa'
328)
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700329option(
330 'osmesa',
331 type : 'combo',
332 value : 'none',
Dylan Bakerf121a662017-10-24 15:52:57 -0700333 choices : ['none', 'classic', 'gallium'],
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700334 description : 'Build OSmesa.'
335)
336option(
337 'osmesa-bits',
338 type : 'combo',
339 value : '8',
340 choices : ['8', '16', '32'],
341 description : 'Number of channel bits for OSMesa.'
342)
Dylan Bakere0b037d2017-11-29 17:50:05 -0800343option(
344 'swr-arches',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700345 type : 'array',
346 value : ['avx', 'avx2'],
347 choices : ['avx', 'avx2', 'knl', 'skx'],
348 description : 'Architectures to build SWR support for.',
Dylan Bakere0b037d2017-11-29 17:50:05 -0800349)
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800350option(
Krzysztof Raszkowskibf74a7f2020-01-22 12:26:45 +0100351 'shared-swr',
352 type : 'boolean',
353 value : true,
354 description : 'Whether to link SWR shared or statically.',
355)
356
357option(
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800358 'tools',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700359 type : 'array',
360 value : [],
Qiang Yu07b0fbe2020-04-24 16:20:25 +0800361 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'all'],
Eric Engestrom0bbee282018-10-30 11:26:46 +0000362 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800363)
Dylan Baker34bbb242018-06-07 11:13:34 -0700364option(
365 'power8',
366 type : 'combo',
367 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700368 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker34bbb242018-06-07 11:13:34 -0700369 description : 'Enable power8 optimizations.',
370)
Keith Packard7ab1fff2018-02-09 07:45:58 -0800371option(
372 'xlib-lease',
373 type : 'combo',
374 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700375 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Keith Packard7ab1fff2018-02-09 07:45:58 -0800376 description : 'Enable VK_EXT_acquire_xlib_display.'
377)
Dylan Baker7a908862018-12-04 10:06:08 -0800378option(
379 'glx-direct',
380 type : 'boolean',
381 value : true,
382 description : 'Enable direct rendering in GLX and EGL for DRI',
383)
Chia-I Wu4f863dc2019-03-08 11:27:50 -0800384option(
Kenneth Graunkedbe923b2019-11-22 22:18:58 -0800385 'prefer-iris',
386 type : 'boolean',
Kenneth Graunkeadaa3582019-11-22 22:24:52 -0800387 value : true,
Kenneth Graunkedbe923b2019-11-22 22:18:58 -0800388 description : 'Prefer new Intel iris driver over older i965 driver'
389)
Benjamin Gordonb30aad52018-06-13 16:17:32 -0600390option('egl-lib-suffix',
391 type : 'string',
392 value : '',
393 description : 'Suffix to append to EGL library name. Default: none.'
394)
395option(
396 'gles-lib-suffix',
397 type : 'string',
398 value : '',
399 description : 'Suffix to append to GLES library names. Default: none.'
400)
Gurchetan Singhb0708612019-03-15 10:08:45 -0700401option(
402 'platform-sdk-version',
403 type : 'integer',
404 min : 25,
405 max : 28,
406 value : 25,
407 description : 'Android Platform SDK version. Default: Nougat version.'
408)
Dylan Bakera8d94102019-10-31 13:26:00 -0700409option(
410 'zstd',
411 type : 'combo',
Dylan Baker138c0032020-05-19 14:01:47 -0700412 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Bakera8d94102019-10-31 13:26:00 -0700413 value : 'auto',
414 description : 'Use ZSTD instead of ZLIB in some cases.'
415)