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