meson: tools: build virt-login-shell-helper binary

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:
Pavel Hrdina 2020-06-24 13:33:04 +02:00
parent 2c1bf41373
commit 20f001b016
2 changed files with 20 additions and 18 deletions

View File

@ -41,7 +41,6 @@ endif WITH_SANLOCK
if WITH_LOGIN_SHELL
conf_DATA += virt-login-shell.conf
libexec_PROGRAMS = virt-login-shell-helper
endif WITH_LOGIN_SHELL
virt-xml-validate: virt-xml-validate.in Makefile
@ -61,23 +60,6 @@ virt-sanlock-cleanup: virt-sanlock-cleanup.in Makefile
noinst_LTLIBRARIES =
virt_login_shell_helper_SOURCES = \
virt-login-shell-helper.c
virt_login_shell_helper_LDFLAGS = \
$(AM_LDFLAGS) \
$(COVERAGE_LDFLAGS) \
$(NULL)
virt_login_shell_helper_LDADD = \
../src/libvirt.la \
../src/libvirt-lxc.la \
$(GLIB_LIBS) \
$(NULL)
virt_login_shell_helper_CFLAGS = \
$(AM_CFLAGS) \
$(NULL)
virsh_SOURCES = \
virsh.c virsh.h \
virsh-backup.c virsh-backup.h \

View File

@ -94,4 +94,24 @@ if conf.has('WITH_LOGIN_SHELL')
install: true,
install_dir: bindir,
)
executable(
'virt-login-shell-helper',
[
'virt-login-shell-helper.c',
],
dependencies: [
tools_dep,
],
link_args: [
coverage_flags,
],
link_with: [
libvirt_lib,
libvirt_lxc_lib,
],
install: true,
install_dir: libexecdir,
install_rpath: libdir,
)
endif