mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
meson: tools: build libvirt_shell.a static library
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
parent
839b75492b
commit
1de2179350
@ -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 \
|
||||
|
@ -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,
|
||||
],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user