Dylan Baker | a8d9410 | 2019-10-31 13:26:00 -0700 | [diff] [blame] | 1 | # Copyright © 2017-2019 Intel Corporation |
Dylan Baker | d199225 | 2017-09-14 17:57:17 -0700 | [diff] [blame] | 2 | |
| 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 Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 21 | option( |
| 22 | 'platforms', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 23 | type : 'array', |
| 24 | value : ['auto'], |
| 25 | choices : [ |
Eric Engestrom | 48bcf3b | 2020-07-10 16:11:46 +0200 | [diff] [blame] | 26 | 'auto', 'x11', 'wayland', 'haiku', 'android', 'windows', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 27 | ], |
Eric Engestrom | 8629d80 | 2018-10-11 16:38:24 +0100 | [diff] [blame] | 28 | description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.' |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 29 | ) |
| 30 | option( |
Kristian H. Kristensen | 932f51d | 2020-07-28 15:25:49 -0700 | [diff] [blame] | 31 | 'android-stub', |
| 32 | type : 'boolean', |
| 33 | value : false, |
| 34 | description : 'Build against android-stub', |
| 35 | ) |
| 36 | |
| 37 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 38 | 'dri3', |
| 39 | type : 'combo', |
| 40 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 41 | choices : ['auto', 'true', 'false', 'disabled', 'enabled'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 42 | description : 'enable support for dri3' |
| 43 | ) |
| 44 | option( |
| 45 | 'dri-drivers', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 46 | type : 'array', |
| 47 | value : ['auto'], |
Eric Engestrom | d321446 | 2018-05-14 16:40:47 +0100 | [diff] [blame] | 48 | choices : ['auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'], |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 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' |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 50 | ) |
| 51 | option( |
| 52 | 'dri-drivers-path', |
| 53 | type : 'string', |
| 54 | value : '', |
Dylan Baker | d7235ef | 2018-01-16 10:36:28 -0800 | [diff] [blame] | 55 | description : 'Location to install dri drivers. Default: $libdir/dri.' |
| 56 | ) |
| 57 | option( |
| 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 Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 62 | ) |
| 63 | option( |
| 64 | 'gallium-drivers', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 65 | type : 'array', |
| 66 | value : ['auto'], |
| 67 | choices : [ |
Eric Engestrom | d321446 | 2018-05-14 16:40:47 +0100 | [diff] [blame] | 68 | 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno', |
Rob Herring | 41a0acd | 2019-01-24 14:03:54 -0600 | [diff] [blame] | 69 | 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl', |
Erik Faye-Lund | 8d46e35 | 2018-08-31 16:50:20 +0200 | [diff] [blame] | 70 | 'swr', 'panfrost', 'iris', 'lima', 'zink' |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 71 | ], |
| 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 Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 73 | ) |
| 74 | option( |
Dylan Baker | 7309207 | 2017-11-28 16:31:06 -0800 | [diff] [blame] | 75 | 'gallium-extra-hud', |
| 76 | type : 'boolean', |
| 77 | value : false, |
| 78 | description : 'Enable HUD block/NIC I/O HUD status support', |
| 79 | ) |
| 80 | option( |
Dylan Baker | 68076b8 | 2017-10-30 14:04:21 -0700 | [diff] [blame] | 81 | 'gallium-vdpau', |
| 82 | type : 'combo', |
| 83 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 84 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Marek Olšák | 8c9b9aa | 2019-12-03 20:38:14 -0500 | [diff] [blame] | 85 | description : 'enable gallium vdpau frontend.', |
Dylan Baker | 68076b8 | 2017-10-30 14:04:21 -0700 | [diff] [blame] | 86 | ) |
| 87 | option( |
| 88 | 'vdpau-libs-path', |
| 89 | type : 'string', |
| 90 | value : '', |
| 91 | description : 'path to put vdpau libraries. defaults to $libdir/vdpau.' |
| 92 | ) |
| 93 | option( |
Dylan Baker | 22a817a | 2017-10-30 14:32:30 -0700 | [diff] [blame] | 94 | 'gallium-xvmc', |
| 95 | type : 'combo', |
| 96 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 97 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Marek Olšák | 8c9b9aa | 2019-12-03 20:38:14 -0500 | [diff] [blame] | 98 | description : 'enable gallium xvmc frontend.', |
Dylan Baker | 22a817a | 2017-10-30 14:32:30 -0700 | [diff] [blame] | 99 | ) |
| 100 | option( |
| 101 | 'xvmc-libs-path', |
| 102 | type : 'string', |
| 103 | value : '', |
| 104 | description : 'path to put xvmc libraries. defaults to $libdir.' |
| 105 | ) |
| 106 | option( |
Dylan Baker | 1d36dc6 | 2017-10-30 15:23:06 -0700 | [diff] [blame] | 107 | 'gallium-omx', |
| 108 | type : 'combo', |
Dylan Baker | 34e852d | 2018-03-06 10:11:38 -0800 | [diff] [blame] | 109 | value : 'auto', |
| 110 | choices : ['auto', 'disabled', 'bellagio', 'tizonia'], |
Marek Olšák | 8c9b9aa | 2019-12-03 20:38:14 -0500 | [diff] [blame] | 111 | description : 'enable gallium omx frontend.', |
Dylan Baker | 1d36dc6 | 2017-10-30 15:23:06 -0700 | [diff] [blame] | 112 | ) |
| 113 | option( |
| 114 | 'omx-libs-path', |
| 115 | type : 'string', |
| 116 | value : '', |
| 117 | description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.' |
| 118 | ) |
| 119 | option( |
Dylan Baker | 5a785d5 | 2017-10-30 15:49:37 -0700 | [diff] [blame] | 120 | 'gallium-va', |
| 121 | type : 'combo', |
| 122 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 123 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Marek Olšák | 8c9b9aa | 2019-12-03 20:38:14 -0500 | [diff] [blame] | 124 | description : 'enable gallium va frontend.', |
Dylan Baker | 5a785d5 | 2017-10-30 15:49:37 -0700 | [diff] [blame] | 125 | ) |
| 126 | option( |
| 127 | 'va-libs-path', |
| 128 | type : 'string', |
| 129 | value : '', |
| 130 | description : 'path to put va libraries. defaults to $libdir/dri.' |
| 131 | ) |
| 132 | option( |
Dylan Baker | 0ba909f | 2017-10-30 17:40:30 -0700 | [diff] [blame] | 133 | 'gallium-xa', |
| 134 | type : 'combo', |
| 135 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 136 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Marek Olšák | 8c9b9aa | 2019-12-03 20:38:14 -0500 | [diff] [blame] | 137 | description : 'enable gallium xa frontend.', |
Dylan Baker | 0ba909f | 2017-10-30 17:40:30 -0700 | [diff] [blame] | 138 | ) |
| 139 | option( |
Dylan Baker | 6b4c704 | 2017-11-13 17:58:51 -0800 | [diff] [blame] | 140 | 'gallium-nine', |
| 141 | type : 'boolean', |
| 142 | value : false, |
Marek Olšák | 8c9b9aa | 2019-12-03 20:38:14 -0500 | [diff] [blame] | 143 | description : 'build gallium "nine" Direct3D 9.x frontend.', |
Dylan Baker | 6b4c704 | 2017-11-13 17:58:51 -0800 | [diff] [blame] | 144 | ) |
| 145 | option( |
Dylan Baker | 42ea063 | 2017-12-08 15:26:00 -0800 | [diff] [blame] | 146 | 'gallium-opencl', |
| 147 | type : 'combo', |
| 148 | choices : ['icd', 'standalone', 'disabled'], |
| 149 | value : 'disabled', |
Marek Olšák | 8c9b9aa | 2019-12-03 20:38:14 -0500 | [diff] [blame] | 150 | description : 'build gallium "clover" OpenCL frontend.', |
Dylan Baker | 42ea063 | 2017-12-08 15:26:00 -0800 | [diff] [blame] | 151 | ) |
| 152 | option( |
Pierre Moreau | 866f6f1 | 2018-01-21 19:10:58 +0100 | [diff] [blame] | 153 | 'opencl-spirv', |
| 154 | type : 'boolean', |
| 155 | value : false, |
Marek Olšák | 8c9b9aa | 2019-12-03 20:38:14 -0500 | [diff] [blame] | 156 | description : 'build gallium "clover" OpenCL frontend with SPIR-V binary support.', |
Pierre Moreau | 866f6f1 | 2018-01-21 19:10:58 +0100 | [diff] [blame] | 157 | ) |
| 158 | option( |
Jason Ekstrand | ef453f5 | 2020-10-06 11:26:07 -0500 | [diff] [blame] | 159 | 'static-libclc', |
| 160 | type : 'array', |
| 161 | value : [], |
| 162 | choices : ['spirv', 'spirv64', 'all'], |
| 163 | description : 'Link libclc SPIR-V statically.', |
| 164 | ) |
| 165 | option( |
Dylan Baker | 6b4c704 | 2017-11-13 17:58:51 -0800 | [diff] [blame] | 166 | 'd3d-drivers-path', |
| 167 | type : 'string', |
| 168 | value : '', |
| 169 | description : 'Location of D3D drivers. Default: $libdir/d3d', |
| 170 | ) |
| 171 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 172 | 'vulkan-drivers', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 173 | type : 'array', |
| 174 | value : ['auto'], |
Alejandro Piñeiro | e5034f0 | 2019-11-25 16:29:12 +0100 | [diff] [blame] | 175 | choices : ['auto', 'amd', 'broadcom', 'freedreno', 'intel', 'swrast'], |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 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' |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 177 | ) |
| 178 | option( |
Kristian H. Kristensen | e807584 | 2020-04-07 12:36:20 -0700 | [diff] [blame] | 179 | 'freedreno-kgsl', |
| 180 | type : 'boolean', |
| 181 | value : false, |
| 182 | description : 'use kgsl backend for freedreno vulkan driver', |
| 183 | ) |
| 184 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 185 | 'shader-cache', |
Dylan Baker | f5eafc2 | 2018-04-18 13:20:28 -0700 | [diff] [blame] | 186 | type : 'combo', |
| 187 | value : 'auto', |
Dylan Baker | 0a39350 | 2020-11-19 16:09:22 -0800 | [diff] [blame] | 188 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
| 189 | description : 'Build with on-disk shader cache support.', |
| 190 | ) |
| 191 | option( |
| 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 Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 196 | ) |
| 197 | option( |
| 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 | ) |
| 203 | option( |
Lionel Landwerlin | 20c370c | 2019-01-19 21:26:12 +0000 | [diff] [blame] | 204 | 'vulkan-overlay-layer', |
| 205 | type : 'boolean', |
| 206 | value : false, |
| 207 | description : 'Whether to build the vulkan overlay layer' |
| 208 | ) |
| 209 | option( |
Dave Airlie | 9bc5b2d | 2020-03-30 09:38:38 +1000 | [diff] [blame] | 210 | 'vulkan-device-select-layer', |
| 211 | type : 'boolean', |
| 212 | value : false, |
| 213 | description : 'Whether to build the vulkan device select layer' |
| 214 | ) |
| 215 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 216 | 'shared-glapi', |
Dylan Baker | 8424209 | 2019-05-31 16:16:22 -0700 | [diff] [blame] | 217 | type : 'combo', |
| 218 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 219 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Dylan Baker | 8424209 | 2019-05-31 16:16:22 -0700 | [diff] [blame] | 220 | description : 'Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere' |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 221 | ) |
| 222 | option( |
| 223 | 'gles1', |
Dylan Baker | ddc15fb | 2018-10-19 09:47:41 -0700 | [diff] [blame] | 224 | type : 'combo', |
| 225 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 226 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 227 | description : 'Build support for OpenGL ES 1.x' |
| 228 | ) |
| 229 | option( |
| 230 | 'gles2', |
Dylan Baker | ddc15fb | 2018-10-19 09:47:41 -0700 | [diff] [blame] | 231 | type : 'combo', |
| 232 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 233 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 234 | description : 'Build support for OpenGL ES 2.x and 3.x' |
| 235 | ) |
| 236 | option( |
| 237 | 'opengl', |
| 238 | type : 'boolean', |
| 239 | value : true, |
| 240 | description : 'Build support for OpenGL (all versions)' |
| 241 | ) |
| 242 | option( |
| 243 | 'gbm', |
| 244 | type : 'combo', |
| 245 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 246 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 247 | description : 'Build support for gbm platform' |
| 248 | ) |
| 249 | option( |
| 250 | 'glx', |
| 251 | type : 'combo', |
| 252 | value : 'auto', |
| 253 | choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'], |
| 254 | description : 'Build support for GLX platform' |
| 255 | ) |
| 256 | option( |
Dylan Baker | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 257 | 'egl', |
| 258 | type : 'combo', |
| 259 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 260 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Dylan Baker | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 261 | description : 'Build support for EGL platform' |
| 262 | ) |
| 263 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 264 | 'glvnd', |
| 265 | type : 'boolean', |
| 266 | value : false, |
| 267 | description : 'Enable GLVND support.' |
| 268 | ) |
| 269 | option( |
Matt Turner | a5abb2d | 2018-06-06 20:25:09 -0700 | [diff] [blame] | 270 | 'glx-read-only-text', |
| 271 | type : 'boolean', |
| 272 | value : false, |
| 273 | description : 'Disable writable .text section on x86 (decreases performance)' |
| 274 | ) |
| 275 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 276 | 'llvm', |
Dylan Baker | 48f64e5 | 2017-11-17 16:37:50 -0800 | [diff] [blame] | 277 | type : 'combo', |
| 278 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 279 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 280 | description : 'Build with LLVM support.' |
| 281 | ) |
| 282 | option( |
Christoph Haag | b01834b | 2018-09-18 01:08:07 +0200 | [diff] [blame] | 283 | 'shared-llvm', |
Daniel Stone | 9ecd946 | 2020-04-14 17:41:00 +0100 | [diff] [blame] | 284 | type : 'combo', |
| 285 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 286 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Daniel Stone | 9ecd946 | 2020-04-14 17:41:00 +0100 | [diff] [blame] | 287 | description : 'Whether to link LLVM shared or statically.' |
Christoph Haag | b01834b | 2018-09-18 01:08:07 +0200 | [diff] [blame] | 288 | ) |
| 289 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 290 | 'valgrind', |
Erik Faye-Lund | 5c2ff57 | 2017-10-25 10:02:38 +0200 | [diff] [blame] | 291 | type : 'combo', |
| 292 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 293 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Erik Faye-Lund | 5c2ff57 | 2017-10-25 10:02:38 +0200 | [diff] [blame] | 294 | description : 'Build with valgrind support' |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 295 | ) |
| 296 | option( |
Erik Faye-Lund | 9e5a5a1 | 2017-10-23 20:54:03 +0200 | [diff] [blame] | 297 | 'libunwind', |
Erik Faye-Lund | 5c2ff57 | 2017-10-25 10:02:38 +0200 | [diff] [blame] | 298 | type : 'combo', |
| 299 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 300 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Erik Faye-Lund | 5c2ff57 | 2017-10-25 10:02:38 +0200 | [diff] [blame] | 301 | description : 'Use libunwind for stack-traces' |
Erik Faye-Lund | 9e5a5a1 | 2017-10-23 20:54:03 +0200 | [diff] [blame] | 302 | ) |
| 303 | option( |
Dylan Baker | 5e71efe | 2017-11-28 16:42:37 -0800 | [diff] [blame] | 304 | 'lmsensors', |
| 305 | type : 'combo', |
| 306 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 307 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Dylan Baker | 5e71efe | 2017-11-28 16:42:37 -0800 | [diff] [blame] | 308 | description : 'Enable HUD lmsensors support.' |
| 309 | ) |
| 310 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 311 | 'build-tests', |
| 312 | type : 'boolean', |
| 313 | value : false, |
Rhys Perry | e6366f9 | 2020-01-22 19:58:27 +0000 | [diff] [blame] | 314 | description : 'Build unit tests. Currently this will build *all* unit tests except the ACO tests, which may build more than expected.' |
| 315 | ) |
| 316 | option( |
| 317 | 'build-aco-tests', |
| 318 | type : 'boolean', |
| 319 | value : false, |
Rhys Perry | d488d0f | 2020-02-14 11:32:18 +0000 | [diff] [blame] | 320 | description : 'Build ACO tests. These require RADV and glslang but not an AMD GPU.' |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 321 | ) |
| 322 | option( |
Jason Ekstrand | 8b8deec | 2019-04-02 10:26:09 -0500 | [diff] [blame] | 323 | '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 | ) |
| 328 | option( |
Eric Engestrom | 4b9421d | 2017-10-26 16:19:41 +0100 | [diff] [blame] | 329 | 'selinux', |
| 330 | type : 'boolean', |
| 331 | value : false, |
| 332 | description : 'Build an SELinux-aware Mesa' |
| 333 | ) |
Dylan Baker | cbbd5bb | 2017-10-20 21:48:18 -0700 | [diff] [blame] | 334 | option( |
| 335 | 'osmesa', |
| 336 | type : 'combo', |
| 337 | value : 'none', |
Dylan Baker | f121a66 | 2017-10-24 15:52:57 -0700 | [diff] [blame] | 338 | choices : ['none', 'classic', 'gallium'], |
Dylan Baker | cbbd5bb | 2017-10-20 21:48:18 -0700 | [diff] [blame] | 339 | description : 'Build OSmesa.' |
| 340 | ) |
| 341 | option( |
| 342 | 'osmesa-bits', |
| 343 | type : 'combo', |
| 344 | value : '8', |
| 345 | choices : ['8', '16', '32'], |
| 346 | description : 'Number of channel bits for OSMesa.' |
| 347 | ) |
Dylan Baker | e0b037d | 2017-11-29 17:50:05 -0800 | [diff] [blame] | 348 | option( |
| 349 | 'swr-arches', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 350 | type : 'array', |
| 351 | value : ['avx', 'avx2'], |
| 352 | choices : ['avx', 'avx2', 'knl', 'skx'], |
| 353 | description : 'Architectures to build SWR support for.', |
Dylan Baker | e0b037d | 2017-11-29 17:50:05 -0800 | [diff] [blame] | 354 | ) |
Scott D Phillips | 1f4d243 | 2018-02-07 16:55:24 -0800 | [diff] [blame] | 355 | option( |
Krzysztof Raszkowski | bf74a7f | 2020-01-22 12:26:45 +0100 | [diff] [blame] | 356 | 'shared-swr', |
| 357 | type : 'boolean', |
| 358 | value : true, |
| 359 | description : 'Whether to link SWR shared or statically.', |
| 360 | ) |
| 361 | |
| 362 | option( |
Scott D Phillips | 1f4d243 | 2018-02-07 16:55:24 -0800 | [diff] [blame] | 363 | 'tools', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 364 | type : 'array', |
| 365 | value : [], |
Qiang Yu | 07b0fbe | 2020-04-24 16:20:25 +0800 | [diff] [blame] | 366 | choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'panfrost', 'all'], |
Eric Engestrom | 0bbee28 | 2018-10-30 11:26:46 +0000 | [diff] [blame] | 367 | description : 'List of tools to build. (Note: `intel-ui` selects `intel`)', |
Scott D Phillips | 1f4d243 | 2018-02-07 16:55:24 -0800 | [diff] [blame] | 368 | ) |
Dylan Baker | 34bbb24 | 2018-06-07 11:13:34 -0700 | [diff] [blame] | 369 | option( |
| 370 | 'power8', |
| 371 | type : 'combo', |
| 372 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 373 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Dylan Baker | 34bbb24 | 2018-06-07 11:13:34 -0700 | [diff] [blame] | 374 | description : 'Enable power8 optimizations.', |
| 375 | ) |
Keith Packard | 7ab1fff | 2018-02-09 07:45:58 -0800 | [diff] [blame] | 376 | option( |
| 377 | 'xlib-lease', |
| 378 | type : 'combo', |
| 379 | value : 'auto', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 380 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Keith Packard | 7ab1fff | 2018-02-09 07:45:58 -0800 | [diff] [blame] | 381 | description : 'Enable VK_EXT_acquire_xlib_display.' |
| 382 | ) |
Dylan Baker | 7a90886 | 2018-12-04 10:06:08 -0800 | [diff] [blame] | 383 | option( |
| 384 | 'glx-direct', |
| 385 | type : 'boolean', |
| 386 | value : true, |
| 387 | description : 'Enable direct rendering in GLX and EGL for DRI', |
| 388 | ) |
Chia-I Wu | 4f863dc | 2019-03-08 11:27:50 -0800 | [diff] [blame] | 389 | option( |
Kenneth Graunke | dbe923b | 2019-11-22 22:18:58 -0800 | [diff] [blame] | 390 | 'prefer-iris', |
| 391 | type : 'boolean', |
Kenneth Graunke | adaa358 | 2019-11-22 22:24:52 -0800 | [diff] [blame] | 392 | value : true, |
Kenneth Graunke | dbe923b | 2019-11-22 22:18:58 -0800 | [diff] [blame] | 393 | description : 'Prefer new Intel iris driver over older i965 driver' |
| 394 | ) |
Benjamin Gordon | b30aad5 | 2018-06-13 16:17:32 -0600 | [diff] [blame] | 395 | option('egl-lib-suffix', |
| 396 | type : 'string', |
| 397 | value : '', |
| 398 | description : 'Suffix to append to EGL library name. Default: none.' |
| 399 | ) |
| 400 | option( |
| 401 | 'gles-lib-suffix', |
| 402 | type : 'string', |
| 403 | value : '', |
| 404 | description : 'Suffix to append to GLES library names. Default: none.' |
| 405 | ) |
Gurchetan Singh | b070861 | 2019-03-15 10:08:45 -0700 | [diff] [blame] | 406 | option( |
| 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 Baker | a8d9410 | 2019-10-31 13:26:00 -0700 | [diff] [blame] | 414 | option( |
| 415 | 'zstd', |
| 416 | type : 'combo', |
Dylan Baker | 138c003 | 2020-05-19 14:01:47 -0700 | [diff] [blame] | 417 | choices : ['auto', 'true', 'false', 'enabled', 'disabled'], |
Dylan Baker | a8d9410 | 2019-10-31 13:26:00 -0700 | [diff] [blame] | 418 | value : 'auto', |
| 419 | description : 'Use ZSTD instead of ZLIB in some cases.' |
| 420 | ) |