2020-06-17 23:13:46 +00:00
|
|
|
vbox_driver_sources = [
|
|
|
|
'vbox_V5_2.c',
|
|
|
|
'vbox_V6_0.c',
|
|
|
|
'vbox_V6_1.c',
|
|
|
|
'vbox_common.c',
|
|
|
|
'vbox_driver.c',
|
|
|
|
'vbox_network.c',
|
|
|
|
'vbox_snapshot_conf.c',
|
|
|
|
'vbox_storage.c',
|
|
|
|
'vbox_XPCOMCGlue.c',
|
|
|
|
]
|
|
|
|
|
2020-07-27 07:10:31 +00:00
|
|
|
driver_source_files += files(
|
|
|
|
vbox_driver_sources,
|
|
|
|
'vbox_tmpl.c',
|
|
|
|
)
|
|
|
|
|
2020-06-17 23:13:46 +00:00
|
|
|
if conf.has('WITH_VBOX')
|
|
|
|
vbox_driver_impl = static_library(
|
|
|
|
'virt_driver_vbox_impl',
|
|
|
|
[
|
|
|
|
vbox_driver_sources,
|
|
|
|
],
|
|
|
|
c_args: [
|
|
|
|
'-DVBOX_DRIVER',
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
dlopen_dep,
|
|
|
|
src_dep,
|
|
|
|
win32_dep,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
conf_inc_dir,
|
|
|
|
],
|
|
|
|
)
|
2020-06-22 13:40:39 +00:00
|
|
|
|
|
|
|
virt_modules += {
|
|
|
|
'name': 'virt_driver_vbox',
|
|
|
|
'link_whole': [
|
|
|
|
vbox_driver_impl,
|
|
|
|
],
|
|
|
|
'link_args': [
|
|
|
|
libvirt_no_undefined,
|
|
|
|
],
|
|
|
|
}
|
2020-06-22 14:57:26 +00:00
|
|
|
|
|
|
|
virt_daemons += {
|
|
|
|
'name': 'virtvboxd',
|
|
|
|
'c_args': [
|
|
|
|
'-DDAEMON_NAME="virtvboxd"',
|
|
|
|
'-DMODULE_NAME="vbox"',
|
|
|
|
],
|
|
|
|
}
|
2020-07-28 09:54:39 +00:00
|
|
|
|
|
|
|
virt_daemon_confs += {
|
|
|
|
'name': 'virtvboxd',
|
|
|
|
}
|
2020-07-27 07:03:25 +00:00
|
|
|
|
|
|
|
virt_daemon_units += {
|
|
|
|
'service': 'virtvboxd',
|
|
|
|
'service_in': files('virtvboxd.service.in'),
|
|
|
|
'name': 'Libvirt vbox',
|
|
|
|
'sockprefix': 'virtvboxd',
|
|
|
|
'sockets': [ 'main', 'ro', 'admin' ],
|
|
|
|
'conflicts': true,
|
|
|
|
}
|
2020-07-28 10:11:31 +00:00
|
|
|
|
|
|
|
openrc_init_files += {
|
|
|
|
'name': 'virtvboxd',
|
|
|
|
'in_file': files('virtvboxd.init.in'),
|
|
|
|
}
|
2020-06-25 15:46:33 +00:00
|
|
|
|
|
|
|
sysconf_files += {
|
|
|
|
'name': 'virtvboxd',
|
|
|
|
'file': files('virtvboxd.sysconf'),
|
|
|
|
}
|
2020-06-17 23:13:46 +00:00
|
|
|
endif
|