mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
tools/virtiofsd: convert to Meson
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
931049b46c
commit
3f99cf5710
10 changed files with 43 additions and 27 deletions
10
tools/meson.build
Normal file
10
tools/meson.build
Normal file
|
@ -0,0 +1,10 @@
|
|||
have_virtiofsd = (have_system and
|
||||
have_tools and
|
||||
'CONFIG_LINUX' in config_host and
|
||||
'CONFIG_SECCOMP' in config_host and
|
||||
'CONFIG_LIBCAP_NG' in config_host and
|
||||
'CONFIG_VHOST_USER' in config_host)
|
||||
|
||||
if have_virtiofsd
|
||||
subdir('virtiofsd')
|
||||
endif
|
|
@ -1,12 +0,0 @@
|
|||
virtiofsd-obj-y = buffer.o \
|
||||
fuse_opt.o \
|
||||
fuse_log.o \
|
||||
fuse_lowlevel.o \
|
||||
fuse_signals.o \
|
||||
fuse_virtio.o \
|
||||
helper.o \
|
||||
passthrough_ll.o \
|
||||
seccomp.o
|
||||
|
||||
seccomp.o-cflags := $(SECCOMP_CFLAGS)
|
||||
seccomp.o-libs := $(SECCOMP_LIBS)
|
19
tools/virtiofsd/meson.build
Normal file
19
tools/virtiofsd/meson.build
Normal file
|
@ -0,0 +1,19 @@
|
|||
executable('virtiofsd', files(
|
||||
'buffer.c',
|
||||
'fuse_opt.c',
|
||||
'fuse_log.c',
|
||||
'fuse_lowlevel.c',
|
||||
'fuse_signals.c',
|
||||
'fuse_virtio.c',
|
||||
'helper.c',
|
||||
'passthrough_ll.c',
|
||||
'passthrough_seccomp.c'),
|
||||
link_with: libvhost_user,
|
||||
dependencies: [seccomp, qemuutil, libcap_ng],
|
||||
install: true,
|
||||
install_dir: get_option('libexecdir'))
|
||||
|
||||
configure_file(input: '50-qemu-virtiofsd.json.in',
|
||||
output: '50-qemu-virtiofsd.json',
|
||||
configuration: config_host,
|
||||
install_dir: config_host['qemu_datadir'] / 'vhost-user')
|
|
@ -65,7 +65,7 @@
|
|||
#include <unistd.h>
|
||||
|
||||
#include "passthrough_helpers.h"
|
||||
#include "seccomp.h"
|
||||
#include "passthrough_seccomp.h"
|
||||
|
||||
/* Keep track of inode posix locks for each owner. */
|
||||
struct lo_inode_plock {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "seccomp.h"
|
||||
#include "passthrough_seccomp.h"
|
||||
#include "fuse_i.h"
|
||||
#include "fuse_log.h"
|
||||
#include <errno.h>
|
Loading…
Add table
Add a link
Reference in a new issue