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', 'drm', 'surfaceless', 'haiku', 'android',
29 description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.'
35 description : 'Build against android-stub',
42 choices : ['auto', 'true', 'false', 'disabled', 'enabled'],
43 description : 'enable support for dri3'
49 choices : ['auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'],
50 description : 'List of dri drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
56 description : 'Location to install dri drivers. Default: $libdir/dri.'
62 description : 'Locations to search for dri drivers, passed as colon separated list. Default: dri-drivers-path.'
69 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
70 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
71 'swr', 'panfrost', 'iris', 'lima', 'zink', 'd3d12'
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'
79 description : 'Enable HUD block/NIC I/O HUD status support',
85 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
86 description : 'enable gallium vdpau frontend.',
92 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
98 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
99 description : 'enable gallium xvmc frontend.',
105 description : 'path to put xvmc libraries. defaults to $libdir.'
111 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
112 description : 'enable gallium omx frontend.',
118 description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
124 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
125 description : 'enable gallium va frontend.',
131 description : 'path to put va libraries. defaults to $libdir/dri.'
137 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
138 description : 'enable gallium xa frontend.',
144 description : 'build gallium "nine" Direct3D 9.x frontend.',
149 choices : ['icd', 'standalone', 'disabled'],
151 description : 'build gallium "clover" OpenCL frontend.',
157 description : 'build gallium "clover" OpenCL frontend with SPIR-V binary support.',
163 choices : ['spirv', 'spirv64', 'all'],
164 description : 'Link libclc SPIR-V statically.',
170 description : 'Location of D3D drivers. Default: $libdir/d3d',
176 choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'swrast'],
177 description : 'List of vulkan drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
183 description : 'use kgsl backend for freedreno vulkan driver',
189 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'
196 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
199 'vulkan-overlay-layer',
202 description : 'Whether to build the vulkan overlay layer'
205 'vulkan-device-select-layer',
208 description : 'Whether to build the vulkan device select layer'
214 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
215 description : 'Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere'
221 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
222 description : 'Build support for OpenGL ES 1.x'
228 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
229 description : 'Build support for OpenGL ES 2.x and 3.x'
235 description : 'Build support for OpenGL (all versions)'
241 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
242 description : 'Build support for gbm platform'
248 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
249 description : 'Build support for GLX platform'
255 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
256 description : 'Build support for EGL platform'
262 description : 'Enable GLVND support.'
268 choices : ['auto', 'true', 'false'],
269 description : 'Build support for the Microsoft CLC to DXIL compiler'
272 'glx-read-only-text',
275 description : 'Disable writable .text section on x86 (decreases performance)'
281 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
282 description : 'Build with LLVM support.'
288 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
289 description : 'Whether to link LLVM shared or statically.'
295 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
296 description : 'Build with valgrind support'
302 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
303 description : 'Use libunwind for stack-traces'
309 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
310 description : 'Enable HUD lmsensors support.'
316 description : 'Build unit tests. Currently this will build *all* unit tests except the ACO tests, which may build more than expected.'
322 description : 'Build ACO tests. These require RADV and glslang but not an AMD GPU.'
325 'install-intel-gpu-tests',
328 description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
334 description : 'Build an SELinux-aware Mesa'
340 choices : ['none', 'classic', 'gallium'],
341 description : 'Build OSmesa.'
347 choices : ['8', '16', '32'],
348 description : 'Number of channel bits for OSMesa.'
353 value : ['avx', 'avx2'],
354 choices : ['avx', 'avx2', 'knl', 'skx'],
355 description : 'Architectures to build SWR support for.',
361 description : 'Whether to link SWR shared or statically.',
368 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'all'],
369 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
375 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
376 description : 'Enable power8 optimizations.',
382 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
383 description : 'Enable VK_EXT_acquire_xlib_display.'
389 description : 'Enable direct rendering in GLX and EGL for DRI',
395 description : 'Prefer new Intel iris driver over older i965 driver'
397 option('egl-lib-suffix',
400 description : 'Suffix to append to EGL library name. Default: none.'
406 description : 'Suffix to append to GLES library names. Default: none.'
409 'platform-sdk-version',
414 description : 'Android Platform SDK version. Default: Nougat version.'
419 choices : ['auto', 'true', 'false', 'enabled', 'disabled'],
421 description : 'Use ZSTD instead of ZLIB in some cases.'