contrib/rdmacm-mux: convert to Meson

We can use config-host.mak to decide whether the tool has to be built,
apart from that the conversion is straightforward.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2019-06-10 12:27:52 +02:00
parent 99650b628f
commit a9c9727c02
5 changed files with 11 additions and 9 deletions

View file

@ -1,3 +0,0 @@
ifdef CONFIG_PVRDMA
rdmacm-mux-obj-y = main.o
endif

View file

@ -0,0 +1,9 @@
if 'CONFIG_PVRDMA' in config_host
# if not found, CONFIG_PVRDMA should not be set
# FIXME: broken on big endian architectures
libumad = cc.find_library('ibumad', required: true)
executable('rdmacm-mux', files('main.c'),
dependencies: [glib, libumad],
build_by_default: false,
install: false)
endif