2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(files(
|
2019-07-22 23:47:50 +04:00
|
|
|
'announce.c',
|
|
|
|
|
'checksum.c',
|
2025-07-09 10:24:15 +02:00
|
|
|
'dgram.c',
|
2019-07-22 23:47:50 +04:00
|
|
|
'dump.c',
|
|
|
|
|
'eth.c',
|
|
|
|
|
'filter-buffer.c',
|
|
|
|
|
'filter-mirror.c',
|
|
|
|
|
'filter.c',
|
|
|
|
|
'hub.c',
|
2023-01-24 13:19:29 +01:00
|
|
|
'net-hmp-cmds.c',
|
2019-07-22 23:47:50 +04:00
|
|
|
'net.c',
|
|
|
|
|
'queue.c',
|
|
|
|
|
'socket.c',
|
2022-10-21 11:09:11 +02:00
|
|
|
'stream.c',
|
2025-07-09 10:24:15 +02:00
|
|
|
'stream_data.c',
|
2019-07-22 23:47:50 +04:00
|
|
|
'util.c',
|
|
|
|
|
))
|
|
|
|
|
|
2023-05-15 16:06:38 +03:00
|
|
|
if get_option('replication').allowed() or \
|
|
|
|
|
get_option('colo_proxy').allowed()
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(files('colo-compare.c'))
|
|
|
|
|
system_ss.add(files('colo.c'))
|
2024-04-08 17:53:27 +02:00
|
|
|
else
|
|
|
|
|
system_ss.add(files('colo-stubs.c'))
|
2023-05-15 16:06:38 +03:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
if get_option('colo_proxy').allowed()
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(files('filter-rewriter.c'))
|
2023-05-15 16:06:38 +03:00
|
|
|
endif
|
|
|
|
|
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
|
2020-10-13 21:21:23 +02:00
|
|
|
|
2021-10-28 20:59:08 +02:00
|
|
|
if have_l2tpv3
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(files('l2tpv3.c'))
|
2021-10-28 20:59:08 +02:00
|
|
|
endif
|
2025-07-09 10:24:24 +02:00
|
|
|
if enable_passt
|
|
|
|
|
system_ss.add(files('passt.c'))
|
|
|
|
|
endif
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: slirp, if_true: files('slirp.c'))
|
|
|
|
|
system_ss.add(when: vde, if_true: files('vde.c'))
|
2021-10-07 15:08:22 +02:00
|
|
|
if have_netmap
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(files('netmap.c'))
|
2021-10-07 15:08:22 +02:00
|
|
|
endif
|
2023-09-13 20:34:37 +02:00
|
|
|
|
2024-10-23 09:50:56 +01:00
|
|
|
system_ss.add(when: [libxdp, libbpf], if_true: files('af-xdp.c'))
|
2023-09-13 20:34:37 +02:00
|
|
|
|
2022-04-20 17:34:06 +02:00
|
|
|
if have_vhost_net_user
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
|
2022-04-20 17:34:06 +02:00
|
|
|
endif
|
2019-07-22 23:47:50 +04:00
|
|
|
|
2023-11-03 09:17:48 +01:00
|
|
|
if host_os == 'windows'
|
2021-09-28 16:45:39 +02:00
|
|
|
system_ss.add(files('tap-win32.c'))
|
2023-11-03 09:17:48 +01:00
|
|
|
elif host_os == 'linux'
|
2021-09-28 16:45:39 +02:00
|
|
|
system_ss.add(files('tap.c', 'tap-linux.c'))
|
2023-11-03 09:17:48 +01:00
|
|
|
elif host_os in bsd_oses
|
2021-09-28 16:45:39 +02:00
|
|
|
system_ss.add(files('tap.c', 'tap-bsd.c'))
|
2023-11-03 09:17:48 +01:00
|
|
|
elif host_os == 'sunos'
|
2021-09-28 16:45:39 +02:00
|
|
|
system_ss.add(files('tap.c', 'tap-solaris.c'))
|
|
|
|
|
else
|
|
|
|
|
system_ss.add(files('tap.c', 'tap-stub.c'))
|
2019-07-22 23:47:50 +04:00
|
|
|
endif
|
2022-04-20 17:34:06 +02:00
|
|
|
if have_vhost_net_vdpa
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
|
2022-04-20 17:34:06 +02:00
|
|
|
endif
|
2019-07-22 23:47:50 +04:00
|
|
|
|
2022-03-17 20:28:34 +03:00
|
|
|
vmnet_files = files(
|
|
|
|
|
'vmnet-common.m',
|
|
|
|
|
'vmnet-bridged.m',
|
|
|
|
|
'vmnet-host.c',
|
|
|
|
|
'vmnet-shared.c'
|
|
|
|
|
)
|
2023-06-13 15:33:47 +02:00
|
|
|
system_ss.add(when: vmnet, if_true: vmnet_files)
|
2019-07-22 23:47:50 +04:00
|
|
|
subdir('can')
|