Files
xemu/net/meson.build
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.7 KiB
Meson
Raw Normal View History

2023-06-13 15:33:47 +02:00
system_ss.add(files(
2019-07-22 23:47:50 +04:00
'announce.c',
'checksum.c',
'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',
'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'))
if have_l2tpv3
2023-06-13 15:33:47 +02:00
system_ss.add(files('l2tpv3.c'))
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'))
if have_netmap
2023-06-13 15:33:47 +02:00
system_ss.add(files('netmap.c'))
endif
system_ss.add(when: [libxdp, libbpf], if_true: files('af-xdp.c'))
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'))
endif
2019-07-22 23:47:50 +04:00
if host_os == 'windows'
system_ss.add(files('tap-win32.c'))
elif host_os == 'linux'
system_ss.add(files('tap.c', 'tap-linux.c'))
elif host_os in bsd_oses
system_ss.add(files('tap.c', 'tap-bsd.c'))
elif host_os == 'sunos'
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
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'))
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')