From 1de217935036ea0a1f71bdb1ad78e7538f30b001 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Wed, 24 Jun 2020 13:32:30 +0200 Subject: [PATCH] meson: tools: build libvirt_shell.a static library Signed-off-by: Pavel Hrdina Reviewed-by: Peter Krempa Reviewed-by: Neal Gompa --- tools/Makefile.am | 19 +------------------ tools/meson.build | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/tools/Makefile.am b/tools/Makefile.am index 94e5f0c0b0..1848338adb 100644 --- a/tools/Makefile.am +++ b/tools/Makefile.am @@ -64,24 +64,7 @@ virt-sanlock-cleanup: virt-sanlock-cleanup.in Makefile -e 's|[@]localstatedir@|$(localstatedir)|' < $< > $@ \ || (rm $@ && exit 1) && chmod +x $@ -noinst_LTLIBRARIES = libvirt_shell.la -libvirt_shell_la_CFLAGS = \ - $(AM_CFLAGS) \ - $(READLINE_CFLAGS) \ - $(NULL) -libvirt_shell_la_LDFLAGS = \ - $(AM_LDFLAGS) \ - $(COVERAGE_LDFLAGS) \ - $(NULL) -libvirt_shell_la_LIBADD = \ - ../src/libvirt.la \ - $(LIBXML_LIBS) \ - $(READLINE_LIBS) \ - $(GLIB_LIBS) \ - $(NULL) -libvirt_shell_la_SOURCES = \ - vsh.c vsh.h \ - vsh-table.c vsh-table.h +noinst_LTLIBRARIES = virt_host_validate_SOURCES = \ virt-host-validate.c \ diff --git a/tools/meson.build b/tools/meson.build index 43a772a40c..f4df906d27 100644 --- a/tools/meson.build +++ b/tools/meson.build @@ -18,3 +18,21 @@ tools_dep = declare_dependency( + libvirt_no_undefined ), ) + +libvirt_shell_lib = static_library( + 'virt_shell', + [ + 'vsh.c', + 'vsh-table.c', + ], + dependencies: [ + tools_dep, + readline_dep, + ], + link_with: [ + libvirt_lib, + ], + link_args: [ + coverage_flags, + ], +)