meson: src: build libvirt_parthelper 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:31:31 +02:00
parent 6ba50edc11
commit 67d6f07bd8
2 changed files with 15 additions and 26 deletions

View File

@ -1,9 +1,5 @@
# vim: filetype=automake
STORAGE_HELPER_DISK_SOURCES = \
storage/parthelper.c \
$(NULL)
DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(STORAGE_DRIVER_SOURCES))
STATEFUL_DRIVER_SOURCE_FILES += \
$(addprefix $(srcdir)/,$(STORAGE_DRIVER_SOURCES))
@ -75,25 +71,3 @@ storage/test_virtstoraged.aug: remote/test_libvirtd.aug.in \
endif WITH_STORAGE
if WITH_STORAGE_DISK
libexec_PROGRAMS += libvirt_parthelper
libvirt_parthelper_SOURCES = $(STORAGE_HELPER_DISK_SOURCES)
libvirt_parthelper_LDFLAGS = \
$(AM_LDFLAGS) \
$(NULL)
libvirt_parthelper_LDADD = \
$(LIBPARTED_LIBS) \
libvirt.la \
$(GLIB_LIBS) \
$(NULL)
if WITH_DTRACE_PROBES
libvirt_parthelper_LDADD += libvirt_probes.lo
endif WITH_DTRACE_PROBES
libvirt_parthelper_CFLAGS = \
$(LIBPARTED_CFLAGS) \
$(AM_CFLAGS) \
$(NULL)
endif WITH_STORAGE_DISK

View File

@ -20,6 +20,10 @@ storage_backend_disk_sources = [
'storage_backend_disk.c',
]
storage_helper_disk_sources = [
'parthelper.c',
]
storage_backend_gluster_sources = [
'storage_backend_gluster.c',
]
@ -127,6 +131,17 @@ if conf.has('WITH_STORAGE_DISK')
],
'install_dir': storage_backend_install_dir,
}
virt_helpers += {
'name': 'libvirt_parthelper',
'sources': [
files(storage_helper_disk_sources),
dtrace_gen_objects,
],
'deps': [
libparted_dep,
],
}
endif
if conf.has('WITH_STORAGE_GLUSTER')