mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
meson: src: build libvirt_storage_backend_scsi.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
7f34176ab1
commit
1248fd468f
@ -1,10 +1,5 @@
|
||||
# vim: filetype=automake
|
||||
|
||||
STORAGE_DRIVER_SCSI_SOURCES = \
|
||||
storage/storage_backend_scsi.h \
|
||||
storage/storage_backend_scsi.c \
|
||||
$(NULL)
|
||||
|
||||
STORAGE_DRIVER_MPATH_SOURCES = \
|
||||
storage/storage_backend_mpath.h \
|
||||
storage/storage_backend_mpath.c \
|
||||
@ -138,21 +133,6 @@ storage/test_virtstoraged.aug: remote/test_libvirtd.aug.in \
|
||||
|
||||
endif WITH_STORAGE
|
||||
|
||||
if WITH_STORAGE_SCSI
|
||||
libvirt_storage_backend_scsi_la_SOURCES = $(STORAGE_DRIVER_SCSI_SOURCES)
|
||||
libvirt_storage_backend_scsi_la_CFLAGS = \
|
||||
-I$(srcdir)/conf \
|
||||
$(AM_CFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
storagebackend_LTLIBRARIES += libvirt_storage_backend_scsi.la
|
||||
libvirt_storage_backend_scsi_la_LDFLAGS = $(AM_LDFLAGS_MOD)
|
||||
libvirt_storage_backend_scsi_la_LIBADD = \
|
||||
libvirt.la \
|
||||
$(GLIB_LIBS) \
|
||||
$(NULL)
|
||||
endif WITH_STORAGE_SCSI
|
||||
|
||||
if WITH_STORAGE_MPATH
|
||||
libvirt_storage_backend_mpath_la_SOURCES = $(STORAGE_DRIVER_MPATH_SOURCES)
|
||||
libvirt_storage_backend_mpath_la_LIBADD = \
|
||||
|
@ -28,6 +28,10 @@ storage_lvm_backend_sources = [
|
||||
'storage_backend_logical.c',
|
||||
]
|
||||
|
||||
storage_backend_scsi_sources = [
|
||||
'storage_backend_scsi.c',
|
||||
]
|
||||
|
||||
storage_backend_install_dir = libdir / 'libvirt' / 'storage-backend'
|
||||
storage_file_install_dir = libdir / 'libvirt' / 'storage-file'
|
||||
|
||||
@ -107,3 +111,13 @@ if conf.has('WITH_STORAGE_LVM')
|
||||
'install_dir': storage_backend_install_dir,
|
||||
}
|
||||
endif
|
||||
|
||||
if conf.has('WITH_STORAGE_SCSI')
|
||||
virt_modules += {
|
||||
'name': 'virt_storage_backend_scsi',
|
||||
'sources': [
|
||||
files(storage_backend_scsi_sources),
|
||||
],
|
||||
'install_dir': storage_backend_install_dir,
|
||||
}
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user