# vim: filetype=automake
-STORAGE_DRIVER_FS_SOURCES = \
- storage/storage_backend_fs.h \
- storage/storage_backend_fs.c \
- $(NULL)
-
STORAGE_FILE_FS_SOURCES = \
storage/storage_file_fs.h \
storage/storage_file_fs.c \
STATEFUL_DRIVER_SOURCE_FILES += \
$(addprefix $(srcdir)/,$(STORAGE_DRIVER_SOURCES))
-storagebackenddir = $(libdir)/libvirt/storage-backend
storagebackend_LTLIBRARIES =
storagefiledir = $(libdir)/libvirt/storage-file
> $@ || rm -f $@
-libvirt_storage_backend_fs_la_SOURCES = $(STORAGE_DRIVER_FS_SOURCES)
-libvirt_storage_backend_fs_la_CFLAGS = \
- -I$(srcdir)/conf \
- $(AM_CFLAGS) \
- $(NULL)
-
-storagebackend_LTLIBRARIES += libvirt_storage_backend_fs.la
-libvirt_storage_backend_fs_la_LDFLAGS = $(AM_LDFLAGS_MOD)
-libvirt_storage_backend_fs_la_LIBADD = \
- libvirt.la \
- $(GLIB_LIBS) \
- $(NULL)
-
libvirt_storage_file_fs_la_SOURCES = $(STORAGE_FILE_FS_SOURCES)
libvirt_storage_file_fs_la_CFLAGS = \
-I$(srcdir)/conf \
storage_driver_backend_sources,
]
+storage_backend_fs_sources = [
+ 'storage_backend_fs.c',
+]
+
+storage_backend_install_dir = libdir / 'libvirt' / 'storage-backend'
+
if conf.has('WITH_STORAGE')
storage_driver_impl_lib = static_library(
'virt_storage_driver_impl',
libvirt_no_undefined,
],
}
+
+ virt_modules += {
+ 'name': 'virt_storage_backend_fs',
+ 'sources': [
+ files(storage_backend_fs_sources),
+ ],
+ 'install_dir': storage_backend_install_dir,
+ }
endif