meson: src: build libvirt_storage_backedn_fs.so shared module

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-22 16:00:13 +02:00
parent 06b38f49f7
commit b2dbe88cda
2 changed files with 14 additions and 19 deletions

View File

@ -1,10 +1,5 @@
# 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 \
@ -79,7 +74,6 @@ DRIVER_SOURCE_FILES += $(addprefix $(srcdir)/,$(STORAGE_DRIVER_SOURCES))
STATEFUL_DRIVER_SOURCE_FILES += \
$(addprefix $(srcdir)/,$(STORAGE_DRIVER_SOURCES))
storagebackenddir = $(libdir)/libvirt/storage-backend
storagebackend_LTLIBRARIES =
storagefiledir = $(libdir)/libvirt/storage-file
@ -163,19 +157,6 @@ storage/test_virtstoraged.aug: remote/test_libvirtd.aug.in \
> $@ || 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 \

View File

@ -8,6 +8,12 @@ storage_driver_sources = [
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',
@ -34,4 +40,12 @@ if conf.has('WITH_STORAGE')
libvirt_no_undefined,
],
}
virt_modules += {
'name': 'virt_storage_backend_fs',
'sources': [
files(storage_backend_fs_sources),
],
'install_dir': storage_backend_install_dir,
}
endif