blob: fca06c4e61daad242ab1fa65d9585adecef565c0 [file] [log] [blame]
Dylan Bakerd1992252017-09-14 17:57:17 -07001# 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 Baker61631be2017-10-10 15:44:14 -070021option(
22 'platforms',
23 type : 'string',
Dylan Baker4b61b072017-11-15 17:31:32 -080024 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 Baker61631be2017-10-10 15:44:14 -070026)
27option(
28 'dri3',
29 type : 'combo',
30 value : 'auto',
Dylan Baker05893312017-10-30 10:27:48 -070031 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -070032 description : 'enable support for dri3'
33)
34option(
35 'dri-drivers',
36 type : 'string',
Dylan Baker18733272017-10-30 10:17:22 -070037 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 Baker61631be2017-10-10 15:44:14 -070039)
40option(
41 'dri-drivers-path',
42 type : 'string',
43 value : '',
Dylan Baker2a99c522018-01-16 10:36:28 -080044 description : 'Location to install dri drivers. Default: $libdir/dri.'
45)
46option(
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 Baker61631be2017-10-10 15:44:14 -070051)
52option(
53 'gallium-drivers',
54 type : 'string',
Dylan Baker18733272017-10-30 10:17:22 -070055 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 Baker61631be2017-10-10 15:44:14 -070057)
58option(
Dylan Baker73092072017-11-28 16:31:06 -080059 'gallium-extra-hud',
60 type : 'boolean',
61 value : false,
62 description : 'Enable HUD block/NIC I/O HUD status support',
63)
64option(
Dylan Baker68076b82017-10-30 14:04:21 -070065 'gallium-vdpau',
66 type : 'combo',
67 value : 'auto',
68 choices : ['auto', 'true', 'false'],
69 description : 'enable gallium vdpau state tracker.',
70)
71option(
72 'vdpau-libs-path',
73 type : 'string',
74 value : '',
75 description : 'path to put vdpau libraries. defaults to $libdir/vdpau.'
76)
77option(
Dylan Baker22a817a2017-10-30 14:32:30 -070078 'gallium-xvmc',
79 type : 'combo',
80 value : 'auto',
81 choices : ['auto', 'true', 'false'],
82 description : 'enable gallium xvmc state tracker.',
83)
84option(
85 'xvmc-libs-path',
86 type : 'string',
87 value : '',
88 description : 'path to put xvmc libraries. defaults to $libdir.'
89)
90option(
Dylan Baker1d36dc62017-10-30 15:23:06 -070091 'gallium-omx',
92 type : 'combo',
93 value : 'auto',
94 choices : ['auto', 'true', 'false'],
95 description : 'enable gallium omx bellagio state tracker.',
96)
97option(
98 'omx-libs-path',
99 type : 'string',
100 value : '',
101 description : 'path to put omx libraries. defaults to omx-bellagio pkg-config pluginsdir.'
102)
103option(
Dylan Baker5a785d52017-10-30 15:49:37 -0700104 'gallium-va',
105 type : 'combo',
106 value : 'auto',
107 choices : ['auto', 'true', 'false'],
108 description : 'enable gallium va state tracker.',
109)
110option(
111 'va-libs-path',
112 type : 'string',
113 value : '',
114 description : 'path to put va libraries. defaults to $libdir/dri.'
115)
116option(
Dylan Baker0ba909f2017-10-30 17:40:30 -0700117 'gallium-xa',
118 type : 'combo',
119 value : 'auto',
120 choices : ['auto', 'true', 'false'],
121 description : 'enable gallium xa state tracker.',
122)
123option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800124 'gallium-nine',
125 type : 'boolean',
126 value : false,
127 description : 'build gallium "nine" Direct3D 9.x state tracker.',
128)
129option(
Dylan Baker42ea0632017-12-08 15:26:00 -0800130 'gallium-opencl',
131 type : 'combo',
132 choices : ['icd', 'standalone', 'disabled'],
133 value : 'disabled',
134 description : 'build gallium "clover" OpenCL state tracker.',
135)
136option(
Dylan Baker6b4c7042017-11-13 17:58:51 -0800137 'd3d-drivers-path',
138 type : 'string',
139 value : '',
140 description : 'Location of D3D drivers. Default: $libdir/d3d',
141)
142option(
Dylan Baker61631be2017-10-10 15:44:14 -0700143 'vulkan-drivers',
144 type : 'string',
Dylan Baker18733272017-10-30 10:17:22 -0700145 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 Baker61631be2017-10-10 15:44:14 -0700147)
148option(
149 'shader-cache',
150 type : 'boolean',
151 value : true,
152 description : 'Build with on-disk shader cache support'
153)
154option(
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)
160option(
161 'shared-glapi',
162 type : 'boolean',
163 value : true,
164 description : 'Whether to build a shared or static glapi'
165)
166option(
167 'gles1',
168 type : 'boolean',
169 value : true,
170 description : 'Build support for OpenGL ES 1.x'
171)
172option(
173 'gles2',
174 type : 'boolean',
175 value : true,
176 description : 'Build support for OpenGL ES 2.x and 3.x'
177)
178option(
179 'opengl',
180 type : 'boolean',
181 value : true,
182 description : 'Build support for OpenGL (all versions)'
183)
184option(
185 'gbm',
186 type : 'combo',
187 value : 'auto',
Dylan Baker05893312017-10-30 10:27:48 -0700188 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -0700189 description : 'Build support for gbm platform'
190)
191option(
192 'glx',
193 type : 'combo',
194 value : 'auto',
195 choices : ['auto', 'disabled', 'dri', 'xlib', 'gallium-xlib'],
196 description : 'Build support for GLX platform'
197)
198option(
Dylan Baker108d2572017-10-18 12:20:43 -0700199 'egl',
200 type : 'combo',
201 value : 'auto',
Dylan Baker05893312017-10-30 10:27:48 -0700202 choices : ['auto', 'true', 'false'],
Dylan Baker108d2572017-10-18 12:20:43 -0700203 description : 'Build support for EGL platform'
204)
205option(
Dylan Baker61631be2017-10-10 15:44:14 -0700206 'glvnd',
207 type : 'boolean',
208 value : false,
209 description : 'Enable GLVND support.'
210)
211option(
212 'asm',
213 type : 'boolean',
214 value : true,
215 description : 'Build assembly code if possible'
216)
217option(
218 'llvm',
Dylan Baker48f64e52017-11-17 16:37:50 -0800219 type : 'combo',
220 value : 'auto',
221 choices : ['auto', 'true', 'false'],
Dylan Baker61631be2017-10-10 15:44:14 -0700222 description : 'Build with LLVM support.'
223)
224option(
225 'valgrind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200226 type : 'combo',
227 value : 'auto',
228 choices : ['auto', 'true', 'false'],
229 description : 'Build with valgrind support'
Dylan Baker61631be2017-10-10 15:44:14 -0700230)
231option(
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200232 'libunwind',
Erik Faye-Lund5c2ff572017-10-25 10:02:38 +0200233 type : 'combo',
234 value : 'auto',
235 choices : ['auto', 'true', 'false'],
236 description : 'Use libunwind for stack-traces'
Erik Faye-Lund9e5a5a12017-10-23 20:54:03 +0200237)
238option(
Dylan Baker5e71efe2017-11-28 16:42:37 -0800239 'lmsensors',
240 type : 'combo',
241 value : 'auto',
242 choices : ['auto', 'true', 'false'],
243 description : 'Enable HUD lmsensors support.'
244)
245option(
Dylan Baker61631be2017-10-10 15:44:14 -0700246 '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)
251option(
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 Engestrom4b9421d2017-10-26 16:19:41 +0100257option(
258 'selinux',
259 type : 'boolean',
260 value : false,
261 description : 'Build an SELinux-aware Mesa'
262)
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700263option(
264 'osmesa',
265 type : 'combo',
266 value : 'none',
Dylan Bakerf121a662017-10-24 15:52:57 -0700267 choices : ['none', 'classic', 'gallium'],
Dylan Bakercbbd5bb2017-10-20 21:48:18 -0700268 description : 'Build OSmesa.'
269)
270option(
271 'osmesa-bits',
272 type : 'combo',
273 value : '8',
274 choices : ['8', '16', '32'],
275 description : 'Number of channel bits for OSMesa.'
276)
Dylan Bakere0b037d2017-11-29 17:50:05 -0800277option(
278 'swr-arches',
279 type : 'string',
280 value : 'avx,avx2',
281 description : 'Comma delemited swr architectures. choices : avx,avx2,knl,skx'
282)