Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 1 | # Copyright © 2017-2018 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 : [ |
| 26 | '', 'auto', 'x11', 'wayland', 'drm', 'surfaceless', 'haiku', 'android', |
| 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( |
| 31 | 'dri3', |
| 32 | type : 'combo', |
| 33 | value : 'auto', |
Dylan Baker | 0589331 | 2017-10-30 10:27:48 -0700 | [diff] [blame] | 34 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 35 | description : 'enable support for dri3' |
| 36 | ) |
| 37 | option( |
| 38 | 'dri-drivers', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 39 | type : 'array', |
| 40 | value : ['auto'], |
| 41 | choices : ['', 'auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'], |
| 42 | 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] | 43 | ) |
| 44 | option( |
| 45 | 'dri-drivers-path', |
| 46 | type : 'string', |
| 47 | value : '', |
Dylan Baker | d7235ef | 2018-01-16 10:36:28 -0800 | [diff] [blame] | 48 | description : 'Location to install dri drivers. Default: $libdir/dri.' |
| 49 | ) |
| 50 | option( |
| 51 | 'dri-search-path', |
| 52 | type : 'string', |
| 53 | value : '', |
| 54 | 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] | 55 | ) |
| 56 | option( |
| 57 | 'gallium-drivers', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 58 | type : 'array', |
| 59 | value : ['auto'], |
| 60 | choices : [ |
Eric Anholt | ed65aee | 2018-10-23 12:33:09 -0700 | [diff] [blame] | 61 | '', 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno', |
Rob Herring | 41a0acd | 2019-01-24 14:03:54 -0600 | [diff] [blame] | 62 | 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl', |
Qiang Yu | 92d7ca4 | 2019-03-12 13:49:26 -0600 | [diff] [blame] | 63 | 'swr', 'panfrost', 'iris', 'lima' |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 64 | ], |
| 65 | 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] | 66 | ) |
| 67 | option( |
Dylan Baker | 7309207 | 2017-11-28 16:31:06 -0800 | [diff] [blame] | 68 | 'gallium-extra-hud', |
| 69 | type : 'boolean', |
| 70 | value : false, |
| 71 | description : 'Enable HUD block/NIC I/O HUD status support', |
| 72 | ) |
| 73 | option( |
Dylan Baker | 68076b8 | 2017-10-30 14:04:21 -0700 | [diff] [blame] | 74 | 'gallium-vdpau', |
| 75 | type : 'combo', |
| 76 | value : 'auto', |
| 77 | choices : ['auto', 'true', 'false'], |
| 78 | description : 'enable gallium vdpau state tracker.', |
| 79 | ) |
| 80 | option( |
| 81 | 'vdpau-libs-path', |
| 82 | type : 'string', |
| 83 | value : '', |
| 84 | description : 'path to put vdpau libraries. defaults to $libdir/vdpau.' |
| 85 | ) |
| 86 | option( |
Dylan Baker | 22a817a | 2017-10-30 14:32:30 -0700 | [diff] [blame] | 87 | 'gallium-xvmc', |
| 88 | type : 'combo', |
| 89 | value : 'auto', |
| 90 | choices : ['auto', 'true', 'false'], |
| 91 | description : 'enable gallium xvmc state tracker.', |
| 92 | ) |
| 93 | option( |
| 94 | 'xvmc-libs-path', |
| 95 | type : 'string', |
| 96 | value : '', |
| 97 | description : 'path to put xvmc libraries. defaults to $libdir.' |
| 98 | ) |
| 99 | option( |
Dylan Baker | 1d36dc6 | 2017-10-30 15:23:06 -0700 | [diff] [blame] | 100 | 'gallium-omx', |
| 101 | type : 'combo', |
Dylan Baker | 34e852d | 2018-03-06 10:11:38 -0800 | [diff] [blame] | 102 | value : 'auto', |
| 103 | choices : ['auto', 'disabled', 'bellagio', 'tizonia'], |
Gurkirpal Singh | bb5e27f | 2018-01-20 05:12:06 +0530 | [diff] [blame] | 104 | description : 'enable gallium omx state tracker.', |
Dylan Baker | 1d36dc6 | 2017-10-30 15:23:06 -0700 | [diff] [blame] | 105 | ) |
| 106 | option( |
| 107 | 'omx-libs-path', |
| 108 | type : 'string', |
| 109 | value : '', |
| 110 | description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.' |
| 111 | ) |
| 112 | option( |
Dylan Baker | 5a785d5 | 2017-10-30 15:49:37 -0700 | [diff] [blame] | 113 | 'gallium-va', |
| 114 | type : 'combo', |
| 115 | value : 'auto', |
| 116 | choices : ['auto', 'true', 'false'], |
| 117 | description : 'enable gallium va state tracker.', |
| 118 | ) |
| 119 | option( |
| 120 | 'va-libs-path', |
| 121 | type : 'string', |
| 122 | value : '', |
| 123 | description : 'path to put va libraries. defaults to $libdir/dri.' |
| 124 | ) |
| 125 | option( |
Dylan Baker | 0ba909f | 2017-10-30 17:40:30 -0700 | [diff] [blame] | 126 | 'gallium-xa', |
| 127 | type : 'combo', |
| 128 | value : 'auto', |
| 129 | choices : ['auto', 'true', 'false'], |
| 130 | description : 'enable gallium xa state tracker.', |
| 131 | ) |
| 132 | option( |
Dylan Baker | 6b4c704 | 2017-11-13 17:58:51 -0800 | [diff] [blame] | 133 | 'gallium-nine', |
| 134 | type : 'boolean', |
| 135 | value : false, |
| 136 | description : 'build gallium "nine" Direct3D 9.x state tracker.', |
| 137 | ) |
| 138 | option( |
Dylan Baker | 42ea063 | 2017-12-08 15:26:00 -0800 | [diff] [blame] | 139 | 'gallium-opencl', |
| 140 | type : 'combo', |
| 141 | choices : ['icd', 'standalone', 'disabled'], |
| 142 | value : 'disabled', |
| 143 | description : 'build gallium "clover" OpenCL state tracker.', |
| 144 | ) |
| 145 | option( |
Dylan Baker | 6b4c704 | 2017-11-13 17:58:51 -0800 | [diff] [blame] | 146 | 'd3d-drivers-path', |
| 147 | type : 'string', |
| 148 | value : '', |
| 149 | description : 'Location of D3D drivers. Default: $libdir/d3d', |
| 150 | ) |
| 151 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 152 | 'vulkan-drivers', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 153 | type : 'array', |
| 154 | value : ['auto'], |
Bas Nieuwenhuizen | 26380b3 | 2018-08-08 22:23:57 +0000 | [diff] [blame] | 155 | choices : ['', 'auto', 'amd', 'freedreno', 'intel'], |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 156 | 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] | 157 | ) |
| 158 | option( |
| 159 | 'shader-cache', |
Dylan Baker | f5eafc2 | 2018-04-18 13:20:28 -0700 | [diff] [blame] | 160 | type : 'combo', |
| 161 | value : 'auto', |
| 162 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 163 | description : 'Build with on-disk shader cache support' |
| 164 | ) |
| 165 | option( |
| 166 | 'vulkan-icd-dir', |
| 167 | type : 'string', |
| 168 | value : '', |
| 169 | description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d' |
| 170 | ) |
| 171 | option( |
Lionel Landwerlin | 20c370c | 2019-01-19 21:26:12 +0000 | [diff] [blame] | 172 | 'vulkan-overlay-layer', |
| 173 | type : 'boolean', |
| 174 | value : false, |
| 175 | description : 'Whether to build the vulkan overlay layer' |
| 176 | ) |
| 177 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 178 | 'shared-glapi', |
| 179 | type : 'boolean', |
| 180 | value : true, |
| 181 | description : 'Whether to build a shared or static glapi' |
| 182 | ) |
| 183 | option( |
| 184 | 'gles1', |
Dylan Baker | ddc15fb | 2018-10-19 09:47:41 -0700 | [diff] [blame] | 185 | type : 'combo', |
| 186 | value : 'auto', |
| 187 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 188 | description : 'Build support for OpenGL ES 1.x' |
| 189 | ) |
| 190 | option( |
| 191 | 'gles2', |
Dylan Baker | ddc15fb | 2018-10-19 09:47:41 -0700 | [diff] [blame] | 192 | type : 'combo', |
| 193 | value : 'auto', |
| 194 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 195 | description : 'Build support for OpenGL ES 2.x and 3.x' |
| 196 | ) |
| 197 | option( |
| 198 | 'opengl', |
| 199 | type : 'boolean', |
| 200 | value : true, |
| 201 | description : 'Build support for OpenGL (all versions)' |
| 202 | ) |
| 203 | option( |
| 204 | 'gbm', |
| 205 | type : 'combo', |
| 206 | value : 'auto', |
Dylan Baker | 0589331 | 2017-10-30 10:27:48 -0700 | [diff] [blame] | 207 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 208 | description : 'Build support for gbm platform' |
| 209 | ) |
| 210 | option( |
| 211 | 'glx', |
| 212 | type : 'combo', |
| 213 | value : 'auto', |
| 214 | choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'], |
| 215 | description : 'Build support for GLX platform' |
| 216 | ) |
| 217 | option( |
Dylan Baker | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 218 | 'egl', |
| 219 | type : 'combo', |
| 220 | value : 'auto', |
Dylan Baker | 0589331 | 2017-10-30 10:27:48 -0700 | [diff] [blame] | 221 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 222 | description : 'Build support for EGL platform' |
| 223 | ) |
| 224 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 225 | 'glvnd', |
| 226 | type : 'boolean', |
| 227 | value : false, |
| 228 | description : 'Enable GLVND support.' |
| 229 | ) |
| 230 | option( |
| 231 | 'asm', |
| 232 | type : 'boolean', |
| 233 | value : true, |
| 234 | description : 'Build assembly code if possible' |
| 235 | ) |
| 236 | option( |
Matt Turner | a5abb2d | 2018-06-06 20:25:09 -0700 | [diff] [blame] | 237 | 'glx-read-only-text', |
| 238 | type : 'boolean', |
| 239 | value : false, |
| 240 | description : 'Disable writable .text section on x86 (decreases performance)' |
| 241 | ) |
| 242 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 243 | 'llvm', |
Dylan Baker | 48f64e5 | 2017-11-17 16:37:50 -0800 | [diff] [blame] | 244 | type : 'combo', |
| 245 | value : 'auto', |
| 246 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 247 | description : 'Build with LLVM support.' |
| 248 | ) |
| 249 | option( |
Christoph Haag | b01834b | 2018-09-18 01:08:07 +0200 | [diff] [blame] | 250 | 'shared-llvm', |
| 251 | type : 'boolean', |
| 252 | value : true, |
| 253 | description : 'Whether to link llvm shared or statically.' |
| 254 | ) |
| 255 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 256 | 'valgrind', |
Erik Faye-Lund | 5c2ff57 | 2017-10-25 10:02:38 +0200 | [diff] [blame] | 257 | type : 'combo', |
| 258 | value : 'auto', |
| 259 | choices : ['auto', 'true', 'false'], |
| 260 | description : 'Build with valgrind support' |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 261 | ) |
| 262 | option( |
Erik Faye-Lund | 9e5a5a1 | 2017-10-23 20:54:03 +0200 | [diff] [blame] | 263 | 'libunwind', |
Erik Faye-Lund | 5c2ff57 | 2017-10-25 10:02:38 +0200 | [diff] [blame] | 264 | type : 'combo', |
| 265 | value : 'auto', |
| 266 | choices : ['auto', 'true', 'false'], |
| 267 | description : 'Use libunwind for stack-traces' |
Erik Faye-Lund | 9e5a5a1 | 2017-10-23 20:54:03 +0200 | [diff] [blame] | 268 | ) |
| 269 | option( |
Dylan Baker | 5e71efe | 2017-11-28 16:42:37 -0800 | [diff] [blame] | 270 | 'lmsensors', |
| 271 | type : 'combo', |
| 272 | value : 'auto', |
| 273 | choices : ['auto', 'true', 'false'], |
| 274 | description : 'Enable HUD lmsensors support.' |
| 275 | ) |
| 276 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 277 | 'build-tests', |
| 278 | type : 'boolean', |
| 279 | value : false, |
| 280 | description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.' |
| 281 | ) |
| 282 | option( |
Jason Ekstrand | 8b8deec | 2019-04-02 10:26:09 -0500 | [diff] [blame] | 283 | 'install-intel-gpu-tests', |
| 284 | type : 'boolean', |
| 285 | value : false, |
| 286 | description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.' |
| 287 | ) |
| 288 | option( |
Eric Engestrom | 4b9421d | 2017-10-26 16:19:41 +0100 | [diff] [blame] | 289 | 'selinux', |
| 290 | type : 'boolean', |
| 291 | value : false, |
| 292 | description : 'Build an SELinux-aware Mesa' |
| 293 | ) |
Dylan Baker | cbbd5bb | 2017-10-20 21:48:18 -0700 | [diff] [blame] | 294 | option( |
| 295 | 'osmesa', |
| 296 | type : 'combo', |
| 297 | value : 'none', |
Dylan Baker | f121a66 | 2017-10-24 15:52:57 -0700 | [diff] [blame] | 298 | choices : ['none', 'classic', 'gallium'], |
Dylan Baker | cbbd5bb | 2017-10-20 21:48:18 -0700 | [diff] [blame] | 299 | description : 'Build OSmesa.' |
| 300 | ) |
| 301 | option( |
| 302 | 'osmesa-bits', |
| 303 | type : 'combo', |
| 304 | value : '8', |
| 305 | choices : ['8', '16', '32'], |
| 306 | description : 'Number of channel bits for OSMesa.' |
| 307 | ) |
Dylan Baker | e0b037d | 2017-11-29 17:50:05 -0800 | [diff] [blame] | 308 | option( |
| 309 | 'swr-arches', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 310 | type : 'array', |
| 311 | value : ['avx', 'avx2'], |
| 312 | choices : ['avx', 'avx2', 'knl', 'skx'], |
| 313 | description : 'Architectures to build SWR support for.', |
Dylan Baker | e0b037d | 2017-11-29 17:50:05 -0800 | [diff] [blame] | 314 | ) |
Scott D Phillips | 1f4d243 | 2018-02-07 16:55:24 -0800 | [diff] [blame] | 315 | option( |
| 316 | 'tools', |
Dylan Baker | 5608d0a | 2018-04-16 15:18:08 -0700 | [diff] [blame] | 317 | type : 'array', |
| 318 | value : [], |
Christian Gmeiner | 7ea8e54 | 2018-12-13 21:07:23 +0100 | [diff] [blame] | 319 | choices : ['etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'all'], |
Eric Engestrom | 0bbee28 | 2018-10-30 11:26:46 +0000 | [diff] [blame] | 320 | description : 'List of tools to build. (Note: `intel-ui` selects `intel`)', |
Scott D Phillips | 1f4d243 | 2018-02-07 16:55:24 -0800 | [diff] [blame] | 321 | ) |
Dylan Baker | 34bbb24 | 2018-06-07 11:13:34 -0700 | [diff] [blame] | 322 | option( |
| 323 | 'power8', |
| 324 | type : 'combo', |
| 325 | value : 'auto', |
| 326 | choices : ['auto', 'true', 'false'], |
| 327 | description : 'Enable power8 optimizations.', |
| 328 | ) |
Keith Packard | 7ab1fff | 2018-02-09 07:45:58 -0800 | [diff] [blame] | 329 | option( |
| 330 | 'xlib-lease', |
| 331 | type : 'combo', |
| 332 | value : 'auto', |
| 333 | choices : ['auto', 'true', 'false'], |
| 334 | description : 'Enable VK_EXT_acquire_xlib_display.' |
| 335 | ) |
Dylan Baker | 7a90886 | 2018-12-04 10:06:08 -0800 | [diff] [blame] | 336 | option( |
| 337 | 'glx-direct', |
| 338 | type : 'boolean', |
| 339 | value : true, |
| 340 | description : 'Enable direct rendering in GLX and EGL for DRI', |
| 341 | ) |
Chia-I Wu | 4f863dc | 2019-03-08 11:27:50 -0800 | [diff] [blame] | 342 | option( |
| 343 | 'I-love-half-baked-turnips', |
| 344 | type : 'boolean', |
| 345 | value : false, |
| 346 | description : 'Allow work-in-progress freedreno vulkan driver to be enabled', |
| 347 | ) |
Benjamin Gordon | b30aad5 | 2018-06-13 16:17:32 -0600 | [diff] [blame] | 348 | option('egl-lib-suffix', |
| 349 | type : 'string', |
| 350 | value : '', |
| 351 | description : 'Suffix to append to EGL library name. Default: none.' |
| 352 | ) |
| 353 | option( |
| 354 | 'gles-lib-suffix', |
| 355 | type : 'string', |
| 356 | value : '', |
| 357 | description : 'Suffix to append to GLES library names. Default: none.' |
| 358 | ) |
Gurchetan Singh | b070861 | 2019-03-15 10:08:45 -0700 | [diff] [blame] | 359 | option( |
| 360 | 'platform-sdk-version', |
| 361 | type : 'integer', |
| 362 | min : 25, |
| 363 | max : 28, |
| 364 | value : 25, |
| 365 | description : 'Android Platform SDK version. Default: Nougat version.' |
| 366 | ) |