OSDN Git Service

build: move SafeStack tests to meson
[qmiga/qemu.git] / meson_options.txt
1 # These options do not correspond to a --enable/--disable-* option
2 # on the configure script command line.  If you add more, list them in
3 # scripts/meson-buildoptions.py's SKIP_OPTIONS constant too.
4
5 option('qemu_suffix', type : 'string', value: 'qemu',
6        description: 'Suffix for QEMU data/modules/config directories (can be empty)')
7 option('docdir', type : 'string', value : 'share/doc',
8        description: 'Base directory for documentation installation (can be empty)')
9 option('qemu_firmwarepath', type : 'array', value : ['share/qemu-firmware'],
10        description: 'search PATH for firmware files')
11 option('pkgversion', type : 'string', value : '',
12        description: 'use specified string as sub-version of the package')
13 option('smbd', type : 'string', value : '',
14        description: 'Path to smbd for slirp networking')
15 option('iasl', type : 'string', value : '',
16        description: 'Path to ACPI disassembler')
17 option('tls_priority', type : 'string', value : 'NORMAL',
18        description: 'Default TLS protocol/cipher priority string')
19 option('default_devices', type : 'boolean', value : true,
20        description: 'Include a default selection of devices in emulators')
21 option('audio_drv_list', type: 'array', value: ['default'],
22        choices: ['alsa', 'coreaudio', 'default', 'dsound', 'jack', 'oss', 'pa', 'pipewire', 'sdl', 'sndio'],
23        description: 'Set audio driver list')
24 option('block_drv_rw_whitelist', type : 'string', value : '',
25        description: 'set block driver read-write whitelist (by default affects only QEMU, not tools like qemu-img)')
26 option('block_drv_ro_whitelist', type : 'string', value : '',
27        description: 'set block driver read-only whitelist (by default affects only QEMU, not tools like qemu-img)')
28 option('interp_prefix', type : 'string', value : '/usr/gnemul/qemu-%M',
29        description: 'where to find shared libraries etc., use %M for cpu name')
30 option('fuzzing_engine', type : 'string', value : '',
31        description: 'fuzzing engine library for OSS-Fuzz')
32 option('trace_file', type: 'string', value: 'trace',
33        description: 'Trace file prefix for simple backend')
34
35 # Everything else can be set via --enable/--disable-* option
36 # on the configure script command line.  After adding an option
37 # here make sure to run "make update-buildoptions".
38
39 option('docs', type : 'feature', value : 'auto',
40        description: 'Documentations build support')
41 option('fuzzing', type : 'boolean', value: false,
42        description: 'build fuzzing targets')
43 option('gettext', type : 'feature', value : 'auto',
44        description: 'Localization of the GTK+ user interface')
45 option('modules', type : 'feature', value : 'disabled',
46        description: 'modules support (non Windows)')
47 option('module_upgrades', type : 'boolean', value : false,
48        description: 'try to load modules from alternate paths for upgrades')
49 option('install_blobs', type : 'boolean', value : true,
50        description: 'install provided firmware blobs')
51 option('sparse', type : 'feature', value : 'auto',
52        description: 'sparse checker')
53 option('guest_agent', type : 'feature', value : 'auto',
54        description: 'Build QEMU Guest Agent')
55 option('guest_agent_msi', type : 'feature', value : 'auto',
56        description: 'Build MSI package for the QEMU Guest Agent')
57 option('tools', type : 'feature', value : 'auto',
58        description: 'build support utilities that come with QEMU')
59 option('qga_vss', type : 'feature', value: 'auto',
60        description: 'build QGA VSS support (broken with MinGW)')
61
62 option('malloc_trim', type : 'feature', value : 'auto',
63        description: 'enable libc malloc_trim() for memory optimization')
64 option('malloc', type : 'combo', choices : ['system', 'tcmalloc', 'jemalloc'],
65        value: 'system', description: 'choose memory allocator to use')
66
67 option('kvm', type: 'feature', value: 'auto',
68        description: 'KVM acceleration support')
69 option('hax', type: 'feature', value: 'auto',
70        description: 'HAX acceleration support')
71 option('whpx', type: 'feature', value: 'auto',
72        description: 'WHPX acceleration support')
73 option('hvf', type: 'feature', value: 'auto',
74        description: 'HVF acceleration support')
75 option('nvmm', type: 'feature', value: 'auto',
76        description: 'NVMM acceleration support')
77 option('xen', type: 'feature', value: 'auto',
78        description: 'Xen backend support')
79 option('xen_pci_passthrough', type: 'feature', value: 'auto',
80        description: 'Xen PCI passthrough support')
81 option('tcg', type: 'feature', value: 'enabled',
82        description: 'TCG support')
83 option('tcg_interpreter', type: 'boolean', value: false,
84        description: 'TCG with bytecode interpreter (slow)')
85 option('safe_stack', type: 'boolean', value: false,
86        description: 'SafeStack Stack Smash Protection (requires clang/llvm and coroutine backend ucontext)')
87 option('sanitizers', type: 'boolean', value: false,
88        description: 'enable default sanitizers')
89 option('tsan', type: 'boolean', value: false,
90        description: 'enable thread sanitizer')
91 option('cfi', type: 'boolean', value: false,
92        description: 'Control-Flow Integrity (CFI)')
93 option('cfi_debug', type: 'boolean', value: false,
94        description: 'Verbose errors in case of CFI violation')
95 option('multiprocess', type: 'feature', value: 'auto',
96        description: 'Out of process device emulation support')
97 option('vfio_user_server', type: 'feature', value: 'disabled',
98        description: 'vfio-user server support')
99 option('dbus_display', type: 'feature', value: 'auto',
100        description: '-display dbus support')
101 option('tpm', type : 'feature', value : 'auto',
102        description: 'TPM support')
103
104 # Do not enable it by default even for Mingw32, because it doesn't
105 # work on Wine.
106 option('membarrier', type: 'feature', value: 'disabled',
107        description: 'membarrier system call (for Linux 4.14+ or Windows')
108
109 option('avx2', type: 'feature', value: 'auto',
110        description: 'AVX2 optimizations')
111 option('avx512f', type: 'feature', value: 'disabled',
112        description: 'AVX512F optimizations')
113 option('avx512bw', type: 'feature', value: 'auto',
114        description: 'AVX512BW optimizations')
115 option('keyring', type: 'feature', value: 'auto',
116        description: 'Linux keyring support')
117
118 option('attr', type : 'feature', value : 'auto',
119        description: 'attr/xattr support')
120 option('auth_pam', type : 'feature', value : 'auto',
121        description: 'PAM access control')
122 option('brlapi', type : 'feature', value : 'auto',
123        description: 'brlapi character device driver')
124 option('bzip2', type : 'feature', value : 'auto',
125        description: 'bzip2 support for DMG images')
126 option('cap_ng', type : 'feature', value : 'auto',
127        description: 'cap_ng support')
128 option('blkio', type : 'feature', value : 'auto',
129        description: 'libblkio block device driver')
130 option('bpf', type : 'feature', value : 'auto',
131         description: 'eBPF support')
132 option('cocoa', type : 'feature', value : 'auto',
133        description: 'Cocoa user interface (macOS only)')
134 option('curl', type : 'feature', value : 'auto',
135        description: 'CURL block device driver')
136 option('gio', type : 'feature', value : 'auto',
137        description: 'use libgio for D-Bus support')
138 option('glusterfs', type : 'feature', value : 'auto',
139        description: 'Glusterfs block device driver')
140 option('libdw', type : 'feature', value : 'auto',
141        description: 'debuginfo support')
142 option('libiscsi', type : 'feature', value : 'auto',
143        description: 'libiscsi userspace initiator')
144 option('libnfs', type : 'feature', value : 'auto',
145        description: 'libnfs block device driver')
146 option('mpath', type : 'feature', value : 'auto',
147        description: 'Multipath persistent reservation passthrough')
148 option('numa', type : 'feature', value : 'auto',
149        description: 'libnuma support')
150 option('iconv', type : 'feature', value : 'auto',
151        description: 'Font glyph conversion support')
152 option('curses', type : 'feature', value : 'auto',
153        description: 'curses UI')
154 option('gnutls', type : 'feature', value : 'auto',
155        description: 'GNUTLS cryptography support')
156 option('nettle', type : 'feature', value : 'auto',
157        description: 'nettle cryptography support')
158 option('gcrypt', type : 'feature', value : 'auto',
159        description: 'libgcrypt cryptography support')
160 option('crypto_afalg', type : 'feature', value : 'disabled',
161        description: 'Linux AF_ALG crypto backend driver')
162 option('libdaxctl', type : 'feature', value : 'auto',
163        description: 'libdaxctl support')
164 option('libpmem', type : 'feature', value : 'auto',
165        description: 'libpmem support')
166 option('libssh', type : 'feature', value : 'auto',
167        description: 'ssh block device support')
168 option('libudev', type : 'feature', value : 'auto',
169        description: 'Use libudev to enumerate host devices')
170 option('libusb', type : 'feature', value : 'auto',
171        description: 'libusb support for USB passthrough')
172 option('linux_aio', type : 'feature', value : 'auto',
173        description: 'Linux AIO support')
174 option('linux_io_uring', type : 'feature', value : 'auto',
175        description: 'Linux io_uring support')
176 option('lzfse', type : 'feature', value : 'auto',
177        description: 'lzfse support for DMG images')
178 option('lzo', type : 'feature', value : 'auto',
179        description: 'lzo compression support')
180 option('rbd', type : 'feature', value : 'auto',
181        description: 'Ceph block device driver')
182 option('opengl', type : 'feature', value : 'auto',
183        description: 'OpenGL support')
184 option('rdma', type : 'feature', value : 'auto',
185        description: 'Enable RDMA-based migration')
186 option('pvrdma', type : 'feature', value : 'auto',
187        description: 'Enable PVRDMA support')
188 option('gtk', type : 'feature', value : 'auto',
189        description: 'GTK+ user interface')
190 option('sdl', type : 'feature', value : 'auto',
191        description: 'SDL user interface')
192 option('sdl_image', type : 'feature', value : 'auto',
193        description: 'SDL Image support for icons')
194 option('seccomp', type : 'feature', value : 'auto',
195        description: 'seccomp support')
196 option('smartcard', type : 'feature', value : 'auto',
197        description: 'CA smartcard emulation support')
198 option('snappy', type : 'feature', value : 'auto',
199        description: 'snappy compression support')
200 option('spice', type : 'feature', value : 'auto',
201        description: 'Spice server support')
202 option('spice_protocol', type : 'feature', value : 'auto',
203        description: 'Spice protocol support')
204 option('u2f', type : 'feature', value : 'auto',
205        description: 'U2F emulation support')
206 option('canokey', type : 'feature', value : 'auto',
207        description: 'CanoKey support')
208 option('usb_redir', type : 'feature', value : 'auto',
209        description: 'libusbredir support')
210 option('l2tpv3', type : 'feature', value : 'auto',
211        description: 'l2tpv3 network backend support')
212 option('netmap', type : 'feature', value : 'auto',
213        description: 'netmap network backend support')
214 option('slirp', type: 'feature', value: 'auto',
215        description: 'libslirp user mode network backend support')
216 option('vde', type : 'feature', value : 'auto',
217        description: 'vde network backend support')
218 option('vmnet', type : 'feature', value : 'auto',
219        description: 'vmnet.framework network backend support')
220 option('virglrenderer', type : 'feature', value : 'auto',
221        description: 'virgl rendering support')
222 option('png', type : 'feature', value : 'auto',
223        description: 'PNG support with libpng')
224 option('vnc', type : 'feature', value : 'auto',
225        description: 'VNC server')
226 option('vnc_jpeg', type : 'feature', value : 'auto',
227        description: 'JPEG lossy compression for VNC server')
228 option('vnc_sasl', type : 'feature', value : 'auto',
229        description: 'SASL authentication for VNC server')
230 option('vte', type : 'feature', value : 'auto',
231        description: 'vte support for the gtk UI')
232
233 # GTK Clipboard implementation is disabled by default, since it may cause hangs
234 # of the guest VCPUs. See gitlab issue 1150:
235 # https://gitlab.com/qemu-project/qemu/-/issues/1150
236
237 option('gtk_clipboard', type: 'feature', value : 'disabled',
238        description: 'clipboard support for the gtk UI (EXPERIMENTAL, MAY HANG)')
239 option('xkbcommon', type : 'feature', value : 'auto',
240        description: 'xkbcommon support')
241 option('zstd', type : 'feature', value : 'auto',
242        description: 'zstd compression support')
243 option('fuse', type: 'feature', value: 'auto',
244        description: 'FUSE block device export')
245 option('fuse_lseek', type : 'feature', value : 'auto',
246        description: 'SEEK_HOLE/SEEK_DATA support for FUSE exports')
247
248 option('trace_backends', type: 'array', value: ['log'],
249        choices: ['dtrace', 'ftrace', 'log', 'nop', 'simple', 'syslog', 'ust'],
250        description: 'Set available tracing backends')
251
252 option('alsa', type: 'feature', value: 'auto',
253        description: 'ALSA sound support')
254 option('coreaudio', type: 'feature', value: 'auto',
255        description: 'CoreAudio sound support')
256 option('dsound', type: 'feature', value: 'auto',
257        description: 'DirectSound sound support')
258 option('jack', type: 'feature', value: 'auto',
259        description: 'JACK sound support')
260 option('oss', type: 'feature', value: 'auto',
261        description: 'OSS sound support')
262 option('pa', type: 'feature', value: 'auto',
263        description: 'PulseAudio sound support')
264 option('pipewire', type: 'feature', value: 'auto',
265        description: 'Pipewire sound support')
266 option('sndio', type: 'feature', value: 'auto',
267        description: 'sndio sound support')
268
269 option('vhost_kernel', type: 'feature', value: 'auto',
270        description: 'vhost kernel backend support')
271 option('vhost_net', type: 'feature', value: 'auto',
272        description: 'vhost-net kernel acceleration support')
273 option('vhost_user', type: 'feature', value: 'auto',
274        description: 'vhost-user backend support')
275 option('vhost_crypto', type: 'feature', value: 'auto',
276        description: 'vhost-user crypto backend support')
277 option('vhost_vdpa', type: 'feature', value: 'auto',
278        description: 'vhost-vdpa kernel backend support')
279 option('vhost_user_blk_server', type: 'feature', value: 'auto',
280        description: 'build vhost-user-blk server')
281 option('virtfs', type: 'feature', value: 'auto',
282        description: 'virtio-9p support')
283 option('virtfs_proxy_helper', type: 'feature', value: 'auto',
284        description: 'virtio-9p proxy helper support')
285 option('libvduse', type: 'feature', value: 'auto',
286        description: 'build VDUSE Library')
287 option('vduse_blk_export', type: 'feature', value: 'auto',
288        description: 'VDUSE block export support')
289
290 option('capstone', type: 'feature', value: 'auto',
291        description: 'Whether and how to find the capstone library')
292 option('fdt', type: 'combo', value: 'auto',
293        choices: ['disabled', 'enabled', 'auto', 'system', 'internal'],
294        description: 'Whether and how to find the libfdt library')
295
296 option('selinux', type: 'feature', value: 'auto',
297        description: 'SELinux support in qemu-nbd')
298 option('live_block_migration', type: 'feature', value: 'auto',
299        description: 'block migration in the main migration stream')
300 option('replication', type: 'feature', value: 'auto',
301        description: 'replication support')
302 option('bochs', type: 'feature', value: 'auto',
303        description: 'bochs image format support')
304 option('cloop', type: 'feature', value: 'auto',
305        description: 'cloop image format support')
306 option('dmg', type: 'feature', value: 'auto',
307        description: 'dmg image format support')
308 option('qcow1', type: 'feature', value: 'auto',
309        description: 'qcow1 image format support')
310 option('vdi', type: 'feature', value: 'auto',
311        description: 'vdi image format support')
312 option('vhdx', type: 'feature', value: 'auto',
313        description: 'vhdx image format support')
314 option('vmdk', type: 'feature', value: 'auto',
315        description: 'vmdk image format support')
316 option('vpc', type: 'feature', value: 'auto',
317        description: 'vpc image format support')
318 option('vvfat', type: 'feature', value: 'auto',
319        description: 'vvfat image format support')
320 option('qed', type: 'feature', value: 'auto',
321        description: 'qed image format support')
322 option('parallels', type: 'feature', value: 'auto',
323        description: 'parallels image format support')
324 option('block_drv_whitelist_in_tools', type: 'boolean', value: false,
325        description: 'use block whitelist also in tools instead of only QEMU')
326 option('rng_none', type: 'boolean', value: false,
327        description: 'dummy RNG, avoid using /dev/(u)random and getrandom()')
328 option('coroutine_pool', type: 'boolean', value: true,
329        description: 'coroutine freelist (better performance)')
330 option('debug_graph_lock', type: 'boolean', value: false,
331        description: 'graph lock debugging support')
332 option('debug_mutex', type: 'boolean', value: false,
333        description: 'mutex debugging support')
334 option('debug_stack_usage', type: 'boolean', value: false,
335        description: 'measure coroutine stack usage')
336 option('qom_cast_debug', type: 'boolean', value: true,
337        description: 'cast debugging support')
338 option('gprof', type: 'boolean', value: false,
339        description: 'QEMU profiling with gprof',
340        deprecated: true)
341 option('profiler', type: 'boolean', value: false,
342        description: 'profiler support')
343 option('slirp_smbd', type : 'feature', value : 'auto',
344        description: 'use smbd (at path --smbd=*) in slirp networking')
345
346 option('hexagon_idef_parser', type : 'boolean', value : true,
347        description: 'use idef-parser to automatically generate TCG code for the Hexagon frontend')