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 choices : ['auto', 'true', 'false'],
36 description : 'enable support for dri3'
42 choices : ['', 'auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'],
43 description : 'List of dri drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
49 description : 'Location to install dri drivers. Default: $libdir/dri.'
55 description : 'Locations to search for dri drivers, passed as colon separated list. Default: dri-drivers-path.'
62 '', 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
63 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
64 'swr', 'panfrost', 'iris', 'lima', 'zink'
66 description : 'List of gallium drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
72 description : 'Enable HUD block/NIC I/O HUD status support',
78 choices : ['auto', 'true', 'false'],
79 description : 'enable gallium vdpau state tracker.',
85 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
91 choices : ['auto', 'true', 'false'],
92 description : 'enable gallium xvmc state tracker.',
98 description : 'path to put xvmc libraries. defaults to $libdir.'
104 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
105 description : 'enable gallium omx state tracker.',
111 description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
117 choices : ['auto', 'true', 'false'],
118 description : 'enable gallium va state tracker.',
124 description : 'path to put va libraries. defaults to $libdir/dri.'
130 choices : ['auto', 'true', 'false'],
131 description : 'enable gallium xa state tracker.',
137 description : 'build gallium "nine" Direct3D 9.x state tracker.',
142 choices : ['icd', 'standalone', 'disabled'],
144 description : 'build gallium "clover" OpenCL state tracker.',
150 description : 'build gallium "clover" OpenCL state tracker with SPIR-V binary support.',
156 description : 'Location of D3D drivers. Default: $libdir/d3d',
162 choices : ['', 'auto', 'amd', 'freedreno', 'intel'],
163 description : 'List of vulkan drivers to build. If this is set to auto all drivers applicable to the target OS/architecture will be built'
169 choices : ['auto', 'true', 'false'],
170 description : 'Build with on-disk shader cache support'
176 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
179 'vulkan-overlay-layer',
182 description : 'Whether to build the vulkan overlay layer'
188 choices : ['auto', 'true', 'false'],
189 description : 'Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere'
195 choices : ['auto', 'true', 'false'],
196 description : 'Build support for OpenGL ES 1.x'
202 choices : ['auto', 'true', 'false'],
203 description : 'Build support for OpenGL ES 2.x and 3.x'
209 description : 'Build support for OpenGL (all versions)'
215 choices : ['auto', 'true', 'false'],
216 description : 'Build support for gbm platform'
222 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
223 description : 'Build support for GLX platform'
229 choices : ['auto', 'true', 'false'],
230 description : 'Build support for EGL platform'
236 description : 'Enable GLVND support.'
239 'glx-read-only-text',
242 description : 'Disable writable .text section on x86 (decreases performance)'
248 choices : ['auto', 'true', 'false'],
249 description : 'Build with LLVM support.'
255 choices : ['auto', 'true', 'false'],
256 description : 'Whether to link LLVM shared or statically.'
262 choices : ['auto', 'true', 'false'],
263 description : 'Build with valgrind support'
269 choices : ['auto', 'true', 'false'],
270 description : 'Use libunwind for stack-traces'
276 choices : ['auto', 'true', 'false'],
277 description : 'Enable HUD lmsensors support.'
283 description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.'
286 'install-intel-gpu-tests',
289 description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
295 description : 'Build an SELinux-aware Mesa'
301 choices : ['none', 'classic', 'gallium'],
302 description : 'Build OSmesa.'
308 choices : ['8', '16', '32'],
309 description : 'Number of channel bits for OSMesa.'
314 value : ['avx', 'avx2'],
315 choices : ['avx', 'avx2', 'knl', 'skx'],
316 description : 'Architectures to build SWR support for.',
322 description : 'Whether to link SWR shared or statically.',
329 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'all'],
330 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
336 choices : ['auto', 'true', 'false'],
337 description : 'Enable power8 optimizations.',
343 choices : ['auto', 'true', 'false'],
344 description : 'Enable VK_EXT_acquire_xlib_display.'
350 description : 'Enable direct rendering in GLX and EGL for DRI',
356 description : 'Prefer new Intel iris driver over older i965 driver'
358 option('egl-lib-suffix',
361 description : 'Suffix to append to EGL library name. Default: none.'
367 description : 'Suffix to append to GLES library names. Default: none.'
370 'platform-sdk-version',
375 description : 'Android Platform SDK version. Default: Nougat version.'
380 choices : ['auto', 'true', 'false'],
382 description : 'Use ZSTD instead of ZLIB in some cases.'