mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
meson: src: build libvirt_sanlock_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:
parent
c59be50ccf
commit
b13e0a4c12
@ -1,8 +1,5 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
LOCK_DRIVER_SANLOCK_HELPER_SOURCES = \
|
||||
locking/sanlock_helper.c
|
||||
|
||||
RPC_PROBE_FILES += $(srcdir)/locking/lock_protocol.x
|
||||
SYSCONF_FILES += locking/virtlockd.sysconf
|
||||
|
||||
@ -46,20 +43,6 @@ if WITH_LIBXL
|
||||
nodist_conf_DATA += locking/libxl-sanlock.conf
|
||||
endif WITH_LIBXL
|
||||
|
||||
libexec_PROGRAMS += libvirt_sanlock_helper
|
||||
|
||||
libvirt_sanlock_helper_SOURCES = $(LOCK_DRIVER_SANLOCK_HELPER_SOURCES)
|
||||
libvirt_sanlock_helper_CFLAGS = \
|
||||
-I$(srcdir)/conf \
|
||||
$(AM_CFLAGS) \
|
||||
$(NULL)
|
||||
libvirt_sanlock_helper_LDFLAGS = \
|
||||
$(AM_LDFLAGS) \
|
||||
$(NULL)
|
||||
libvirt_sanlock_helper_LDADD = \
|
||||
libvirt.la \
|
||||
$(GLIB_LIBS) \
|
||||
$(NULL)
|
||||
endif WITH_SANLOCK
|
||||
|
||||
conf_DATA += locking/virtlockd.conf
|
||||
|
@ -51,6 +51,10 @@ sanlock_sources = [
|
||||
'lock_driver_sanlock.c',
|
||||
]
|
||||
|
||||
sanlock_helper_sources = files(
|
||||
'sanlock_helper.c',
|
||||
)
|
||||
|
||||
lock_driver_lib = static_library(
|
||||
'virt_lock_driver',
|
||||
[
|
||||
@ -129,4 +133,16 @@ if conf.has('WITH_LIBVIRTD')
|
||||
include_directories('.'),
|
||||
],
|
||||
}
|
||||
|
||||
if conf.has('WITH_SANLOCK')
|
||||
virt_helpers += {
|
||||
'name': 'libvirt_sanlock_helper',
|
||||
'sources': [
|
||||
sanlock_helper_sources,
|
||||
],
|
||||
'include': [
|
||||
conf_inc_dir,
|
||||
],
|
||||
}
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user