blob: 8c3e9978529310baafa852d0e1260c30f6df079a [file] [log] [blame]
Dylan Bakera8d94102019-10-31 13:26:00 -07001# Copyright © 2017-2019 Intel Corporation
Dylan Bakerd1992252017-09-14 17:57:17 -07002
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 Baker61631be2017-10-10 15:44:14 -070021option(
22 'platforms',
Dylan Baker5608d0a2018-04-16 15:18:08 -070023 type : 'array',
24 value : ['auto'],
25 choices : [
26 '', 'auto', 'x11', 'wayland', 'drm', 'surfaceless', 'haiku', 'android',
Dylan Baker70cac062018-04-18 13:17:20 -070027 'windows',
Dylan Baker5608d0a2018-04-16 15:18:08 -070028 ],
Eric Engestrom8629d802018-10-11 16:38:24 +010029 description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.'
Dylan Baker61631be2017-10-10 15:44:14 -070030)
31option(
32 'dri3',
33 type : 'combo',
34 value : 'auto',
Dylan Baker05893312017-10-30 10:27:48 -070035 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -070036 description : 'enable support for dri3'
37)
38option(
39 'dri-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -070040 type : 'array',
41 value : ['auto'],
42 choices : ['', 'auto', 'i915', 'i965', 'r100', 'r200', 'nouveau', 'swrast'],
43 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 Baker61631be2017-10-10 15:44:14 -070044)
45option(
46 'dri-drivers-path',
47 type : 'string',
48 value : '',
Dylan Bakerd7235ef2018-01-16 10:36:28 -080049 description : 'Location to install dri drivers. Default: $libdir/dri.'
50)
51option(
52 'dri-search-path',
53 type : 'string',
54 value : '',
55 description : 'Locations to search for dri drivers, passed as colon separated list. Default: dri-drivers-path.'
Dylan Baker61631be2017-10-10 15:44:14 -070056)
57option(
58 'gallium-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -070059 type : 'array',
60 value : ['auto'],
61 choices : [
Eric Anholted65aee2018-10-23 12:33:09 -070062 '', 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
Rob Herring41a0acd2019-01-24 14:03:54 -060063 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
Erik Faye-Lund8d46e352018-08-31 16:50:20 +020064 'swr', 'panfrost', 'iris', 'lima', 'zink'
Dylan Baker5608d0a2018-04-16 15:18:08 -070065 ],
66 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 Baker61631be2017-10-10 15:44:14 -070067)
68option(
Dylan Baker73092072017-11-28 16:31:06 -080069 'gallium-extra-hud',
70 type : 'boolean',
71 value : false,
72 description : 'Enable HUD block/NIC I/O HUD status support',
73)
74option(
Dylan Baker68076b82017-10-30 14:04:21 -070075 'gallium-vdpau',
76 type : 'combo',
77 value : 'auto',
78 choices : ['auto', 'true', 'false'],
79 description : 'enable gallium vdpau state tracker.',
80)
81option(
82 'vdpau-libs-path',
83 type : 'string',
84 value : '',
85 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
86)
87option(
Dylan Baker22a817a2017-10-30 14:32:30 -070088 'gallium-xvmc',
89 type : 'combo',
90 value : 'auto',
91 choices : ['auto', 'true', 'false'],
92 description : 'enable gallium xvmc state tracker.',
93)
94option(
95 'xvmc-libs-path',
96 type : 'string',
97 value : '',
98 description : 'path to put xvmc libraries. defaults to $libdir.'
99)
100option(
Dylan Baker1d36dc62017-10-30 15:23:06 -0700101 'gallium-omx',
102 type : 'combo',
Dylan Baker34e852d2018-03-06 10:11:38 -0800103 value : 'auto',
104 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
Gurkirpal Singhbb5e27f2018-01-20 05:12:06 +0530105 description : 'enable gallium omx state tracker.',
Dylan Baker1d36dc62017-10-30 15:23:06 -0700106)
107option(
108 'omx-libs-path',
109 type : 'string',
110 value : '',
111 description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
112)
113option(
Dylan Baker5a785d52017-10-30 15:49:37 -0700114 'gallium-va',
115 type : 'combo',
116 value : 'auto',
117 choices : ['auto', 'true', 'false'],
118 description : 'enable gallium va state tracker.',
119)
120option(
121 'va-libs-path',
122 type : 'string',
123 value : '',
124 description : 'path to put va libraries. defaults to $libdir/dri.'
125)
126option(
Dylan Baker0ba909f2017-10-30 17:40:30 -0700127 'gallium-xa',
128 type : 'combo',
129 value : 'auto',
130 choices : ['auto', 'true', 'false'],
131 description : 'enable gallium xa state tracker.',
132)
133option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800134 'gallium-nine',
135 type : 'boolean',
136 value : false,
137 description : 'build gallium "nine" Direct3D 9.x state tracker.',
138)
139option(
Dylan Baker42ea0632017-12-08 15:26:00 -0800140 'gallium-opencl',
141 type : 'combo',
142 choices : ['icd', 'standalone', 'disabled'],
143 value : 'disabled',
144 description : 'build gallium "clover" OpenCL state tracker.',
145)
146option(
Pierre Moreau866f6f12018-01-21 19:10:58 +0100147 'opencl-spirv',
148 type : 'boolean',
149 value : false,
150 description : 'build gallium "clover" OpenCL state tracker with SPIR-V binary support.',
151)
152option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800153 'd3d-drivers-path',
154 type : 'string',
155 value : '',
156 description : 'Location of D3D drivers. Default: $libdir/d3d',
157)
158option(
Dylan Baker61631be2017-10-10 15:44:14 -0700159 'vulkan-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700160 type : 'array',
161 value : ['auto'],
Bas Nieuwenhuizen26380b32018-08-08 22:23:57 +0000162 choices : ['', 'auto', 'amd', 'freedreno', 'intel'],
Dylan Baker5608d0a2018-04-16 15:18:08 -0700163 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 Baker61631be2017-10-10 15:44:14 -0700164)
165option(
166 'shader-cache',
Dylan Bakerf5eafc22018-04-18 13:20:28 -0700167 type : 'combo',
168 value : 'auto',
169 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -0700170 description : 'Build with on-disk shader cache support'
171)
172option(
173 'vulkan-icd-dir',
174 type : 'string',
175 value : '',
176 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
177)
178option(
Lionel Landwerlin20c370c2019-01-19 21:26:12 +0000179 'vulkan-overlay-layer',
180 type : 'boolean',
181 value : false,
182 description : 'Whether to build the vulkan overlay layer'
183)
184option(
Dylan Baker61631be2017-10-10 15:44:14 -0700185 'shared-glapi',
Dylan Baker84242092019-05-31 16:16:22 -0700186 type : 'combo',
187 value : 'auto',
188 choices : ['auto', 'true', 'false'],
189 description : 'Whether to build a shared or static glapi. Defaults to false on Windows, true elsewhere'
Dylan Baker61631be2017-10-10 15:44:14 -0700190)
191option(
192 'gles1',
Dylan Bakerddc15fb2018-10-19 09:47:41 -0700193 type : 'combo',
194 value : 'auto',
195 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -0700196 description : 'Build support for OpenGL ES 1.x'
197)
198option(
199 'gles2',
Dylan Bakerddc15fb2018-10-19 09:47:41 -0700200 type : 'combo',
201 value : 'auto',
202 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -0700203 description : 'Build support for OpenGL ES 2.x and 3.x'
204)
205option(
206 'opengl',
207 type : 'boolean',
208 value : true,
209 description : 'Build support for OpenGL (all versions)'
210)
211option(
212 'gbm',
213 type : 'combo',
214 value : 'auto',
Dylan Baker05893312017-10-30 10:27:48 -0700215 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -0700216 description : 'Build support for gbm platform'
217)
218option(
219 'glx',
220 type : 'combo',
221 value : 'auto',
222 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
223 description : 'Build support for GLX platform'
224)
225option(
Dylan Baker108d2572017-10-18 12:20:43 -0700226 'egl',
227 type : 'combo',
228 value : 'auto',
Dylan Baker05893312017-10-30 10:27:48 -0700229 choices : ['auto', 'true', 'false'],
Dylan Baker108d2572017-10-18 12:20:43 -0700230 description : 'Build support for EGL platform'
231)
232option(
Dylan Baker61631be2017-10-10 15:44:14 -0700233 'glvnd',
234 type : 'boolean',
235 value : false,
236 description : 'Enable GLVND support.'
237)
238option(
Matt Turnera5abb2d2018-06-06 20:25:09 -0700239 'glx-read-only-text',
240 type : 'boolean',
241 value : false,
242 description : 'Disable writable .text section on x86 (decreases performance)'
243)
244option(
Dylan Baker61631be2017-10-10 15:44:14 -0700245 'llvm',
Dylan Baker48f64e52017-11-17 16:37:50 -0800246 type : 'combo',
247 value : 'auto',
248 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -0700249 description : 'Build with LLVM support.'
250)
251option(
Christoph Haagb01834b2018-09-18 01:08:07 +0200252 'shared-llvm',
253 type : 'boolean',
254 value : true,
255 description : 'Whether to link llvm shared or statically.'
256)
257option(
Dylan Baker61631be2017-10-10 15:44:14 -0700258 'valgrind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200259 type : 'combo',
260 value : 'auto',
261 choices : ['auto', 'true', 'false'],
262 description : 'Build with valgrind support'
Dylan Baker61631be2017-10-10 15:44:14 -0700263)
264option(
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200265 'libunwind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200266 type : 'combo',
267 value : 'auto',
268 choices : ['auto', 'true', 'false'],
269 description : 'Use libunwind for stack-traces'
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200270)
271option(
Dylan Baker5e71efe2017-11-28 16:42:37 -0800272 'lmsensors',
273 type : 'combo',
274 value : 'auto',
275 choices : ['auto', 'true', 'false'],
276 description : 'Enable HUD lmsensors support.'
277)
278option(
Dylan Baker61631be2017-10-10 15:44:14 -0700279 'build-tests',
280 type : 'boolean',
281 value : false,
282 description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.'
283)
284option(
Jason Ekstrand8b8deec2019-04-02 10:26:09 -0500285 'install-intel-gpu-tests',
286 type : 'boolean',
287 value : false,
288 description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
289)
290option(
Eric Engestrom4b9421d2017-10-26 16:19:41 +0100291 'selinux',
292 type : 'boolean',
293 value : false,
294 description : 'Build an SELinux-aware Mesa'
295)
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700296option(
297 'osmesa',
298 type : 'combo',
299 value : 'none',
Dylan Bakerf121a662017-10-24 15:52:57 -0700300 choices : ['none', 'classic', 'gallium'],
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700301 description : 'Build OSmesa.'
302)
303option(
304 'osmesa-bits',
305 type : 'combo',
306 value : '8',
307 choices : ['8', '16', '32'],
308 description : 'Number of channel bits for OSMesa.'
309)
Dylan Bakere0b037d2017-11-29 17:50:05 -0800310option(
311 'swr-arches',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700312 type : 'array',
313 value : ['avx', 'avx2'],
314 choices : ['avx', 'avx2', 'knl', 'skx'],
315 description : 'Architectures to build SWR support for.',
Dylan Bakere0b037d2017-11-29 17:50:05 -0800316)
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800317option(
318 'tools',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700319 type : 'array',
320 value : [],
Eric Anholt82bf1972018-09-25 19:15:45 -0700321 choices : ['drm-shim', 'etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'lima', 'all'],
Eric Engestrom0bbee282018-10-30 11:26:46 +0000322 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800323)
Dylan Baker34bbb242018-06-07 11:13:34 -0700324option(
325 'power8',
326 type : 'combo',
327 value : 'auto',
328 choices : ['auto', 'true', 'false'],
329 description : 'Enable power8 optimizations.',
330)
Keith Packard7ab1fff2018-02-09 07:45:58 -0800331option(
332 'xlib-lease',
333 type : 'combo',
334 value : 'auto',
335 choices : ['auto', 'true', 'false'],
336 description : 'Enable VK_EXT_acquire_xlib_display.'
337)
Dylan Baker7a908862018-12-04 10:06:08 -0800338option(
339 'glx-direct',
340 type : 'boolean',
341 value : true,
342 description : 'Enable direct rendering in GLX and EGL for DRI',
343)
Chia-I Wu4f863dc2019-03-08 11:27:50 -0800344option(
345 'I-love-half-baked-turnips',
346 type : 'boolean',
347 value : false,
348 description : 'Allow work-in-progress freedreno vulkan driver to be enabled',
349)
Benjamin Gordonb30aad52018-06-13 16:17:32 -0600350option('egl-lib-suffix',
351 type : 'string',
352 value : '',
353 description : 'Suffix to append to EGL library name. Default: none.'
354)
355option(
356 'gles-lib-suffix',
357 type : 'string',
358 value : '',
359 description : 'Suffix to append to GLES library names. Default: none.'
360)
Gurchetan Singhb0708612019-03-15 10:08:45 -0700361option(
362 'platform-sdk-version',
363 type : 'integer',
364 min : 25,
365 max : 28,
366 value : 25,
367 description : 'Android Platform SDK version. Default: Nougat version.'
368)
Dylan Bakera8d94102019-10-31 13:26:00 -0700369option(
370 'zstd',
371 type : 'combo',
372 choices : ['auto', 'true', 'false'],
373 value : 'auto',
374 description : 'Use ZSTD instead of ZLIB in some cases.'
375)