blob: be7778b3a2ca6b59818b956adf65cafccfae8bb6 [file] [log] [blame]
Paolo Bonzini3b4da132021-10-07 15:08:29 +02001# 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
Marc-André Lureauab4c0992020-08-26 15:04:16 +04005option('qemu_suffix', type : 'string', value: 'qemu',
Marc-André Lureau73f3aa32020-08-26 15:04:15 +04006 description: 'Suffix for QEMU data/modules/config directories (can be empty)')
Marc-André Lureau491e74c2020-08-26 15:04:17 +04007option('docdir', type : 'string', value : 'doc',
8 description: 'Base directory for documentation installation (can be empty)')
Paolo Bonzini16bf7a32020-10-16 03:19:14 -04009option('qemu_firmwarepath', type : 'string', value : '',
10 description: 'search PATH for firmware files')
Paolo Bonzini35acbb32021-10-13 13:43:36 +020011option('smbd', type : 'string', value : '',
12 description: 'Path to smbd for slirp networking')
Yonggang Luoe3667662020-10-16 06:06:25 +080013option('sphinx_build', type : 'string', value : '',
14 description: 'Use specified sphinx-build [$sphinx_build] for building document (default to be empty)')
Paolo Bonzini7bc3ca72020-11-20 08:38:22 +010015option('default_devices', type : 'boolean', value : true,
16 description: 'Include a default selection of devices in emulators')
Paolo Bonzini87430d52021-10-07 15:06:09 +020017option('audio_drv_list', type: 'array', value: ['default'],
18 choices: ['alsa', 'coreaudio', 'default', 'dsound', 'jack', 'oss', 'pa', 'sdl'],
19 description: 'Set audio driver list')
Paolo Bonzini537b7242021-10-07 15:08:12 +020020option('fuzzing_engine', type : 'string', value : '',
21 description: 'fuzzing engine library for OSS-Fuzz')
Paolo Bonzini9c29b742021-10-07 15:08:14 +020022option('trace_file', type: 'string', value: 'trace',
23 description: 'Trace file prefix for simple backend')
Paolo Bonzini87430d52021-10-07 15:06:09 +020024
Paolo Bonzini3b4da132021-10-07 15:08:29 +020025# Everything else can be set via --enable/--disable-* option
26# on the configure script command line. After adding an option
27# here make sure to run "make update-buildoptions".
28
Yonggang Luoe3667662020-10-16 06:06:25 +080029option('docs', type : 'feature', value : 'auto',
30 description: 'Documentations build support')
Paolo Bonzini537b7242021-10-07 15:08:12 +020031option('fuzzing', type : 'boolean', value: false,
32 description: 'build fuzzing targets')
Alex Bennée0e8e77d2020-12-10 19:04:12 +000033option('gettext', type : 'feature', value : 'auto',
Paolo Bonzinicb572712020-09-01 01:59:23 -040034 description: 'Localization of the GTK+ user interface')
Paolo Bonzinic8d54502020-10-16 03:32:52 -040035option('install_blobs', type : 'boolean', value : true,
36 description: 'install provided firmware blobs')
Paolo Bonzinideb62372020-09-01 07:51:16 -040037option('sparse', type : 'feature', value : 'auto',
38 description: 'sparse checker')
Paolo Bonzini20cf5cb2021-10-15 16:47:43 +020039option('guest_agent', type : 'feature', value : 'auto',
40 description: 'Build QEMU Guest Agent')
Paolo Bonzinib846ab72021-01-21 11:49:04 +010041option('guest_agent_msi', type : 'feature', value : 'auto',
42 description: 'Build MSI package for the QEMU Guest Agent')
Paolo Bonzini20cf5cb2021-10-15 16:47:43 +020043option('tools', type : 'feature', value : 'auto',
44 description: 'build support utilities that come with QEMU')
Paolo Bonzinicb572712020-09-01 01:59:23 -040045
Paolo Bonziniaa087962020-09-01 11:15:30 -040046option('malloc_trim', type : 'feature', value : 'auto',
47 description: 'enable libc malloc_trim() for memory optimization')
48option('malloc', type : 'combo', choices : ['system', 'tcmalloc', 'jemalloc'],
49 value: 'system', description: 'choose memory allocator to use')
50
Paolo Bonzini1badb702020-09-18 04:57:25 -040051option('kvm', type: 'feature', value: 'auto',
52 description: 'KVM acceleration support')
53option('hax', type: 'feature', value: 'auto',
54 description: 'HAX acceleration support')
55option('whpx', type: 'feature', value: 'auto',
56 description: 'WHPX acceleration support')
57option('hvf', type: 'feature', value: 'auto',
58 description: 'HVF acceleration support')
Reinoud Zandijk74a414a2021-04-02 22:25:32 +020059option('nvmm', type: 'feature', value: 'auto',
60 description: 'NVMM acceleration support')
Paolo Bonzini1badb702020-09-18 04:57:25 -040061option('xen', type: 'feature', value: 'auto',
62 description: 'Xen backend support')
63option('xen_pci_passthrough', type: 'feature', value: 'auto',
64 description: 'Xen PCI passthrough support')
65option('tcg', type: 'feature', value: 'auto',
66 description: 'TCG support')
Paolo Bonzini23a77b22020-12-14 12:01:45 +010067option('tcg_interpreter', type: 'boolean', value: false,
Philippe Mathieu-Daudéf1f727a2021-11-06 12:14:57 +010068 description: 'TCG with bytecode interpreter (slow)')
Daniele Buono9e62ba42020-12-04 18:06:14 -050069option('cfi', type: 'boolean', value: 'false',
70 description: 'Control-Flow Integrity (CFI)')
71option('cfi_debug', type: 'boolean', value: 'false',
72 description: 'Verbose errors in case of CFI violation')
Paolo Bonzini106ad1f2021-02-17 16:24:25 +010073option('multiprocess', type: 'feature', value: 'auto',
74 description: 'Out of process device emulation support')
Marc-André Lureau142ca622021-07-15 11:53:53 +040075option('dbus_display', type: 'feature', value: 'auto',
76 description: '-display dbus support')
Paolo Bonzini0d04c4c2021-12-21 12:38:27 +010077option('tpm', type : 'feature', value : 'auto',
78 description: 'TPM support')
Paolo Bonzinib87df902021-11-08 13:52:11 +010079
80# Do not enable it by default even for Mingw32, because it doesn't
81# work on Wine.
82option('membarrier', type: 'feature', value: 'disabled',
83 description: 'membarrier system call (for Linux 4.14+ or Windows')
84
Paolo Bonzini622753d2021-11-08 13:38:58 +010085option('avx2', type: 'feature', value: 'auto',
86 description: 'AVX2 optimizations')
87option('avx512f', type: 'feature', value: 'disabled',
88 description: 'AVX512F optimizations')
Paolo Bonzini1badb702020-09-18 04:57:25 -040089
Paolo Bonzinif7f2d652020-11-17 14:45:24 +010090option('attr', type : 'feature', value : 'auto',
91 description: 'attr/xattr support')
Paolo Bonzini05e391a2021-06-03 11:15:26 +020092option('auth_pam', type : 'feature', value : 'auto',
93 description: 'PAM access control')
Paolo Bonzini8c6d4ff2020-11-17 13:02:17 +010094option('brlapi', type : 'feature', value : 'auto',
95 description: 'brlapi character device driver')
Paolo Bonzini29ba6112020-11-17 13:07:52 +010096option('bzip2', type : 'feature', value : 'auto',
97 description: 'bzip2 support for DMG images')
Paolo Bonzini727c8bb2020-11-17 14:46:58 +010098option('cap_ng', type : 'feature', value : 'auto',
99 description: 'cap_ng support')
Andrew Melnychenko46627f42021-05-14 14:48:32 +0300100option('bpf', type : 'feature', value : 'auto',
101 description: 'eBPF support')
Paolo Bonzinib4e312e2020-09-01 11:28:59 -0400102option('cocoa', type : 'feature', value : 'auto',
103 description: 'Cocoa user interface (macOS only)')
Paolo Bonzinif9cd86f2020-11-17 12:43:15 +0100104option('curl', type : 'feature', value : 'auto',
105 description: 'CURL block device driver')
Paolo Bonzini08821ca2020-11-17 13:01:26 +0100106option('glusterfs', type : 'feature', value : 'auto',
107 description: 'Glusterfs block device driver')
Paolo Bonzini9db405a2020-11-17 13:11:25 +0100108option('libiscsi', type : 'feature', value : 'auto',
109 description: 'libiscsi userspace initiator')
Paolo Bonzini30045c02020-11-17 13:11:25 +0100110option('libnfs', type : 'feature', value : 'auto',
111 description: 'libnfs block device driver')
Paolo Bonzini6ec0e152020-09-16 18:07:29 +0200112option('mpath', type : 'feature', value : 'auto',
113 description: 'Multipath persistent reservation passthrough')
Paolo Bonzini488a8c72021-12-21 12:38:27 +0100114option('numa', type : 'feature', value : 'auto',
115 description: 'libnuma support')
Yonggang Luo5285e592020-10-13 07:43:48 +0800116option('iconv', type : 'feature', value : 'auto',
117 description: 'Font glyph conversion support')
118option('curses', type : 'feature', value : 'auto',
119 description: 'curses UI')
Paolo Bonzini57612512021-06-03 11:15:26 +0200120option('gnutls', type : 'feature', value : 'auto',
121 description: 'GNUTLS cryptography support')
122option('nettle', type : 'feature', value : 'auto',
123 description: 'nettle cryptography support')
124option('gcrypt', type : 'feature', value : 'auto',
125 description: 'libgcrypt cryptography support')
Paolo Bonzini34b52612021-11-08 14:02:42 +0100126option('crypto_afalg', type : 'feature', value : 'disabled',
127 description: 'Linux AF_ALG crypto backend driver')
Paolo Bonzini83ef1682021-06-03 11:31:35 +0200128option('libdaxctl', type : 'feature', value : 'auto',
129 description: 'libdaxctl support')
Paolo Bonzinie36e8c72021-06-03 11:31:35 +0200130option('libpmem', type : 'feature', value : 'auto',
131 description: 'libpmem support')
Thomas Huthe6a52b32021-12-09 15:48:01 +0100132option('libssh', type : 'feature', value : 'auto',
133 description: 'ssh block device support')
Paolo Bonzini5c530152020-10-15 06:09:27 -0400134option('libudev', type : 'feature', value : 'auto',
135 description: 'Use libudev to enumerate host devices')
Paolo Bonzini90540f32021-06-03 11:15:26 +0200136option('libusb', type : 'feature', value : 'auto',
137 description: 'libusb support for USB passthrough')
Paolo Bonziniff66f3e2021-10-07 15:08:20 +0200138option('linux_aio', type : 'feature', value : 'auto',
139 description: 'Linux AIO support')
Paolo Bonzini53c22b62021-06-03 11:31:35 +0200140option('linux_io_uring', type : 'feature', value : 'auto',
141 description: 'Linux io_uring support')
Paolo Bonziniecea3692020-11-17 13:35:28 +0100142option('lzfse', type : 'feature', value : 'auto',
143 description: 'lzfse support for DMG images')
Paolo Bonzini0c32a0a2020-11-17 13:11:25 +0100144option('lzo', type : 'feature', value : 'auto',
145 description: 'lzo compression support')
Paolo Bonzinifabd1e92020-11-17 13:11:25 +0100146option('rbd', type : 'feature', value : 'auto',
147 description: 'Ceph block device driver')
Paolo Bonzini1b695472021-01-07 14:02:29 +0100148option('gtk', type : 'feature', value : 'auto',
149 description: 'GTK+ user interface')
Paolo Bonzinicb572712020-09-01 01:59:23 -0400150option('sdl', type : 'feature', value : 'auto',
151 description: 'SDL user interface')
152option('sdl_image', type : 'feature', value : 'auto',
153 description: 'SDL Image support for icons')
Paolo Bonzini90835c22020-11-17 14:22:24 +0100154option('seccomp', type : 'feature', value : 'auto',
155 description: 'seccomp support')
Paolo Bonzini5f364c52021-06-03 11:15:26 +0200156option('smartcard', type : 'feature', value : 'auto',
157 description: 'CA smartcard emulation support')
Paolo Bonzini241611e2020-11-17 13:32:34 +0100158option('snappy', type : 'feature', value : 'auto',
159 description: 'snappy compression support')
Marc-André Lureau3f0a5d52021-10-07 15:08:23 +0200160option('spice', type : 'feature', value : 'auto',
161 description: 'Spice server support')
162option('spice_protocol', type : 'feature', value : 'auto',
163 description: 'Spice protocol support')
Paolo Bonzinicb572712020-09-01 01:59:23 -0400164option('u2f', type : 'feature', value : 'auto',
165 description: 'U2F emulation support')
Paolo Bonzini18f31e62021-06-03 11:15:26 +0200166option('usb_redir', type : 'feature', value : 'auto',
167 description: 'libusbredir support')
Thomas Hutheea94532021-10-28 20:59:08 +0200168option('l2tpv3', type : 'feature', value : 'auto',
169 description: 'l2tpv3 network backend support')
Paolo Bonzini837b84b2021-10-07 15:08:22 +0200170option('netmap', type : 'feature', value : 'auto',
171 description: 'netmap network backend support')
Paolo Bonzinie1723992021-10-07 15:08:21 +0200172option('vde', type : 'feature', value : 'auto',
173 description: 'vde network backend support')
Paolo Bonzini587d59d2021-06-03 11:31:35 +0200174option('virglrenderer', type : 'feature', value : 'auto',
175 description: 'virgl rendering support')
Thomas Huthc1de5852021-09-03 10:13:55 +0200176option('vnc', type : 'feature', value : 'auto',
Paolo Bonzinicb572712020-09-01 01:59:23 -0400177 description: 'VNC server')
178option('vnc_jpeg', type : 'feature', value : 'auto',
179 description: 'JPEG lossy compression for VNC server')
180option('vnc_png', type : 'feature', value : 'auto',
181 description: 'PNG compression for VNC server')
182option('vnc_sasl', type : 'feature', value : 'auto',
183 description: 'SASL authentication for VNC server')
Paolo Bonzinic23d7b42021-06-03 11:31:35 +0200184option('vte', type : 'feature', value : 'auto',
185 description: 'vte support for the gtk UI')
Paolo Bonzinicb572712020-09-01 01:59:23 -0400186option('xkbcommon', type : 'feature', value : 'auto',
187 description: 'xkbcommon support')
Paolo Bonzinib1def332020-11-17 13:37:39 +0100188option('zstd', type : 'feature', value : 'auto',
189 description: 'zstd compression support')
Max Reitza484a712020-10-27 20:05:41 +0100190option('fuse', type: 'feature', value: 'auto',
191 description: 'FUSE block device export')
Max Reitzdf4ea702020-10-27 20:05:46 +0100192option('fuse_lseek', type : 'feature', value : 'auto',
193 description: 'SEEK_HOLE/SEEK_DATA support for FUSE exports')
Richard Henderson8b18cdb2020-09-13 12:19:25 -0700194
Paolo Bonzini9c29b742021-10-07 15:08:14 +0200195option('trace_backends', type: 'array', value: ['log'],
196 choices: ['dtrace', 'ftrace', 'log', 'nop', 'simple', 'syslog', 'ust'],
197 description: 'Set available tracing backends')
198
Paolo Bonzini87430d52021-10-07 15:06:09 +0200199option('alsa', type: 'feature', value: 'auto',
200 description: 'ALSA sound support')
201option('coreaudio', type: 'feature', value: 'auto',
202 description: 'CoreAudio sound support')
203option('dsound', type: 'feature', value: 'auto',
204 description: 'DirectSound sound support')
205option('jack', type: 'feature', value: 'auto',
206 description: 'JACK sound support')
207option('oss', type: 'feature', value: 'auto',
208 description: 'OSS sound support')
209option('pa', type: 'feature', value: 'auto',
210 description: 'PulseAudio sound support')
211
Paolo Bonzini69202b42020-11-17 14:46:21 +0100212option('vhost_user_blk_server', type: 'feature', value: 'auto',
213 description: 'build vhost-user-blk server')
214option('virtfs', type: 'feature', value: 'auto',
215 description: 'virtio-9p support')
216option('virtiofsd', type: 'feature', value: 'auto',
217 description: 'build virtiofs daemon (virtiofsd)')
218
Richard Henderson8b18cdb2020-09-13 12:19:25 -0700219option('capstone', type: 'combo', value: 'auto',
220 choices: ['disabled', 'enabled', 'auto', 'system', 'internal'],
221 description: 'Whether and how to find the capstone library')
Paolo Bonzini4d34a862020-10-05 11:31:15 +0200222option('slirp', type: 'combo', value: 'auto',
223 choices: ['disabled', 'enabled', 'auto', 'system', 'internal'],
224 description: 'Whether and how to find the slirp library')
Paolo Bonzinifbb41212020-10-05 11:31:15 +0200225option('fdt', type: 'combo', value: 'auto',
226 choices: ['disabled', 'enabled', 'auto', 'system', 'internal'],
227 description: 'Whether and how to find the libfdt library')
Richard W.M. Jones3d212b42021-11-15 14:29:43 -0600228
229option('selinux', type: 'feature', value: 'auto',
230 description: 'SELinux support in qemu-nbd')
Paolo Bonzini406523f2021-10-13 11:43:54 +0200231option('live_block_migration', type: 'feature', value: 'auto',
232 description: 'block migration in the main migration stream')
233option('replication', type: 'feature', value: 'auto',
234 description: 'replication support')
Paolo Bonzinied793c22021-10-13 11:42:25 +0200235option('bochs', type: 'feature', value: 'auto',
236 description: 'bochs image format support')
237option('cloop', type: 'feature', value: 'auto',
238 description: 'cloop image format support')
239option('dmg', type: 'feature', value: 'auto',
240 description: 'dmg image format support')
241option('qcow1', type: 'feature', value: 'auto',
242 description: 'qcow1 image format support')
243option('vdi', type: 'feature', value: 'auto',
244 description: 'vdi image format support')
245option('vvfat', type: 'feature', value: 'auto',
246 description: 'vvfat image format support')
247option('qed', type: 'feature', value: 'auto',
248 description: 'qed image format support')
249option('parallels', type: 'feature', value: 'auto',
250 description: 'parallels image format support')
Paolo Bonzinic55cf6a2021-10-13 11:46:09 +0200251option('block_drv_whitelist_in_tools', type: 'boolean', value: false,
252 description: 'use block whitelist also in tools instead of only QEMU')
253option('rng_none', type: 'boolean', value: false,
254 description: 'dummy RNG, avoid using /dev/(u)random and getrandom()')
Paolo Bonzini728c0a22021-10-13 11:52:03 +0200255option('coroutine_pool', type: 'boolean', value: true,
256 description: 'coroutine freelist (better performance)')
Paolo Bonzinic55cf6a2021-10-13 11:46:09 +0200257option('debug_mutex', type: 'boolean', value: false,
258 description: 'mutex debugging support')
Paolo Bonzini728c0a22021-10-13 11:52:03 +0200259option('debug_stack_usage', type: 'boolean', value: false,
260 description: 'measure coroutine stack usage')
Paolo Bonzinic55cf6a2021-10-13 11:46:09 +0200261option('qom_cast_debug', type: 'boolean', value: false,
262 description: 'cast debugging support')
263option('gprof', type: 'boolean', value: false,
264 description: 'QEMU profiling with gprof')
265option('profiler', type: 'boolean', value: false,
266 description: 'profiler support')
Paolo Bonzini35acbb32021-10-13 13:43:36 +0200267option('slirp_smbd', type : 'feature', value : 'auto',
268 description: 'use smbd (at path --smbd=*) in slirp networking')