2021-01-22 09:36:21 +00:00
|
|
|
storage_file_sources = [
|
|
|
|
'storage_source.c',
|
2021-01-22 09:37:33 +00:00
|
|
|
'storage_file_backend.c',
|
2021-01-22 09:39:10 +00:00
|
|
|
'storage_file_probe.c',
|
2021-01-22 09:36:21 +00:00
|
|
|
]
|
|
|
|
|
2020-12-02 12:10:59 +00:00
|
|
|
stoarge_file_fs_sources = [
|
|
|
|
'storage_file_backend_fs.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
storage_file_gluster_sources = [
|
|
|
|
'storage_file_backend_gluster.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
storage_file_install_dir = libdir / 'libvirt' / 'storage-file'
|
|
|
|
|
2021-01-22 09:36:21 +00:00
|
|
|
virt_storage_file_lib = static_library(
|
|
|
|
'virt_storage_file',
|
|
|
|
[
|
|
|
|
storage_file_sources,
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
src_dep,
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
libvirt_libs += virt_storage_file_lib
|
|
|
|
|
2020-12-02 12:10:59 +00:00
|
|
|
if conf.has('WITH_STORAGE')
|
|
|
|
virt_modules += {
|
|
|
|
'name': 'virt_storage_file_fs',
|
|
|
|
'sources': [
|
|
|
|
files(stoarge_file_fs_sources),
|
|
|
|
],
|
|
|
|
'include': [
|
|
|
|
storage_inc_dir,
|
|
|
|
],
|
|
|
|
'install_dir': storage_file_install_dir,
|
|
|
|
}
|
|
|
|
endif
|
|
|
|
|
|
|
|
if conf.has('WITH_STORAGE_GLUSTER')
|
|
|
|
virt_modules += {
|
|
|
|
'name': 'virt_storage_file_gluster',
|
|
|
|
'sources': [
|
|
|
|
files(storage_file_gluster_sources),
|
|
|
|
],
|
|
|
|
'include': [
|
|
|
|
storage_inc_dir,
|
|
|
|
],
|
|
|
|
'deps': [
|
|
|
|
glusterfs_dep,
|
|
|
|
],
|
|
|
|
'install_dir': storage_file_install_dir,
|
|
|
|
}
|
|
|
|
endif
|
2021-01-22 09:36:21 +00:00
|
|
|
|
|
|
|
storage_file_inc_dir = include_directories('.')
|