blob: 4428745bef7d779c21e0d00f1a860dfd1821132f [file] [log] [blame]
Dylan Baker5608d0a2018-04-16 15:18:08 -07001# Copyright © 2017-2018 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',
27 ],
Eric Engestrom8629d802018-10-11 16:38:24 +010028 description : 'window systems to support. If this is set to `auto`, all platforms applicable will be enabled.'
Dylan Baker61631be2017-10-10 15:44:14 -070029)
30option(
31 'dri3',
32 type : 'combo',
33 value : 'auto',
Dylan Baker05893312017-10-30 10:27:48 -070034 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -070035 description : 'enable support for dri3'
36)
37option(
38 'dri-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -070039 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 Baker61631be2017-10-10 15:44:14 -070043)
44option(
45 'dri-drivers-path',
46 type : 'string',
47 value : '',
Dylan Bakerd7235ef2018-01-16 10:36:28 -080048 description : 'Location to install dri drivers. Default: $libdir/dri.'
49)
50option(
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 Baker61631be2017-10-10 15:44:14 -070055)
56option(
57 'gallium-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -070058 type : 'array',
59 value : ['auto'],
60 choices : [
Eric Anholted65aee2018-10-23 12:33:09 -070061 '', 'auto', 'kmsro', 'radeonsi', 'r300', 'r600', 'nouveau', 'freedreno',
Rob Herring41a0acd2019-01-24 14:03:54 -060062 'swrast', 'v3d', 'vc4', 'etnaviv', 'tegra', 'i915', 'svga', 'virgl',
Qiang Yu92d7ca42019-03-12 13:49:26 -060063 'swr', 'panfrost', 'iris', 'lima'
Dylan Baker5608d0a2018-04-16 15:18:08 -070064 ],
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 Baker61631be2017-10-10 15:44:14 -070066)
67option(
Dylan Baker73092072017-11-28 16:31:06 -080068 'gallium-extra-hud',
69 type : 'boolean',
70 value : false,
71 description : 'Enable HUD block/NIC I/O HUD status support',
72)
73option(
Dylan Baker68076b82017-10-30 14:04:21 -070074 'gallium-vdpau',
75 type : 'combo',
76 value : 'auto',
77 choices : ['auto', 'true', 'false'],
78 description : 'enable gallium vdpau state tracker.',
79)
80option(
81 'vdpau-libs-path',
82 type : 'string',
83 value : '',
84 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
85)
86option(
Dylan Baker22a817a2017-10-30 14:32:30 -070087 'gallium-xvmc',
88 type : 'combo',
89 value : 'auto',
90 choices : ['auto', 'true', 'false'],
91 description : 'enable gallium xvmc state tracker.',
92)
93option(
94 'xvmc-libs-path',
95 type : 'string',
96 value : '',
97 description : 'path to put xvmc libraries. defaults to $libdir.'
98)
99option(
Dylan Baker1d36dc62017-10-30 15:23:06 -0700100 'gallium-omx',
101 type : 'combo',
Dylan Baker34e852d2018-03-06 10:11:38 -0800102 value : 'auto',
103 choices : ['auto', 'disabled', 'bellagio', 'tizonia'],
Gurkirpal Singhbb5e27f2018-01-20 05:12:06 +0530104 description : 'enable gallium omx state tracker.',
Dylan Baker1d36dc62017-10-30 15:23:06 -0700105)
106option(
107 'omx-libs-path',
108 type : 'string',
109 value : '',
110 description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
111)
112option(
Dylan Baker5a785d52017-10-30 15:49:37 -0700113 'gallium-va',
114 type : 'combo',
115 value : 'auto',
116 choices : ['auto', 'true', 'false'],
117 description : 'enable gallium va state tracker.',
118)
119option(
120 'va-libs-path',
121 type : 'string',
122 value : '',
123 description : 'path to put va libraries. defaults to $libdir/dri.'
124)
125option(
Dylan Baker0ba909f2017-10-30 17:40:30 -0700126 'gallium-xa',
127 type : 'combo',
128 value : 'auto',
129 choices : ['auto', 'true', 'false'],
130 description : 'enable gallium xa state tracker.',
131)
132option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800133 'gallium-nine',
134 type : 'boolean',
135 value : false,
136 description : 'build gallium "nine" Direct3D 9.x state tracker.',
137)
138option(
Dylan Baker42ea0632017-12-08 15:26:00 -0800139 'gallium-opencl',
140 type : 'combo',
141 choices : ['icd', 'standalone', 'disabled'],
142 value : 'disabled',
143 description : 'build gallium "clover" OpenCL state tracker.',
144)
145option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800146 'd3d-drivers-path',
147 type : 'string',
148 value : '',
149 description : 'Location of D3D drivers. Default: $libdir/d3d',
150)
151option(
Dylan Baker61631be2017-10-10 15:44:14 -0700152 'vulkan-drivers',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700153 type : 'array',
154 value : ['auto'],
Bas Nieuwenhuizen26380b32018-08-08 22:23:57 +0000155 choices : ['', 'auto', 'amd', 'freedreno', 'intel'],
Dylan Baker5608d0a2018-04-16 15:18:08 -0700156 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 -0700157)
158option(
159 'shader-cache',
160 type : 'boolean',
161 value : true,
162 description : 'Build with on-disk shader cache support'
163)
164option(
165 'vulkan-icd-dir',
166 type : 'string',
167 value : '',
168 description : 'Location relative to prefix to put vulkan icds on install. Default: $datadir/vulkan/icd.d'
169)
170option(
Lionel Landwerlin20c370c2019-01-19 21:26:12 +0000171 'vulkan-overlay-layer',
172 type : 'boolean',
173 value : false,
174 description : 'Whether to build the vulkan overlay layer'
175)
176option(
Dylan Baker61631be2017-10-10 15:44:14 -0700177 'shared-glapi',
178 type : 'boolean',
179 value : true,
180 description : 'Whether to build a shared or static glapi'
181)
182option(
183 'gles1',
184 type : 'boolean',
185 value : true,
186 description : 'Build support for OpenGL ES 1.x'
187)
188option(
189 'gles2',
190 type : 'boolean',
191 value : true,
192 description : 'Build support for OpenGL ES 2.x and 3.x'
193)
194option(
195 'opengl',
196 type : 'boolean',
197 value : true,
198 description : 'Build support for OpenGL (all versions)'
199)
200option(
201 'gbm',
202 type : 'combo',
203 value : 'auto',
Dylan Baker05893312017-10-30 10:27:48 -0700204 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -0700205 description : 'Build support for gbm platform'
206)
207option(
208 'glx',
209 type : 'combo',
210 value : 'auto',
211 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
212 description : 'Build support for GLX platform'
213)
214option(
Dylan Baker108d2572017-10-18 12:20:43 -0700215 'egl',
216 type : 'combo',
217 value : 'auto',
Dylan Baker05893312017-10-30 10:27:48 -0700218 choices : ['auto', 'true', 'false'],
Dylan Baker108d2572017-10-18 12:20:43 -0700219 description : 'Build support for EGL platform'
220)
221option(
Dylan Baker61631be2017-10-10 15:44:14 -0700222 'glvnd',
223 type : 'boolean',
224 value : false,
225 description : 'Enable GLVND support.'
226)
227option(
228 'asm',
229 type : 'boolean',
230 value : true,
231 description : 'Build assembly code if possible'
232)
233option(
Matt Turnera5abb2d2018-06-06 20:25:09 -0700234 'glx-read-only-text',
235 type : 'boolean',
236 value : false,
237 description : 'Disable writable .text section on x86 (decreases performance)'
238)
239option(
Dylan Baker61631be2017-10-10 15:44:14 -0700240 'llvm',
Dylan Baker48f64e52017-11-17 16:37:50 -0800241 type : 'combo',
242 value : 'auto',
243 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -0700244 description : 'Build with LLVM support.'
245)
246option(
Christoph Haagb01834b2018-09-18 01:08:07 +0200247 'shared-llvm',
248 type : 'boolean',
249 value : true,
250 description : 'Whether to link llvm shared or statically.'
251)
252option(
Dylan Baker61631be2017-10-10 15:44:14 -0700253 'valgrind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200254 type : 'combo',
255 value : 'auto',
256 choices : ['auto', 'true', 'false'],
257 description : 'Build with valgrind support'
Dylan Baker61631be2017-10-10 15:44:14 -0700258)
259option(
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200260 'libunwind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200261 type : 'combo',
262 value : 'auto',
263 choices : ['auto', 'true', 'false'],
264 description : 'Use libunwind for stack-traces'
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200265)
266option(
Dylan Baker5e71efe2017-11-28 16:42:37 -0800267 'lmsensors',
268 type : 'combo',
269 value : 'auto',
270 choices : ['auto', 'true', 'false'],
271 description : 'Enable HUD lmsensors support.'
272)
273option(
Dylan Baker61631be2017-10-10 15:44:14 -0700274 'build-tests',
275 type : 'boolean',
276 value : false,
277 description : 'Build unit tests. Currently this will build *all* unit tests, which may build more than expected.'
278)
279option(
Jason Ekstrand8b8deec2019-04-02 10:26:09 -0500280 'install-intel-gpu-tests',
281 type : 'boolean',
282 value : false,
283 description : 'Build and install Intel unit tests which require the GPU. This option is for developers and the Intel CI system only.'
284)
285option(
Eric Engestrom4b9421d2017-10-26 16:19:41 +0100286 'selinux',
287 type : 'boolean',
288 value : false,
289 description : 'Build an SELinux-aware Mesa'
290)
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700291option(
292 'osmesa',
293 type : 'combo',
294 value : 'none',
Dylan Bakerf121a662017-10-24 15:52:57 -0700295 choices : ['none', 'classic', 'gallium'],
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700296 description : 'Build OSmesa.'
297)
298option(
299 'osmesa-bits',
300 type : 'combo',
301 value : '8',
302 choices : ['8', '16', '32'],
303 description : 'Number of channel bits for OSMesa.'
304)
Dylan Bakere0b037d2017-11-29 17:50:05 -0800305option(
306 'swr-arches',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700307 type : 'array',
308 value : ['avx', 'avx2'],
309 choices : ['avx', 'avx2', 'knl', 'skx'],
310 description : 'Architectures to build SWR support for.',
Dylan Bakere0b037d2017-11-29 17:50:05 -0800311)
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800312option(
313 'tools',
Dylan Baker5608d0a2018-04-16 15:18:08 -0700314 type : 'array',
315 value : [],
Christian Gmeiner7ea8e542018-12-13 21:07:23 +0100316 choices : ['etnaviv', 'freedreno', 'glsl', 'intel', 'intel-ui', 'nir', 'nouveau', 'xvmc', 'all'],
Eric Engestrom0bbee282018-10-30 11:26:46 +0000317 description : 'List of tools to build. (Note: `intel-ui` selects `intel`)',
Scott D Phillips1f4d2432018-02-07 16:55:24 -0800318)
Dylan Baker34bbb242018-06-07 11:13:34 -0700319option(
320 'power8',
321 type : 'combo',
322 value : 'auto',
323 choices : ['auto', 'true', 'false'],
324 description : 'Enable power8 optimizations.',
325)
Keith Packard7ab1fff2018-02-09 07:45:58 -0800326option(
327 'xlib-lease',
328 type : 'combo',
329 value : 'auto',
330 choices : ['auto', 'true', 'false'],
331 description : 'Enable VK_EXT_acquire_xlib_display.'
332)
Dylan Baker7a908862018-12-04 10:06:08 -0800333option(
334 'glx-direct',
335 type : 'boolean',
336 value : true,
337 description : 'Enable direct rendering in GLX and EGL for DRI',
338)
Chia-I Wu4f863dc2019-03-08 11:27:50 -0800339option(
340 'I-love-half-baked-turnips',
341 type : 'boolean',
342 value : false,
343 description : 'Allow work-in-progress freedreno vulkan driver to be enabled',
344)
Benjamin Gordonb30aad52018-06-13 16:17:32 -0600345option('egl-lib-suffix',
346 type : 'string',
347 value : '',
348 description : 'Suffix to append to EGL library name. Default: none.'
349)
350option(
351 'gles-lib-suffix',
352 type : 'string',
353 value : '',
354 description : 'Suffix to append to GLES library names. Default: none.'
355)
Gurchetan Singhb0708612019-03-15 10:08:45 -0700356option(
357 'platform-sdk-version',
358 type : 'integer',
359 min : 25,
360 max : 28,
361 value : 25,
362 description : 'Android Platform SDK version. Default: Nougat version.'
363)