2020-06-17 23:10:22 +00:00
|
|
|
network_driver_sources = [
|
|
|
|
'bridge_driver.c',
|
|
|
|
'bridge_driver_platform.c',
|
|
|
|
]
|
|
|
|
|
2020-06-24 11:30:51 +00:00
|
|
|
network_leases_helper_sources = files(
|
|
|
|
'leaseshelper.c',
|
|
|
|
)
|
|
|
|
|
2020-06-17 23:10:22 +00:00
|
|
|
if conf.has('WITH_NETWORK')
|
|
|
|
network_driver_impl = static_library(
|
|
|
|
'virt_driver_network_impl',
|
|
|
|
[
|
|
|
|
network_driver_sources,
|
|
|
|
],
|
|
|
|
dependencies: [
|
|
|
|
access_dep,
|
|
|
|
dbus_dep,
|
|
|
|
libnl_dep,
|
|
|
|
src_dep,
|
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
conf_inc_dir,
|
|
|
|
],
|
|
|
|
)
|
2020-06-22 13:25:53 +00:00
|
|
|
|
|
|
|
virt_modules += {
|
|
|
|
'name': 'virt_driver_network',
|
|
|
|
'deps': [
|
|
|
|
dbus_dep,
|
|
|
|
libnl_dep,
|
|
|
|
],
|
|
|
|
'link_whole': [
|
|
|
|
network_driver_impl,
|
|
|
|
],
|
|
|
|
'link_args': [
|
|
|
|
libvirt_no_undefined,
|
|
|
|
],
|
|
|
|
}
|
2020-06-22 14:46:37 +00:00
|
|
|
|
|
|
|
virt_daemons += {
|
|
|
|
'name': 'virtnetworkd',
|
|
|
|
'c_args': [
|
|
|
|
'-DDAEMON_NAME="virtnetworkd"',
|
|
|
|
'-DMODULE_NAME="network"',
|
|
|
|
],
|
|
|
|
}
|
2020-06-24 11:30:51 +00:00
|
|
|
|
|
|
|
virt_helpers += {
|
|
|
|
'name': 'libvirt_leaseshelper',
|
|
|
|
'sources': [
|
|
|
|
network_leases_helper_sources,
|
|
|
|
dtrace_gen_objects,
|
|
|
|
],
|
|
|
|
}
|
2020-06-17 23:10:22 +00:00
|
|
|
endif
|