1 # Copyright © 2017-2019 Intel Corporation
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:
10 # The above copyright notice and this permission notice shall be included in
11 # all copies or substantial portions of the Software.
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
26 'auto', 'x11', 'wayland', 'haiku', 'android', 'windows',
28 description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.'
34 description : 'Build against android-stub',
41 choices : ['auto', 'true', 'false', 'disabled', 'enabled'],
42 description : 'enable support for dri3'
48 choices : ['auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'],
49 description : 'List of dri drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
55 description : 'Location to install dri drivers. Default: $libdir/dri.'
61 description : 'Locations to search for dri drivers, passed as colon separated list. Default: dri-drivers-path.'
68 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
69 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
70 'swr', 'panfrost', 'iris', 'lima', 'zink', 'd3d12'
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'
78 description : 'Enable HUD block/NIC I/O HUD status support',
84 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
85 description : 'enable gallium vdpau frontend.',
91 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
97 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
98 description : 'enable gallium xvmc frontend.',
104 description : 'path to put xvmc libraries. defaults to $libdir.'
110 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
111 description : 'enable gallium omx frontend.',
117 description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
123 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
124 description : 'enable gallium va frontend.',
130 description : 'path to put va libraries. defaults to $libdir/dri.'
136 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
137 description : 'enable gallium xa frontend.',
143 description : 'build gallium "nine" Direct3D 9.x frontend.',
148 choices : ['icd', 'standalone', 'disabled'],
150 description : 'build gallium "clover" OpenCL frontend.',
156 description : 'build gallium "clover" OpenCL frontend with SPIR-V binary support.',
162 choices : ['spirv', 'spirv64', 'all'],
163 description : 'Link libclc SPIR-V statically.',
169 description : 'Location of D3D drivers. Default: $libdir/d3d',
175 choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'swrast'],
176 description : 'List of vulkan drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
182 description : 'use kgsl backend for freedreno vulkan driver',
188 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
189 description : 'Build with on-disk shader cache support.',
192 'shader-cache-default',
195 description : 'If set to false, the feature is only activated when environment variable MESA_GLSL_CACHE_DISABLE is set to false',
198 'shader-cache-max-size',
201 description : 'Default value for MESA_GLSL_CACHE_MAX_SIZE enviroment variable.
202 If set, determines the maximum size of the on-disk cache of compiled
203 GLSL programs, can be overriden by enviroment variable if needed. Should be set to a number optionally followed by
204 ``K``, ``M``, or ``G`` to specify a size in kilobytes, megabytes, or
205 gigabytes. By default, gigabytes will be assumed. And if unset, a
206 maximum size of 1GB will be used.'
212 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
215 'vulkan-overlay-layer',
218 description : 'Whether to build the vulkan overlay layer'
221 'vulkan-device-select-layer',
224 description : 'Whether to build the vulkan device select layer'
230 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
231 description : 'Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere'
237 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
238 description : 'Build support for OpenGL ES 1.x'
244 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
245 description : 'Build support for OpenGL ES 2.x and 3.x'
251 description : 'Build support for OpenGL (all versions)'
257 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
258 description : 'Build support for gbm platform'
264 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
265 description : 'Build support for GLX platform'
271 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
272 description : 'Build support for EGL platform'
278 description : 'Enable GLVND support.'
284 description : 'Build support for the Microsoft CLC to DXIL compiler'
287 'glx-read-only-text',
290 description : 'Disable writable .text section on x86 (decreases performance)'
296 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
297 description : 'Build with LLVM support.'
303 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
304 description : 'Whether to link LLVM shared or statically.'
310 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
311 description : 'Build with valgrind support'
317 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
318 description : 'Use libunwind for stack-traces'
324 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
325 description : 'Enable HUD lmsensors support.'
331 description : 'Build unit tests. Currently this will build *all* unit tests except the ACO tests, which may build more than expected.'
337 description : 'Build ACO tests. These require RADV and glslang but not an AMD GPU.'
340 'install-intel-gpu-tests',
343 description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
349 description : 'Build an SELinux-aware Mesa'
355 choices : ['none', 'classic', 'gallium'],
356 description : 'Build OSmesa.'
362 choices : ['8', '16', '32'],
363 description : 'Number of channel bits for OSMesa.'
368 value : ['avx', 'avx2'],
369 choices : ['avx', 'avx2', 'knl', 'skx'],
370 description : 'Architectures to build SWR support for.',
376 description : 'Whether to link SWR shared or statically.',
383 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'all'],
384 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
390 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
391 description : 'Enable power8 optimizations.',
397 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
398 description : 'Enable VK_EXT_acquire_xlib_display.'
404 description : 'Enable direct rendering in GLX and EGL for DRI',
410 description : 'Prefer new Intel iris driver over older i965 driver'
412 option('egl-lib-suffix',
415 description : 'Suffix to append to EGL library name. Default: none.'
421 description : 'Suffix to append to GLES library names. Default: none.'
424 'platform-sdk-version',
429 description : 'Android Platform SDK version. Default: Nougat version.'
434 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
436 description : 'Use ZSTD instead of ZLIB in some cases.'