2020-05-05 08:17:52 +00:00
|
|
|
libxl_driver_sources = [
|
|
|
|
'libxl_capabilities.c',
|
|
|
|
'libxl_conf.c',
|
|
|
|
'libxl_domain.c',
|
|
|
|
'libxl_driver.c',
|
|
|
|
'libxl_logger.c',
|
|
|
|
'libxl_migration.c',
|
|
|
|
'xen_common.c',
|
|
|
|
'xen_xl.c',
|
|
|
|
'xen_xm.c',
|
|
|
|
]
|
|
|
|
|
2020-07-27 07:10:31 +00:00
|
|
|
driver_source_files += files(libxl_driver_sources)
|
2020-07-28 11:46:34 +00:00
|
|
|
stateful_driver_source_files += files(libxl_driver_sources)
|
2020-07-27 07:10:31 +00:00
|
|
|
|
2020-05-05 08:17:52 +00:00
|
|
|
if conf.has('WITH_LIBXL')
|
|
|
|
libxl_driver_imp = static_library(
|
|
|
|
'virt_driver_libxl_impl',
|
|
|
|
[
|
|
|
|
libxl_driver_sources,
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
access_dep,
|
|
|
|
libxl_dep,
|
|
|
|
src_dep,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
conf_inc_dir,
|
|
|
|
hypervisor_inc_dir,
|
2021-01-22 09:36:21 +00:00
|
|
|
storage_file_inc_dir,
|
2020-05-05 08:17:52 +00:00
|
|
|
],
|
|
|
|
)
|
2020-06-22 13:21:57 +00:00
|
|
|
|
|
|
|
virt_modules += {
|
|
|
|
'name': 'virt_driver_libxl',
|
|
|
|
'link_whole': [
|
|
|
|
libxl_driver_imp,
|
|
|
|
],
|
|
|
|
'link_args': [
|
|
|
|
libvirt_no_undefined,
|
|
|
|
],
|
|
|
|
}
|
2020-06-22 14:36:17 +00:00
|
|
|
|
|
|
|
virt_daemons += {
|
|
|
|
'name': 'virtxend',
|
|
|
|
'c_args': [
|
|
|
|
'-DDAEMON_NAME="virtxend"',
|
|
|
|
'-DMODULE_NAME="libxl"',
|
|
|
|
],
|
|
|
|
}
|
2020-07-27 06:52:17 +00:00
|
|
|
|
|
|
|
virt_conf_files += files('libxl.conf')
|
|
|
|
virt_aug_files += files('libvirtd_libxl.aug')
|
2020-06-22 16:04:48 +00:00
|
|
|
virt_test_aug_files += {
|
|
|
|
'name': 'test_libvirtd_libxl.aug',
|
|
|
|
'aug': files('test_libvirtd_libxl.aug.in'),
|
|
|
|
'conf': files('libxl.conf'),
|
2020-08-18 13:38:34 +00:00
|
|
|
'test_name': 'libvirtd_libxl',
|
|
|
|
'test_srcdir': meson.current_source_dir(),
|
|
|
|
'test_builddir': meson.current_build_dir(),
|
2020-06-22 16:04:48 +00:00
|
|
|
}
|
2020-07-28 09:54:39 +00:00
|
|
|
|
|
|
|
virt_daemon_confs += {
|
|
|
|
'name': 'virtxend',
|
|
|
|
}
|
2020-07-27 07:03:25 +00:00
|
|
|
|
|
|
|
virt_daemon_units += {
|
|
|
|
'service': 'virtxend',
|
|
|
|
'service_in': files('virtxend.service.in'),
|
|
|
|
'name': 'Libvirt libxl',
|
|
|
|
'sockprefix': 'virtxend',
|
|
|
|
'sockets': [ 'main', 'ro', 'admin' ],
|
|
|
|
'deps': 'ConditionPathExists=/proc/xen/capabilities',
|
|
|
|
}
|
2020-07-28 10:11:31 +00:00
|
|
|
|
|
|
|
openrc_init_files += {
|
|
|
|
'name': 'virtxend',
|
|
|
|
'in_file': files('virtxend.init.in'),
|
|
|
|
}
|
2020-06-25 15:46:33 +00:00
|
|
|
|
|
|
|
sysconf_files += {
|
|
|
|
'name': 'virtxend',
|
|
|
|
'file': files('virtxend.sysconf'),
|
|
|
|
}
|
2020-07-23 10:41:32 +00:00
|
|
|
|
|
|
|
virt_install_dirs += [
|
|
|
|
localstatedir / 'lib' / 'libvirt' / 'libxl',
|
|
|
|
runstatedir / 'libvirt' / 'libxl',
|
|
|
|
localstatedir / 'log' / 'libvirt' / 'libxl',
|
|
|
|
]
|
2020-05-05 08:17:52 +00:00
|
|
|
endif
|