# vim: filetype=automake
-STORAGE_DRIVER_ISCSI_SOURCES = \
- storage/storage_backend_iscsi.h \
- storage/storage_backend_iscsi.c \
- $(NULL)
-
STORAGE_DRIVER_ISCSI_DIRECT_SOURCES = \
storage/storage_backend_iscsi_direct.h \
storage/storage_backend_iscsi_direct.c \
endif WITH_STORAGE
-if WITH_STORAGE_ISCSI
-libvirt_storage_backend_iscsi_la_SOURCES = $(STORAGE_DRIVER_ISCSI_SOURCES)
-libvirt_storage_backend_iscsi_la_CFLAGS = \
- -I$(srcdir)/conf \
- $(AM_CFLAGS) \
- $(NULL)
-
-storagebackend_LTLIBRARIES += libvirt_storage_backend_iscsi.la
-libvirt_storage_backend_iscsi_la_LDFLAGS = $(AM_LDFLAGS_MOD)
-libvirt_storage_backend_iscsi_la_LIBADD = \
- libvirt.la \
- $(GLIB_LIBS) \
- $(NULL)
-endif WITH_STORAGE_ISCSI
-
if WITH_STORAGE_ISCSI_DIRECT
libvirt_storage_backend_iscsi_direct_la_SOURCES = \
$(STORAGE_DRIVER_ISCSI_DIRECT_SOURCES)
'storage_file_fs.c',
]
+storage_backend_iscsi_sources = [
+ 'storage_backend_iscsi.c',
+]
+
storage_lvm_backend_sources = [
'storage_backend_logical.c',
]
}
endif
+if conf.has('WITH_STORAGE_ISCSI')
+ virt_modules += {
+ 'name': 'virt_storage_backend_iscsi',
+ 'sources': [
+ files(storage_backend_iscsi_sources),
+ ],
+ 'install_dir': storage_backend_install_dir,
+ }
+endif
+
if conf.has('WITH_STORAGE_LVM')
virt_modules += {
'name': 'virt_storage_backend_logical',