mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
meson: src: build libvirt_storage_backend_mpath.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
1248fd468f
commit
d790faf43c
@ -1,10 +1,5 @@
|
|||||||
# vim: filetype=automake
|
# vim: filetype=automake
|
||||||
|
|
||||||
STORAGE_DRIVER_MPATH_SOURCES = \
|
|
||||||
storage/storage_backend_mpath.h \
|
|
||||||
storage/storage_backend_mpath.c \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
STORAGE_DRIVER_DISK_SOURCES = \
|
STORAGE_DRIVER_DISK_SOURCES = \
|
||||||
storage/storage_backend_disk.h \
|
storage/storage_backend_disk.h \
|
||||||
storage/storage_backend_disk.c \
|
storage/storage_backend_disk.c \
|
||||||
@ -133,23 +128,6 @@ storage/test_virtstoraged.aug: remote/test_libvirtd.aug.in \
|
|||||||
|
|
||||||
endif WITH_STORAGE
|
endif WITH_STORAGE
|
||||||
|
|
||||||
if WITH_STORAGE_MPATH
|
|
||||||
libvirt_storage_backend_mpath_la_SOURCES = $(STORAGE_DRIVER_MPATH_SOURCES)
|
|
||||||
libvirt_storage_backend_mpath_la_LIBADD = \
|
|
||||||
libvirt.la \
|
|
||||||
$(DEVMAPPER_LIBS) \
|
|
||||||
$(GLIB_LIBS) \
|
|
||||||
$(NULL)
|
|
||||||
libvirt_storage_backend_mpath_la_CFLAGS = \
|
|
||||||
-I$(srcdir)/conf \
|
|
||||||
$(DEVMAPPER_CFLAGS) \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
storagebackend_LTLIBRARIES += libvirt_storage_backend_mpath.la
|
|
||||||
libvirt_storage_backend_mpath_la_LDFLAGS = $(AM_LDFLAGS_MOD)
|
|
||||||
endif WITH_STORAGE_MPATH
|
|
||||||
|
|
||||||
if WITH_STORAGE_DISK
|
if WITH_STORAGE_DISK
|
||||||
libvirt_storage_backend_disk_la_SOURCES = $(STORAGE_DRIVER_DISK_SOURCES)
|
libvirt_storage_backend_disk_la_SOURCES = $(STORAGE_DRIVER_DISK_SOURCES)
|
||||||
libvirt_storage_backend_disk_la_CFLAGS = \
|
libvirt_storage_backend_disk_la_CFLAGS = \
|
||||||
|
@ -28,6 +28,10 @@ storage_lvm_backend_sources = [
|
|||||||
'storage_backend_logical.c',
|
'storage_backend_logical.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
storage_backend_mpath_sources = [
|
||||||
|
'storage_backend_mpath.c',
|
||||||
|
]
|
||||||
|
|
||||||
storage_backend_scsi_sources = [
|
storage_backend_scsi_sources = [
|
||||||
'storage_backend_scsi.c',
|
'storage_backend_scsi.c',
|
||||||
]
|
]
|
||||||
@ -112,6 +116,19 @@ if conf.has('WITH_STORAGE_LVM')
|
|||||||
}
|
}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if conf.has('WITH_STORAGE_MPATH')
|
||||||
|
virt_modules += {
|
||||||
|
'name': 'virt_storage_backend_mpath',
|
||||||
|
'sources': [
|
||||||
|
files(storage_backend_mpath_sources),
|
||||||
|
],
|
||||||
|
'deps': [
|
||||||
|
devmapper_dep
|
||||||
|
],
|
||||||
|
'install_dir': storage_backend_install_dir,
|
||||||
|
}
|
||||||
|
endif
|
||||||
|
|
||||||
if conf.has('WITH_STORAGE_SCSI')
|
if conf.has('WITH_STORAGE_SCSI')
|
||||||
virt_modules += {
|
virt_modules += {
|
||||||
'name': 'virt_storage_backend_scsi',
|
'name': 'virt_storage_backend_scsi',
|
||||||
|
Loading…
Reference in New Issue
Block a user