mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-08 16:54:49 +00:00
meson: src: build libvirt_storage_backend_iscsi_direct.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
0fe4d8cb83
commit
7f34176ab1
@ -1,10 +1,5 @@
|
|||||||
# vim: filetype=automake
|
# vim: filetype=automake
|
||||||
|
|
||||||
STORAGE_DRIVER_ISCSI_DIRECT_SOURCES = \
|
|
||||||
storage/storage_backend_iscsi_direct.h \
|
|
||||||
storage/storage_backend_iscsi_direct.c \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
STORAGE_DRIVER_SCSI_SOURCES = \
|
STORAGE_DRIVER_SCSI_SOURCES = \
|
||||||
storage/storage_backend_scsi.h \
|
storage/storage_backend_scsi.h \
|
||||||
storage/storage_backend_scsi.c \
|
storage/storage_backend_scsi.c \
|
||||||
@ -143,24 +138,6 @@ storage/test_virtstoraged.aug: remote/test_libvirtd.aug.in \
|
|||||||
|
|
||||||
endif WITH_STORAGE
|
endif WITH_STORAGE
|
||||||
|
|
||||||
if WITH_STORAGE_ISCSI_DIRECT
|
|
||||||
libvirt_storage_backend_iscsi_direct_la_SOURCES = \
|
|
||||||
$(STORAGE_DRIVER_ISCSI_DIRECT_SOURCES)
|
|
||||||
libvirt_storage_backend_iscsi_direct_la_CFLAGS = \
|
|
||||||
-I$(srcdir)/conf \
|
|
||||||
$(LIBISCSI_CFLAGS) \
|
|
||||||
$(AM_CFLAGS) \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
storagebackend_LTLIBRARIES += libvirt_storage_backend_iscsi-direct.la
|
|
||||||
libvirt_storage_backend_iscsi_direct_la_LDFLAGS = $(AM_LDFLAGS_MOD)
|
|
||||||
libvirt_storage_backend_iscsi_direct_la_LIBADD = \
|
|
||||||
libvirt.la \
|
|
||||||
$(GLIB_LIBS) \
|
|
||||||
$(LIBISCSI_LIBS) \
|
|
||||||
$(NULL)
|
|
||||||
endif WITH_STORAGE_ISCSI_DIRECT
|
|
||||||
|
|
||||||
if WITH_STORAGE_SCSI
|
if WITH_STORAGE_SCSI
|
||||||
libvirt_storage_backend_scsi_la_SOURCES = $(STORAGE_DRIVER_SCSI_SOURCES)
|
libvirt_storage_backend_scsi_la_SOURCES = $(STORAGE_DRIVER_SCSI_SOURCES)
|
||||||
libvirt_storage_backend_scsi_la_CFLAGS = \
|
libvirt_storage_backend_scsi_la_CFLAGS = \
|
||||||
|
@ -20,6 +20,10 @@ storage_backend_iscsi_sources = [
|
|||||||
'storage_backend_iscsi.c',
|
'storage_backend_iscsi.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
storage_backend_iscsi_direct_sources = [
|
||||||
|
'storage_backend_iscsi_direct.c',
|
||||||
|
]
|
||||||
|
|
||||||
storage_lvm_backend_sources = [
|
storage_lvm_backend_sources = [
|
||||||
'storage_backend_logical.c',
|
'storage_backend_logical.c',
|
||||||
]
|
]
|
||||||
@ -81,6 +85,19 @@ if conf.has('WITH_STORAGE_ISCSI')
|
|||||||
}
|
}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if conf.has('WITH_STORAGE_ISCSI_DIRECT')
|
||||||
|
virt_modules += {
|
||||||
|
'name': 'virt_storage_backend_iscsi-direct',
|
||||||
|
'sources': [
|
||||||
|
files(storage_backend_iscsi_direct_sources),
|
||||||
|
],
|
||||||
|
'deps': [
|
||||||
|
libiscsi_dep
|
||||||
|
],
|
||||||
|
'install_dir': storage_backend_install_dir,
|
||||||
|
}
|
||||||
|
endif
|
||||||
|
|
||||||
if conf.has('WITH_STORAGE_LVM')
|
if conf.has('WITH_STORAGE_LVM')
|
||||||
virt_modules += {
|
virt_modules += {
|
||||||
'name': 'virt_storage_backend_logical',
|
'name': 'virt_storage_backend_logical',
|
||||||
|
Loading…
Reference in New Issue
Block a user