# 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))
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
'storage_backend_disk.c',
]
+storage_helper_disk_sources = [
+ 'parthelper.c',
+]
+
storage_backend_gluster_sources = [
'storage_backend_gluster.c',
]
],
'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')