mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
meson: src: build libvirt_storage_backend_logical.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:
parent
a043738d13
commit
1dbe570f9d
@ -1,10 +1,5 @@
|
|||||||
# vim: filetype=automake
|
# vim: filetype=automake
|
||||||
|
|
||||||
STORAGE_DRIVER_LVM_SOURCES = \
|
|
||||||
storage/storage_backend_logical.h \
|
|
||||||
storage/storage_backend_logical.c \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
STORAGE_DRIVER_ISCSI_SOURCES = \
|
STORAGE_DRIVER_ISCSI_SOURCES = \
|
||||||
storage/storage_backend_iscsi.h \
|
storage/storage_backend_iscsi.h \
|
||||||
storage/storage_backend_iscsi.c \
|
storage/storage_backend_iscsi.c \
|
||||||
@ -153,21 +148,6 @@ storage/test_virtstoraged.aug: remote/test_libvirtd.aug.in \
|
|||||||
|
|
||||||
endif WITH_STORAGE
|
endif WITH_STORAGE
|
||||||
|
|
||||||
if WITH_STORAGE_LVM
|
|
||||||
libvirt_storage_backend_logical_la_SOURCES = $(STORAGE_DRIVER_LVM_SOURCES)
|
|
||||||
libvirt_storage_backend_logical_la_CFLAGS = \
|
|
||||||
-I$(srcdir)/conf \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
storagebackend_LTLIBRARIES += libvirt_storage_backend_logical.la
|
|
||||||
libvirt_storage_backend_logical_la_LDFLAGS = $(AM_LDFLAGS_MOD)
|
|
||||||
libvirt_storage_backend_logical_la_LIBADD = \
|
|
||||||
libvirt.la \
|
|
||||||
$(GLIB_LIBS) \
|
|
||||||
$(NULL)
|
|
||||||
endif WITH_STORAGE_LVM
|
|
||||||
|
|
||||||
if WITH_STORAGE_ISCSI
|
if WITH_STORAGE_ISCSI
|
||||||
libvirt_storage_backend_iscsi_la_SOURCES = $(STORAGE_DRIVER_ISCSI_SOURCES)
|
libvirt_storage_backend_iscsi_la_SOURCES = $(STORAGE_DRIVER_ISCSI_SOURCES)
|
||||||
libvirt_storage_backend_iscsi_la_CFLAGS = \
|
libvirt_storage_backend_iscsi_la_CFLAGS = \
|
||||||
|
@ -16,6 +16,10 @@ stoarge_file_fs_sources = [
|
|||||||
'storage_file_fs.c',
|
'storage_file_fs.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
storage_lvm_backend_sources = [
|
||||||
|
'storage_backend_logical.c',
|
||||||
|
]
|
||||||
|
|
||||||
storage_backend_install_dir = libdir / 'libvirt' / 'storage-backend'
|
storage_backend_install_dir = libdir / 'libvirt' / 'storage-backend'
|
||||||
storage_file_install_dir = libdir / 'libvirt' / 'storage-file'
|
storage_file_install_dir = libdir / 'libvirt' / 'storage-file'
|
||||||
|
|
||||||
@ -62,3 +66,13 @@ if conf.has('WITH_STORAGE')
|
|||||||
'install_dir': storage_file_install_dir,
|
'install_dir': storage_file_install_dir,
|
||||||
}
|
}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if conf.has('WITH_STORAGE_LVM')
|
||||||
|
virt_modules += {
|
||||||
|
'name': 'virt_storage_backend_logical',
|
||||||
|
'sources': [
|
||||||
|
files(storage_lvm_backend_sources),
|
||||||
|
],
|
||||||
|
'install_dir': storage_backend_install_dir,
|
||||||
|
}
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user