meson: convert io directory to Meson

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Marc-André Lureau 2019-07-16 19:33:55 +04:00 committed by Paolo Bonzini
parent 5582c58f82
commit 7fcfd45666
6 changed files with 28 additions and 15 deletions

View file

@ -1,12 +0,0 @@
io-obj-y = channel.o
io-obj-y += channel-buffer.o
io-obj-y += channel-command.o
io-obj-y += channel-file.o
io-obj-y += channel-socket.o
io-obj-y += channel-tls.o
io-obj-y += channel-watch.o
io-obj-y += channel-websock.o
io-obj-y += channel-util.o
io-obj-y += dns-resolver.o
io-obj-y += net-listener.o
io-obj-y += task.o

25
io/meson.build Normal file
View file

@ -0,0 +1,25 @@
io_ss = ss.source_set()
io_ss.add(genh)
io_ss.add(files(
'channel-buffer.c',
'channel-command.c',
'channel-file.c',
'channel-socket.c',
'channel-tls.c',
'channel-util.c',
'channel-watch.c',
'channel-websock.c',
'channel.c',
'dns-resolver.c',
'net-listener.c',
'task.c',
))
io_ss = io_ss.apply(config_host, strict: false)
libio = static_library('io', io_ss.sources() + genh,
dependencies: [io_ss.dependencies()],
link_with: libqemuutil,
name_suffix: 'fa',
build_by_default: false)
io = declare_dependency(link_whole: libio, dependencies: [crypto, qom])