mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 05:20:50 +00:00
2a3129a376
When using Meson options rather than config-host.h, the "when" clauses have to be changed to if statements (which is not necessarily great, though at least it highlights which parts of the build are per-target and which are not). Do that before moving vhost logic to meson.build, though for now the variables are just based on config-host.mak data. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
14 lines
492 B
Meson
14 lines
492 B
Meson
have_virtiofsd = get_option('virtiofsd') \
|
|
.require(targetos == 'linux',
|
|
error_message: 'virtiofsd requires Linux') \
|
|
.require(seccomp.found() and libcap_ng.found(),
|
|
error_message: 'virtiofsd requires libcap-ng-devel and seccomp-devel') \
|
|
.require(have_vhost_user,
|
|
error_message: 'virtiofsd needs vhost-user-support') \
|
|
.disable_auto_if(not have_tools and not have_system) \
|
|
.allowed()
|
|
|
|
if have_virtiofsd
|
|
subdir('virtiofsd')
|
|
endif
|