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 | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 24 | value : 'x11,wayland,drm,surfaceless', |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 25 | description : 'comma separated list of window systems to support. wayland, x11, surfaceless, drm, etc.' |
| 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 | eb3bb03 | 2017-10-16 17:51:47 -0700 | [diff] [blame] | 37 | value : 'i915,i965,r100,r200,nouveau', |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 38 | description : 'comma separated list of dri drivers to build.' |
| 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', |
Rob Clark | 4aa69cc | 2017-10-14 10:08:50 -0400 | [diff] [blame] | 49 | value : 'pl111,radeonsi,nouveau,freedreno,swrast,vc4,etnaviv,imx', |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 50 | description : 'comma separated list of gallium drivers to build.' |
| 51 | ) |
| 52 | option( |
| 53 | 'gallium-media', |
| 54 | type : 'string', |
| 55 | value : '', |
| 56 | description : 'comma separated list of gallium media APIs to build (omx,va,vdpau,xvmc).' |
| 57 | ) |
| 58 | option( |
| 59 | 'vulkan-drivers', |
| 60 | type : 'string', |
| 61 | value : 'intel,amd', |
| 62 | description : 'comma separated list of vulkan drivers to build.' |
| 63 | ) |
| 64 | option( |
| 65 | 'shader-cache', |
| 66 | type : 'boolean', |
| 67 | value : true, |
| 68 | description : 'Build with on-disk shader cache support' |
| 69 | ) |
| 70 | option( |
| 71 | 'vulkan-icd-dir', |
| 72 | type : 'string', |
| 73 | value : '', |
| 74 | description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d' |
| 75 | ) |
| 76 | option( |
| 77 | 'shared-glapi', |
| 78 | type : 'boolean', |
| 79 | value : true, |
| 80 | description : 'Whether to build a shared or static glapi' |
| 81 | ) |
| 82 | option( |
| 83 | 'gles1', |
| 84 | type : 'boolean', |
| 85 | value : true, |
| 86 | description : 'Build support for OpenGL ES 1.x' |
| 87 | ) |
| 88 | option( |
| 89 | 'gles2', |
| 90 | type : 'boolean', |
| 91 | value : true, |
| 92 | description : 'Build support for OpenGL ES 2.x and 3.x' |
| 93 | ) |
| 94 | option( |
| 95 | 'opengl', |
| 96 | type : 'boolean', |
| 97 | value : true, |
| 98 | description : 'Build support for OpenGL (all versions)' |
| 99 | ) |
| 100 | option( |
| 101 | 'gbm', |
| 102 | type : 'combo', |
| 103 | value : 'auto', |
Dylan Baker | 0589331 | 2017-10-30 10:27:48 -0700 | [diff] [blame] | 104 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 105 | description : 'Build support for gbm platform' |
| 106 | ) |
| 107 | option( |
| 108 | 'glx', |
| 109 | type : 'combo', |
| 110 | value : 'auto', |
| 111 | choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'], |
| 112 | description : 'Build support for GLX platform' |
| 113 | ) |
| 114 | option( |
Dylan Baker | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 115 | 'egl', |
| 116 | type : 'combo', |
| 117 | value : 'auto', |
Dylan Baker | 0589331 | 2017-10-30 10:27:48 -0700 | [diff] [blame] | 118 | choices : ['auto', 'true', 'false'], |
Dylan Baker | 108d257 | 2017-10-18 12:20:43 -0700 | [diff] [blame] | 119 | description : 'Build support for EGL platform' |
| 120 | ) |
| 121 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 122 | 'glvnd', |
| 123 | type : 'boolean', |
| 124 | value : false, |
| 125 | description : 'Enable GLVND support.' |
| 126 | ) |
| 127 | option( |
| 128 | 'asm', |
| 129 | type : 'boolean', |
| 130 | value : true, |
| 131 | description : 'Build assembly code if possible' |
| 132 | ) |
| 133 | option( |
| 134 | 'llvm', |
| 135 | type : 'boolean', |
| 136 | value : true, |
| 137 | description : 'Build with LLVM support.' |
| 138 | ) |
| 139 | option( |
| 140 | 'valgrind', |
Erik Faye-Lund | 5c2ff57 | 2017-10-25 10:02:38 +0200 | [diff] [blame] | 141 | type : 'combo', |
| 142 | value : 'auto', |
| 143 | choices : ['auto', 'true', 'false'], |
| 144 | description : 'Build with valgrind support' |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 145 | ) |
| 146 | option( |
Erik Faye-Lund | 9e5a5a1 | 2017-10-23 20:54:03 +0200 | [diff] [blame] | 147 | 'libunwind', |
Erik Faye-Lund | 5c2ff57 | 2017-10-25 10:02:38 +0200 | [diff] [blame] | 148 | type : 'combo', |
| 149 | value : 'auto', |
| 150 | choices : ['auto', 'true', 'false'], |
| 151 | description : 'Use libunwind for stack-traces' |
Erik Faye-Lund | 9e5a5a1 | 2017-10-23 20:54:03 +0200 | [diff] [blame] | 152 | ) |
| 153 | option( |
Dylan Baker | 61631be | 2017-10-10 15:44:14 -0700 | [diff] [blame] | 154 | 'build-tests', |
| 155 | type : 'boolean', |
| 156 | value : false, |
| 157 | description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.' |
| 158 | ) |
| 159 | option( |
| 160 | 'texture-float', |
| 161 | type : 'boolean', |
| 162 | value : false, |
| 163 | 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.' |
| 164 | ) |
Eric Engestrom | 4b9421d | 2017-10-26 16:19:41 +0100 | [diff] [blame] | 165 | option( |
| 166 | 'selinux', |
| 167 | type : 'boolean', |
| 168 | value : false, |
| 169 | description : 'Build an SELinux-aware Mesa' |
| 170 | ) |
Dylan Baker | cbbd5bb | 2017-10-20 21:48:18 -0700 | [diff] [blame] | 171 | option( |
| 172 | 'osmesa', |
| 173 | type : 'combo', |
| 174 | value : 'none', |
Dylan Baker | f121a66 | 2017-10-24 15:52:57 -0700 | [diff] [blame] | 175 | choices : ['none', 'classic', 'gallium'], |
Dylan Baker | cbbd5bb | 2017-10-20 21:48:18 -0700 | [diff] [blame] | 176 | description : 'Build OSmesa.' |
| 177 | ) |
| 178 | option( |
| 179 | 'osmesa-bits', |
| 180 | type : 'combo', |
| 181 | value : '8', |
| 182 | choices : ['8', '16', '32'], |
| 183 | description : 'Number of channel bits for OSMesa.' |
| 184 | ) |