meson: src: build lockd.so shared module

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 03:20:55 +02:00
parent 3660e6ad35
commit 849b01e46f
2 changed files with 17 additions and 13 deletions

View File

@ -42,23 +42,10 @@ OPENRC_INIT_FILES_IN += \
locking/virtlockd.init.in \ locking/virtlockd.init.in \
$(NULL) $(NULL)
lockdriverdir = $(libdir)/libvirt/lock-driver
lockdriver_LTLIBRARIES = lockdriver_LTLIBRARIES =
if WITH_LIBVIRTD if WITH_LIBVIRTD
lockdriver_LTLIBRARIES += lockd.la
lockd_la_SOURCES =
lockd_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
lockd_la_LIBADD = \
libvirt.la \
libvirt_lockd_impl.la \
$(GLIB_LIBS) \
$(XDR_LIBS) \
$(NULL)
augeas_DATA += locking/libvirt_lockd.aug augeas_DATA += locking/libvirt_lockd.aug
if WITH_DTRACE_PROBES
lockd_la_LIBADD += libvirt_probes.lo
endif WITH_DTRACE_PROBES
if WITH_QEMU if WITH_QEMU
augeastest_DATA += locking/test_libvirt_lockd.aug augeastest_DATA += locking/test_libvirt_lockd.aug

View File

@ -62,4 +62,21 @@ if conf.has('WITH_LIBVIRTD')
xdr_dep, xdr_dep,
], ],
) )
lockdriver_dir = libdir / 'libvirt' / 'lock-driver'
virt_modules += {
'name': 'lockd',
'name_prefix': '',
'sources': [
dtrace_gen_objects,
],
'link_whole': [
lockd_lib_impl,
],
'link_args': [
libvirt_no_undefined,
],
'install_dir': lockdriver_dir,
}
endif endif