# vim: filetype=automake
-STORAGE_DRIVER_GLUSTER_SOURCES = \
- storage/storage_backend_gluster.h \
- storage/storage_backend_gluster.c \
- $(NULL)
-
-STORAGE_FILE_GLUSTER_SOURCES = \
- storage/storage_file_gluster.h \
- storage/storage_file_gluster.c \
- $(NULL)
-
STORAGE_DRIVER_ZFS_SOURCES = \
storage/storage_backend_zfs.h \
storage/storage_backend_zfs.c \
storagebackend_LTLIBRARIES =
-storagefile_LTLIBRARIES =
-
if WITH_STORAGE
sbin_PROGRAMS += virtstoraged
endif WITH_STORAGE
-if WITH_STORAGE_GLUSTER
-libvirt_storage_backend_gluster_la_SOURCES = \
- $(STORAGE_DRIVER_GLUSTER_SOURCES)
-libvirt_storage_backend_gluster_la_LIBADD = \
- libvirt.la \
- $(GLUSTERFS_LIBS) \
- $(GLIB_LIBS) \
- $(NULL)
-libvirt_storage_backend_gluster_la_CFLAGS = \
- -I$(srcdir)/conf \
- $(GLUSTERFS_CFLAGS) \
- $(AM_CFLAGS) \
- $(NULL)
-
-storagebackend_LTLIBRARIES += libvirt_storage_backend_gluster.la
-libvirt_storage_backend_gluster_la_LDFLAGS = $(AM_LDFLAGS_MOD)
-
-
-libvirt_storage_file_gluster_la_SOURCES = \
- $(STORAGE_FILE_GLUSTER_SOURCES)
-libvirt_storage_file_gluster_la_LIBADD = \
- libvirt.la \
- $(GLUSTERFS_LIBS) \
- $(GLIB_LIBS) \
- $(NULL)
-libvirt_storage_file_gluster_la_CFLAGS = \
- -I$(srcdir)/conf \
- $(GLUSTERFS_CFLAGS) \
- $(AM_CFLAGS) \
- $(NULL)
-
-storagefile_LTLIBRARIES += libvirt_storage_file_gluster.la
-libvirt_storage_file_gluster_la_LDFLAGS = $(AM_LDFLAGS_MOD)
-endif WITH_STORAGE_GLUSTER
-
if WITH_STORAGE_ZFS
libvirt_storage_backend_zfs_la_SOURCES = \
$(STORAGE_DRIVER_ZFS_SOURCES)
'storage_backend_disk.c',
]
+storage_backend_gluster_sources = [
+ 'storage_backend_gluster.c',
+]
+
+storage_file_gluster_sources = [
+ 'storage_file_gluster.c',
+]
+
storage_backend_iscsi_sources = [
'storage_backend_iscsi.c',
]
}
endif
+if conf.has('WITH_STORAGE_GLUSTER')
+ virt_modules += {
+ 'name': 'virt_storage_backend_gluster',
+ 'sources': [
+ files(storage_backend_gluster_sources),
+ ],
+ 'deps': [
+ glusterfs_dep,
+ ],
+ 'install_dir': storage_backend_install_dir,
+ }
+
+ virt_modules += {
+ 'name': 'virt_storage_file_gluster',
+ 'sources': [
+ files(storage_file_gluster_sources),
+ ],
+ 'dependenciec': [
+ glusterfs_dep,
+ ],
+ 'install_dir': storage_file_install_dir,
+ }
+endif
+
if conf.has('WITH_STORAGE_ISCSI')
virt_modules += {
'name': 'virt_storage_backend_iscsi',