Dylan Baker | d199225 | 2017-09-14 17:57:17 -0700 | [diff] [blame] | 1 | # Copyright © 2017 Intel Corporation |
| 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', |
| 23 | type : 'string', |
Dylan Baker | 4b61b07 | 2017-11-15 17:31:32 -0800 | [diff] [blame] | 24 | value : 'auto', |
| 25 | description : 'comma separated list of window systems to support. If this is set to auto all platforms applicable to the OS will be enabled.' |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 26 | ) |
| 27 | option( |
| 28 | 'dri3', |
| 29 | type : 'combo', |
| 30 | value : 'auto', |
Dylan Baker | 0589331 | 2017-10-30 10:27:48 -0700 | [diff] [blame] | 31 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 32 | description : 'enable support for dri3' |
| 33 | ) |
| 34 | option( |
| 35 | 'dri-drivers', |
| 36 | type : 'string', |
Dylan Baker | 1873327 | 2017-10-30 10:17:22 -0700 | [diff] [blame] | 37 | value : 'auto', |
| 38 | description : 'comma separated 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] | 39 | ) |
| 40 | option( |
| 41 | 'dri-drivers-path', |
| 42 | type : 'string', |
| 43 | value : '', |
Dylan Baker | 2a99c52 | 2018-01-16 10:36:28 -0800 | [diff] [blame] | 44 | description : 'Location to install dri drivers. Default: $libdir/dri.' |
| 45 | ) |
| 46 | option( |
| 47 | 'dri-search-path', |
| 48 | type : 'string', |
| 49 | value : '', |
| 50 | 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] | 51 | ) |
| 52 | option( |
| 53 | 'gallium-drivers', |
| 54 | type : 'string', |
Dylan Baker | 1873327 | 2017-10-30 10:17:22 -0700 | [diff] [blame] | 55 | value : 'auto', |
| 56 | description : 'comma separated 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] | 57 | ) |
| 58 | option( |
Dylan Baker | 7309207 | 2017-11-28 16:31:06 -0800 | [diff] [blame] | 59 | 'gallium-extra-hud', |
| 60 | type : 'boolean', |
| 61 | value : false, |
| 62 | description : 'Enable HUD block/NIC I/O HUD status support', |
| 63 | ) |
| 64 | option( |
Dylan Baker | 68076b8 | 2017-10-30 14:04:21 -0700 | [diff] [blame] | 65 | 'gallium-vdpau', |
| 66 | type : 'combo', |
| 67 | value : 'auto', |
| 68 | choices : ['auto', 'true', 'false'], |
| 69 | description : 'enable gallium vdpau state tracker.', |
| 70 | ) |
| 71 | option( |
| 72 | 'vdpau-libs-path', |
| 73 | type : 'string', |
| 74 | value : '', |
| 75 | description : 'path to put vdpau libraries. defaults to $libdir/vdpau.' |
| 76 | ) |
| 77 | option( |
Dylan Baker | 22a817a | 2017-10-30 14:32:30 -0700 | [diff] [blame] | 78 | 'gallium-xvmc', |
| 79 | type : 'combo', |
| 80 | value : 'auto', |
| 81 | choices : ['auto', 'true', 'false'], |
| 82 | description : 'enable gallium xvmc state tracker.', |
| 83 | ) |
| 84 | option( |
| 85 | 'xvmc-libs-path', |
| 86 | type : 'string', |
| 87 | value : '', |
| 88 | description : 'path to put xvmc libraries. defaults to $libdir.' |
| 89 | ) |
| 90 | option( |
Dylan Baker | 1d36dc6 | 2017-10-30 15:23:06 -0700 | [diff] [blame] | 91 | 'gallium-omx', |
| 92 | type : 'combo', |
| 93 | value : 'auto', |
| 94 | choices : ['auto', 'true', 'false'], |
| 95 | description : 'enable gallium omx bellagio state tracker.', |
| 96 | ) |
| 97 | option( |
| 98 | 'omx-libs-path', |
| 99 | type : 'string', |
| 100 | value : '', |
| 101 | description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.' |
| 102 | ) |
| 103 | option( |
Dylan Baker | 5a785d5 | 2017-10-30 15:49:37 -0700 | [diff] [blame] | 104 | 'gallium-va', |
| 105 | type : 'combo', |
| 106 | value : 'auto', |
| 107 | choices : ['auto', 'true', 'false'], |
| 108 | description : 'enable gallium va state tracker.', |
| 109 | ) |
| 110 | option( |
| 111 | 'va-libs-path', |
| 112 | type : 'string', |
| 113 | value : '', |
| 114 | description : 'path to put va libraries. defaults to $libdir/dri.' |
| 115 | ) |
| 116 | option( |
Dylan Baker | 0ba909f | 2017-10-30 17:40:30 -0700 | [diff] [blame] | 117 | 'gallium-xa', |
| 118 | type : 'combo', |
| 119 | value : 'auto', |
| 120 | choices : ['auto', 'true', 'false'], |
| 121 | description : 'enable gallium xa state tracker.', |
| 122 | ) |
| 123 | option( |
Dylan Baker | 6b4c704 | 2017-11-13 17:58:51 -0800 | [diff] [blame] | 124 | 'gallium-nine', |
| 125 | type : 'boolean', |
| 126 | value : false, |
| 127 | description : 'build gallium "nine" Direct3D 9.x state tracker.', |
| 128 | ) |
| 129 | option( |
Dylan Baker | 42ea063 | 2017-12-08 15:26:00 -0800 | [diff] [blame] | 130 | 'gallium-opencl', |
| 131 | type : 'combo', |
| 132 | choices : ['icd', 'standalone', 'disabled'], |
| 133 | value : 'disabled', |
| 134 | description : 'build gallium "clover" OpenCL state tracker.', |
| 135 | ) |
| 136 | option( |
Dylan Baker | 6b4c704 | 2017-11-13 17:58:51 -0800 | [diff] [blame] | 137 | 'd3d-drivers-path', |
| 138 | type : 'string', |
| 139 | value : '', |
| 140 | description : 'Location of D3D drivers. Default: $libdir/d3d', |
| 141 | ) |
| 142 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 143 | 'vulkan-drivers', |
| 144 | type : 'string', |
Dylan Baker | 1873327 | 2017-10-30 10:17:22 -0700 | [diff] [blame] | 145 | value : 'auto', |
| 146 | description : 'comma separated 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] | 147 | ) |
| 148 | option( |
| 149 | 'shader-cache', |
| 150 | type : 'boolean', |
| 151 | value : true, |
| 152 | description : 'Build with on-disk shader cache support' |
| 153 | ) |
| 154 | option( |
| 155 | 'vulkan-icd-dir', |
| 156 | type : 'string', |
| 157 | value : '', |
| 158 | description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d' |
| 159 | ) |
| 160 | option( |
| 161 | 'shared-glapi', |
| 162 | type : 'boolean', |
| 163 | value : true, |
| 164 | description : 'Whether to build a shared or static glapi' |
| 165 | ) |
| 166 | option( |
| 167 | 'gles1', |
| 168 | type : 'boolean', |
| 169 | value : true, |
| 170 | description : 'Build support for OpenGL ES 1.x' |
| 171 | ) |
| 172 | option( |
| 173 | 'gles2', |
| 174 | type : 'boolean', |
| 175 | value : true, |
| 176 | description : 'Build support for OpenGL ES 2.x and 3.x' |
| 177 | ) |
| 178 | option( |
| 179 | 'opengl', |
| 180 | type : 'boolean', |
| 181 | value : true, |
| 182 | description : 'Build support for OpenGL (all versions)' |
| 183 | ) |
| 184 | option( |
| 185 | 'gbm', |
| 186 | type : 'combo', |
| 187 | value : 'auto', |
Dylan Baker | 0589331 | 2017-10-30 10:27:48 -0700 | [diff] [blame] | 188 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 189 | description : 'Build support for gbm platform' |
| 190 | ) |
| 191 | option( |
| 192 | 'glx', |
| 193 | type : 'combo', |
| 194 | value : 'auto', |
| 195 | choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'], |
| 196 | description : 'Build support for GLX platform' |
| 197 | ) |
| 198 | option( |
Dylan Baker | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 199 | 'egl', |
| 200 | type : 'combo', |
| 201 | value : 'auto', |
Dylan Baker | 0589331 | 2017-10-30 10:27:48 -0700 | [diff] [blame] | 202 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 203 | description : 'Build support for EGL platform' |
| 204 | ) |
| 205 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 206 | 'glvnd', |
| 207 | type : 'boolean', |
| 208 | value : false, |
| 209 | description : 'Enable GLVND support.' |
| 210 | ) |
| 211 | option( |
| 212 | 'asm', |
| 213 | type : 'boolean', |
| 214 | value : true, |
| 215 | description : 'Build assembly code if possible' |
| 216 | ) |
| 217 | option( |
| 218 | 'llvm', |
Dylan Baker | 48f64e5 | 2017-11-17 16:37:50 -0800 | [diff] [blame] | 219 | type : 'combo', |
| 220 | value : 'auto', |
| 221 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 222 | description : 'Build with LLVM support.' |
| 223 | ) |
| 224 | option( |
| 225 | 'valgrind', |
Erik Faye-Lund | 5c2ff57 | 2017-10-25 10:02:38 +0200 | [diff] [blame] | 226 | type : 'combo', |
| 227 | value : 'auto', |
| 228 | choices : ['auto', 'true', 'false'], |
| 229 | description : 'Build with valgrind support' |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 230 | ) |
| 231 | option( |
Erik Faye-Lund | 9e5a5a1 | 2017-10-23 20:54:03 +0200 | [diff] [blame] | 232 | 'libunwind', |
Erik Faye-Lund | 5c2ff57 | 2017-10-25 10:02:38 +0200 | [diff] [blame] | 233 | type : 'combo', |
| 234 | value : 'auto', |
| 235 | choices : ['auto', 'true', 'false'], |
| 236 | description : 'Use libunwind for stack-traces' |
Erik Faye-Lund | 9e5a5a1 | 2017-10-23 20:54:03 +0200 | [diff] [blame] | 237 | ) |
| 238 | option( |
Dylan Baker | 5e71efe | 2017-11-28 16:42:37 -0800 | [diff] [blame] | 239 | 'lmsensors', |
| 240 | type : 'combo', |
| 241 | value : 'auto', |
| 242 | choices : ['auto', 'true', 'false'], |
| 243 | description : 'Enable HUD lmsensors support.' |
| 244 | ) |
| 245 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 246 | 'build-tests', |
| 247 | type : 'boolean', |
| 248 | value : false, |
| 249 | description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.' |
| 250 | ) |
| 251 | option( |
| 252 | 'texture-float', |
| 253 | type : 'boolean', |
| 254 | value : false, |
| 255 | description : 'Enable floating point textures and renderbuffers. This option may be patent encumbered, please read docs/patents.txt and consult with your lawyer before turning this on.' |
| 256 | ) |
Eric Engestrom | 4b9421d | 2017-10-26 16:19:41 +0100 | [diff] [blame] | 257 | option( |
| 258 | 'selinux', |
| 259 | type : 'boolean', |
| 260 | value : false, |
| 261 | description : 'Build an SELinux-aware Mesa' |
| 262 | ) |
Dylan Baker | cbbd5bb | 2017-10-20 21:48:18 -0700 | [diff] [blame] | 263 | option( |
| 264 | 'osmesa', |
| 265 | type : 'combo', |
| 266 | value : 'none', |
Dylan Baker | f121a66 | 2017-10-24 15:52:57 -0700 | [diff] [blame] | 267 | choices : ['none', 'classic', 'gallium'], |
Dylan Baker | cbbd5bb | 2017-10-20 21:48:18 -0700 | [diff] [blame] | 268 | description : 'Build OSmesa.' |
| 269 | ) |
| 270 | option( |
| 271 | 'osmesa-bits', |
| 272 | type : 'combo', |
| 273 | value : '8', |
| 274 | choices : ['8', '16', '32'], |
| 275 | description : 'Number of channel bits for OSMesa.' |
| 276 | ) |
Dylan Baker | e0b037d | 2017-11-29 17:50:05 -0800 | [diff] [blame] | 277 | option( |
| 278 | 'swr-arches', |
| 279 | type : 'string', |
| 280 | value : 'avx,avx2', |
| 281 | description : 'Comma delemited swr architectures. choices : avx,avx2,knl,skx' |
| 282 | ) |