blob: cb0d3f3d5911b8be7b29fff0ec291968c9aacfc6 [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 Engestrom48bcf3b2020-07-10 16:11:46 +020026 'auto', 'x11', 'wayland', 'haiku', 'android', 'windows',
Dylan Baker5608d0a2018-04-16 15:18:08 -070027 ],
Eric Engestrom8629d802018-10-11 16:38:24 +010028 description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.'
Dylan Baker61631be2017-10-10 15:44:14 -070029)
30option(
Kristian H. Kristensen932f51d2020-07-28 15:25:49 -070031 'android-stub',
32 type : 'boolean',
33 value : false,
34 description : 'Build against android-stub',
35)
36
37option(
Dylan Baker61631be2017-10-10 15:44:14 -070038 'dri3',
39 type : 'combo',
40 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -070041 choices : ['auto', 'true', 'false', 'disabled', 'enabled'],
Dylan Baker61631be2017-10-10 15:44:14 -070042 description : 'enable support for dri3'
43)
44option(
45 'dri-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -070046 type : 'array',
47 value : ['auto'],
Eric Engestromd3214462018-05-14 16:40:47 +010048 choices : ['auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'],
Dylan Baker5608d0a2018-04-16 15:18:08 -070049 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 -070050)
51option(
52 'dri-drivers-path',
53 type : 'string',
54 value : '',
Dylan Bakerd7235ef2018-01-16 10:36:28 -080055 description : 'Location to install dri drivers. Default: $libdir/dri.'
56)
57option(
58 'dri-search-path',
59 type : 'string',
60 value : '',
61 description : 'Locations to search for dri drivers, passed as colon separated list. Default: dri-drivers-path.'
Dylan Baker61631be2017-10-10 15:44:14 -070062)
63option(
64 'gallium-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -070065 type : 'array',
66 value : ['auto'],
67 choices : [
Eric Engestromd3214462018-05-14 16:40:47 +010068 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
Rob Herring41a0acd2019-01-24 14:03:54 -060069 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
Erik Faye-Lund8d46e352018-08-31 16:50:20 +020070 'swr', 'panfrost', 'iris', 'lima', 'zink'
Dylan Baker5608d0a2018-04-16 15:18:08 -070071 ],
72 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 -070073)
74option(
Dylan Baker73092072017-11-28 16:31:06 -080075 'gallium-extra-hud',
76 type : 'boolean',
77 value : false,
78 description : 'Enable HUD block/NIC I/O HUD status support',
79)
80option(
Dylan Baker68076b82017-10-30 14:04:21 -070081 'gallium-vdpau',
82 type : 'combo',
83 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -070084 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Marek Olšák8c9b9aa2019-12-03 20:38:14 -050085 description : 'enable gallium vdpau frontend.',
Dylan Baker68076b82017-10-30 14:04:21 -070086)
87option(
88 'vdpau-libs-path',
89 type : 'string',
90 value : '',
91 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
92)
93option(
Dylan Baker22a817a2017-10-30 14:32:30 -070094 'gallium-xvmc',
95 type : 'combo',
96 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -070097 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Marek Olšák8c9b9aa2019-12-03 20:38:14 -050098 description : 'enable gallium xvmc frontend.',
Dylan Baker22a817a2017-10-30 14:32:30 -070099)
100option(
101 'xvmc-libs-path',
102 type : 'string',
103 value : '',
104 description : 'path to put xvmc libraries. defaults to $libdir.'
105)
106option(
Dylan Baker1d36dc62017-10-30 15:23:06 -0700107 'gallium-omx',
108 type : 'combo',
Dylan Baker34e852d2018-03-06 10:11:38 -0800109 value : 'auto',
110 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500111 description : 'enable gallium omx frontend.',
Dylan Baker1d36dc62017-10-30 15:23:06 -0700112)
113option(
114 'omx-libs-path',
115 type : 'string',
116 value : '',
117 description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
118)
119option(
Dylan Baker5a785d52017-10-30 15:49:37 -0700120 'gallium-va',
121 type : 'combo',
122 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700123 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500124 description : 'enable gallium va frontend.',
Dylan Baker5a785d52017-10-30 15:49:37 -0700125)
126option(
127 'va-libs-path',
128 type : 'string',
129 value : '',
130 description : 'path to put va libraries. defaults to $libdir/dri.'
131)
132option(
Dylan Baker0ba909f2017-10-30 17:40:30 -0700133 'gallium-xa',
134 type : 'combo',
135 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700136 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500137 description : 'enable gallium xa frontend.',
Dylan Baker0ba909f2017-10-30 17:40:30 -0700138)
139option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800140 'gallium-nine',
141 type : 'boolean',
142 value : false,
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500143 description : 'build gallium "nine" Direct3D 9.x frontend.',
Dylan Baker6b4c7042017-11-13 17:58:51 -0800144)
145option(
Dylan Baker42ea0632017-12-08 15:26:00 -0800146 'gallium-opencl',
147 type : 'combo',
148 choices : ['icd', 'standalone', 'disabled'],
149 value : 'disabled',
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500150 description : 'build gallium "clover" OpenCL frontend.',
Dylan Baker42ea0632017-12-08 15:26:00 -0800151)
152option(
Pierre Moreau866f6f12018-01-21 19:10:58 +0100153 'opencl-spirv',
154 type : 'boolean',
155 value : false,
Marek Olšák8c9b9aa2019-12-03 20:38:14 -0500156 description : 'build gallium "clover" OpenCL frontend with SPIR-V binary support.',
Pierre Moreau866f6f12018-01-21 19:10:58 +0100157)
158option(
Jason Ekstrandef453f52020-10-06 11:26:07 -0500159 'static-libclc',
160 type : 'array',
161 value : [],
162 choices : ['spirv', 'spirv64', 'all'],
163 description : 'Link libclc SPIR-V statically.',
164)
165option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800166 'd3d-drivers-path',
167 type : 'string',
168 value : '',
169 description : 'Location of D3D drivers. Default: $libdir/d3d',
170)
171option(
Dylan Baker61631be2017-10-10 15:44:14 -0700172 'vulkan-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700173 type : 'array',
174 value : ['auto'],
Alejandro Piñeiroe5034f02019-11-25 16:29:12 +0100175 choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'swrast'],
Dylan Baker5608d0a2018-04-16 15:18:08 -0700176 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 -0700177)
178option(
Kristian H. Kristensene8075842020-04-07 12:36:20 -0700179 'freedreno-kgsl',
180 type : 'boolean',
181 value : false,
182 description : 'use kgsl backend for freedreno vulkan driver',
183)
184option(
Dylan Baker61631be2017-10-10 15:44:14 -0700185 'shader-cache',
Dylan Bakerf5eafc22018-04-18 13:20:28 -0700186 type : 'combo',
187 value : 'auto',
Dylan Baker0a393502020-11-19 16:09:22 -0800188 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
189 description : 'Build with on-disk shader cache support.',
190)
191option(
192 'shader-cache-default',
193 type : 'boolean',
194 value : true,
195 description : 'If set to false, the feature is only activated when environment variable MESA_GLSL_CACHE_DISABLE is set to false',
Dylan Baker61631be2017-10-10 15:44:14 -0700196)
197option(
198 'vulkan-icd-dir',
199 type : 'string',
200 value : '',
201 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
202)
203option(
Lionel Landwerlin20c370c2019-01-19 21:26:12 +0000204 'vulkan-overlay-layer',
205 type : 'boolean',
206 value : false,
207 description : 'Whether to build the vulkan overlay layer'
208)
209option(
Dave Airlie9bc5b2d2020-03-30 09:38:38 +1000210 'vulkan-device-select-layer',
211 type : 'boolean',
212 value : false,
213 description : 'Whether to build the vulkan device select layer'
214)
215option(
Dylan Baker61631be2017-10-10 15:44:14 -0700216 'shared-glapi',
Dylan Baker84242092019-05-31 16:16:22 -0700217 type : 'combo',
218 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700219 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker84242092019-05-31 16:16:22 -0700220 description : 'Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere'
Dylan Baker61631be2017-10-10 15:44:14 -0700221)
222option(
223 'gles1',
Dylan Bakerddc15fb2018-10-19 09:47:41 -0700224 type : 'combo',
225 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700226 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700227 description : 'Build support for OpenGL ES 1.x'
228)
229option(
230 'gles2',
Dylan Bakerddc15fb2018-10-19 09:47:41 -0700231 type : 'combo',
232 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700233 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700234 description : 'Build support for OpenGL ES 2.x and 3.x'
235)
236option(
237 'opengl',
238 type : 'boolean',
239 value : true,
240 description : 'Build support for OpenGL (all versions)'
241)
242option(
243 'gbm',
244 type : 'combo',
245 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700246 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700247 description : 'Build support for gbm platform'
248)
249option(
250 'glx',
251 type : 'combo',
252 value : 'auto',
253 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
254 description : 'Build support for GLX platform'
255)
256option(
Dylan Baker108d2572017-10-18 12:20:43 -0700257 'egl',
258 type : 'combo',
259 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700260 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker108d2572017-10-18 12:20:43 -0700261 description : 'Build support for EGL platform'
262)
263option(
Dylan Baker61631be2017-10-10 15:44:14 -0700264 'glvnd',
265 type : 'boolean',
266 value : false,
267 description : 'Enable GLVND support.'
268)
269option(
Matt Turnera5abb2d2018-06-06 20:25:09 -0700270 'glx-read-only-text',
271 type : 'boolean',
272 value : false,
273 description : 'Disable writable .text section on x86 (decreases performance)'
274)
275option(
Dylan Baker61631be2017-10-10 15:44:14 -0700276 'llvm',
Dylan Baker48f64e52017-11-17 16:37:50 -0800277 type : 'combo',
278 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700279 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker61631be2017-10-10 15:44:14 -0700280 description : 'Build with LLVM support.'
281)
282option(
Christoph Haagb01834b2018-09-18 01:08:07 +0200283 'shared-llvm',
Daniel Stone9ecd9462020-04-14 17:41:00 +0100284 type : 'combo',
285 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700286 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Daniel Stone9ecd9462020-04-14 17:41:00 +0100287 description : 'Whether to link LLVM shared or statically.'
Christoph Haagb01834b2018-09-18 01:08:07 +0200288)
289option(
Dylan Baker61631be2017-10-10 15:44:14 -0700290 'valgrind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200291 type : 'combo',
292 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700293 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200294 description : 'Build with valgrind support'
Dylan Baker61631be2017-10-10 15:44:14 -0700295)
296option(
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200297 'libunwind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200298 type : 'combo',
299 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700300 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200301 description : 'Use libunwind for stack-traces'
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200302)
303option(
Dylan Baker5e71efe2017-11-28 16:42:37 -0800304 'lmsensors',
305 type : 'combo',
306 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700307 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker5e71efe2017-11-28 16:42:37 -0800308 description : 'Enable HUD lmsensors support.'
309)
310option(
Dylan Baker61631be2017-10-10 15:44:14 -0700311 'build-tests',
312 type : 'boolean',
313 value : false,
Rhys Perrye6366f92020-01-22 19:58:27 +0000314 description : 'Build unit tests. Currently this will build *all* unit tests except the ACO tests, which may build more than expected.'
315)
316option(
317 'build-aco-tests',
318 type : 'boolean',
319 value : false,
Rhys Perryd488d0f2020-02-14 11:32:18 +0000320 description : 'Build ACO tests. These require RADV and glslang but not an AMD GPU.'
Dylan Baker61631be2017-10-10 15:44:14 -0700321)
322option(
Jason Ekstrand8b8deec2019-04-02 10:26:09 -0500323 'install-intel-gpu-tests',
324 type : 'boolean',
325 value : false,
326 description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
327)
328option(
Eric Engestrom4b9421d2017-10-26 16:19:41 +0100329 'selinux',
330 type : 'boolean',
331 value : false,
332 description : 'Build an SELinux-aware Mesa'
333)
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700334option(
335 'osmesa',
336 type : 'combo',
337 value : 'none',
Dylan Bakerf121a662017-10-24 15:52:57 -0700338 choices : ['none', 'classic', 'gallium'],
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700339 description : 'Build OSmesa.'
340)
341option(
342 'osmesa-bits',
343 type : 'combo',
344 value : '8',
345 choices : ['8', '16', '32'],
346 description : 'Number of channel bits for OSMesa.'
347)
Dylan Bakere0b037d2017-11-29 17:50:05 -0800348option(
349 'swr-arches',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700350 type : 'array',
351 value : ['avx', 'avx2'],
352 choices : ['avx', 'avx2', 'knl', 'skx'],
353 description : 'Architectures to build SWR support for.',
Dylan Bakere0b037d2017-11-29 17:50:05 -0800354)
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800355option(
Krzysztof Raszkowskibf74a7f2020-01-22 12:26:45 +0100356 'shared-swr',
357 type : 'boolean',
358 value : true,
359 description : 'Whether to link SWR shared or statically.',
360)
361
362option(
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800363 'tools',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700364 type : 'array',
365 value : [],
Qiang Yu07b0fbe2020-04-24 16:20:25 +0800366 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'all'],
Eric Engestrom0bbee282018-10-30 11:26:46 +0000367 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800368)
Dylan Baker34bbb242018-06-07 11:13:34 -0700369option(
370 'power8',
371 type : 'combo',
372 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700373 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Baker34bbb242018-06-07 11:13:34 -0700374 description : 'Enable power8 optimizations.',
375)
Keith Packard7ab1fff2018-02-09 07:45:58 -0800376option(
377 'xlib-lease',
378 type : 'combo',
379 value : 'auto',
Dylan Baker138c0032020-05-19 14:01:47 -0700380 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Keith Packard7ab1fff2018-02-09 07:45:58 -0800381 description : 'Enable VK_EXT_acquire_xlib_display.'
382)
Dylan Baker7a908862018-12-04 10:06:08 -0800383option(
384 'glx-direct',
385 type : 'boolean',
386 value : true,
387 description : 'Enable direct rendering in GLX and EGL for DRI',
388)
Chia-I Wu4f863dc2019-03-08 11:27:50 -0800389option(
Kenneth Graunkedbe923b2019-11-22 22:18:58 -0800390 'prefer-iris',
391 type : 'boolean',
Kenneth Graunkeadaa3582019-11-22 22:24:52 -0800392 value : true,
Kenneth Graunkedbe923b2019-11-22 22:18:58 -0800393 description : 'Prefer new Intel iris driver over older i965 driver'
394)
Benjamin Gordonb30aad52018-06-13 16:17:32 -0600395option('egl-lib-suffix',
396 type : 'string',
397 value : '',
398 description : 'Suffix to append to EGL library name. Default: none.'
399)
400option(
401 'gles-lib-suffix',
402 type : 'string',
403 value : '',
404 description : 'Suffix to append to GLES library names. Default: none.'
405)
Gurchetan Singhb0708612019-03-15 10:08:45 -0700406option(
407 'platform-sdk-version',
408 type : 'integer',
409 min : 25,
410 max : 28,
411 value : 25,
412 description : 'Android Platform SDK version. Default: Nougat version.'
413)
Dylan Bakera8d94102019-10-31 13:26:00 -0700414option(
415 'zstd',
416 type : 'combo',
Dylan Baker138c0032020-05-19 14:01:47 -0700417 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
Dylan Bakera8d94102019-10-31 13:26:00 -0700418 value : 'auto',
419 description : 'Use ZSTD instead of ZLIB in some cases.'
420)