mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-27 08:05:24 +00:00
meson: src: build sanlock.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:
parent
849b01e46f
commit
0cc73eba39
@ -1,8 +1,5 @@
|
|||||||
# vim: filetype=automake
|
# vim: filetype=automake
|
||||||
|
|
||||||
LOCK_DRIVER_SANLOCK_SOURCES = \
|
|
||||||
locking/lock_driver_sanlock.c
|
|
||||||
|
|
||||||
LOCK_DRIVER_SANLOCK_HELPER_SOURCES = \
|
LOCK_DRIVER_SANLOCK_HELPER_SOURCES = \
|
||||||
locking/sanlock_helper.c
|
locking/sanlock_helper.c
|
||||||
|
|
||||||
@ -42,8 +39,6 @@ OPENRC_INIT_FILES_IN += \
|
|||||||
locking/virtlockd.init.in \
|
locking/virtlockd.init.in \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
lockdriver_LTLIBRARIES =
|
|
||||||
|
|
||||||
if WITH_LIBVIRTD
|
if WITH_LIBVIRTD
|
||||||
augeas_DATA += locking/libvirt_lockd.aug
|
augeas_DATA += locking/libvirt_lockd.aug
|
||||||
|
|
||||||
@ -93,16 +88,6 @@ virtlockd_CFLAGS += \
|
|||||||
endif WITH_SASL
|
endif WITH_SASL
|
||||||
|
|
||||||
if WITH_SANLOCK
|
if WITH_SANLOCK
|
||||||
lockdriver_LTLIBRARIES += sanlock.la
|
|
||||||
sanlock_la_SOURCES = $(LOCK_DRIVER_SANLOCK_SOURCES)
|
|
||||||
sanlock_la_CFLAGS = -I$(srcdir)/conf $(AM_CFLAGS)
|
|
||||||
sanlock_la_LDFLAGS = $(AM_LDFLAGS_MOD_NOUNDEF)
|
|
||||||
sanlock_la_LIBADD = \
|
|
||||||
-lsanlock_client \
|
|
||||||
libvirt.la \
|
|
||||||
$(GLIB_LIBS) \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
augeas_DATA += locking/libvirt_sanlock.aug
|
augeas_DATA += locking/libvirt_sanlock.aug
|
||||||
|
|
||||||
if WITH_QEMU
|
if WITH_QEMU
|
||||||
|
@ -30,6 +30,10 @@ lock_protocol_generated += custom_target(
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
sanlock_sources = [
|
||||||
|
'lock_driver_sanlock.c',
|
||||||
|
]
|
||||||
|
|
||||||
lock_driver_lib = static_library(
|
lock_driver_lib = static_library(
|
||||||
'virt_lock_driver',
|
'virt_lock_driver',
|
||||||
[
|
[
|
||||||
@ -79,4 +83,21 @@ if conf.has('WITH_LIBVIRTD')
|
|||||||
],
|
],
|
||||||
'install_dir': lockdriver_dir,
|
'install_dir': lockdriver_dir,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if conf.has('WITH_SANLOCK')
|
||||||
|
virt_modules += {
|
||||||
|
'name': 'sanlock',
|
||||||
|
'name_prefix': '',
|
||||||
|
'sources': [
|
||||||
|
files(sanlock_sources),
|
||||||
|
],
|
||||||
|
'deps': [
|
||||||
|
sanlock_dep,
|
||||||
|
],
|
||||||
|
'link_args': [
|
||||||
|
libvirt_no_undefined,
|
||||||
|
],
|
||||||
|
'install_dir': lockdriver_dir,
|
||||||
|
}
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user