aboutsummaryrefslogtreecommitdiff
path: root/contrib/rdmacm-mux/meson.build
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2019-06-10 12:27:52 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-21 06:30:10 -0400
commita9c9727c028329e18ee3dcabb75f906147936fac (patch)
tree7fe27300de3231cef72a5eb93298ec5e8aa3cb24 /contrib/rdmacm-mux/meson.build
parent99650b628f03564d5c2ac022eb0430ddaab038da (diff)
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>
Diffstat (limited to 'contrib/rdmacm-mux/meson.build')
-rw-r--r--contrib/rdmacm-mux/meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/contrib/rdmacm-mux/meson.build b/contrib/rdmacm-mux/meson.build
new file mode 100644
index 0000000000..6cc5016747
--- /dev/null
+++ b/contrib/rdmacm-mux/meson.build
@@ -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