libvirt/src/node_device/meson.build
Pavel Hrdina 3d1bd8e8bb meson: src: install libvirt daemon sysconf files
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
2020-08-03 09:27:05 +02:00

73 lines
1.4 KiB
Meson

node_device_driver_sources = [
'node_device_driver.c',
]
if conf.has('WITH_HAL')
node_device_driver_sources += 'node_device_hal.c'
endif
if conf.has('WITH_UDEV')
node_device_driver_sources += 'node_device_udev.c'
endif
if conf.has('WITH_NODE_DEVICES')
node_device_driver_impl = static_library(
'virt_driver_nodedev_impl',
[
node_device_driver_sources,
],
dependencies: [
access_dep,
hal_dep,
libnl_dep,
pciaccess_dep,
src_dep,
udev_dep,
],
include_directories: [
conf_inc_dir,
],
)
virt_modules += {
'name': 'virt_driver_nodedev',
'link_whole': [
node_device_driver_impl,
],
'link_args': [
libvirt_no_undefined,
],
}
virt_daemons += {
'name': 'virtnodedevd',
'c_args': [
'-DDAEMON_NAME="virtnodedevd"',
'-DMODULE_NAME="nodedev"',
],
}
virt_daemon_confs += {
'name': 'virtnodedevd',
}
virt_daemon_units += {
'service': 'virtnodedevd',
'service_in': files('virtnodedevd.service.in'),
'name': 'Libvirt nodedev',
'sockprefix': 'virtnodedevd',
'sockets': [ 'main', 'ro', 'admin' ],
'conflicts': true,
}
openrc_init_files += {
'name': 'virtnodedevd',
'in_file': files('virtnodedevd.init.in'),
}
sysconf_files += {
'name': 'virtnodedevd',
'file': files('virtnodedevd.sysconf'),
}
endif