Skip to content

Commit

Permalink
meson: convert io directory to Meson
Browse files Browse the repository at this point in the history
Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
elmarco authored and bonzini committed Aug 21, 2020
1 parent 5582c58 commit 7fcfd45
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 15 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ dummy := $(call unnest-vars,, \
block-obj-m \
storage-daemon-obj-y \
storage-daemon-obj-m \
io-obj-y \
common-obj-y \
common-obj-m)

Expand Down
2 changes: 1 addition & 1 deletion Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ block-obj-m = block/

crypto-obj-y = crypto/libcrypto.fa

io-obj-y = io/
io-obj-y = io/libio.fa

endif # CONFIG_SOFTMMU or CONFIG_TOOLS

Expand Down
2 changes: 1 addition & 1 deletion Makefile.target
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,12 @@ include $(SRC_PATH)/Makefile.objs
dummy := $(call fix-paths,../,, \
authz-obj-y \
crypto-obj-y \
io-obj-y \
qom-obj-y)
dummy := $(call unnest-vars,.., \
block-obj-y \
block-obj-m \
chardev-obj-y \
io-obj-y \
common-obj-y \
common-obj-m)
all-obj-y += $(common-obj-y)
Expand Down
12 changes: 0 additions & 12 deletions io/Makefile.objs

This file was deleted.

25 changes: 25 additions & 0 deletions io/meson.build
Original file line number Diff line number Diff line change
@@ -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])
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ libqemuutil = static_library('qemuutil',
qemuutil = declare_dependency(link_with: libqemuutil,
sources: genh + version_res)

subdir('io')
subdir('fsdev')

# Other build targets
Expand Down

0 comments on commit 7fcfd45

Please sign in to comment.