19 if get_option('replication').allowed() or \
20 get_option('colo_proxy').allowed()
21 system_ss.add(files('colo-compare.c'))
22 system_ss.add(files('colo.c'))
25 if get_option('colo_proxy').allowed()
26 system_ss.add(files('filter-rewriter.c'))
29 system_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
32 system_ss.add(files('l2tpv3.c'))
34 system_ss.add(when: slirp, if_true: files('slirp.c'))
35 system_ss.add(when: vde, if_true: files('vde.c'))
37 system_ss.add(files('netmap.c'))
40 system_ss.add(when: libxdp, if_true: files('af-xdp.c'))
42 if have_vhost_net_user
43 system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
44 system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c'))
47 if targetos == 'windows'
48 system_ss.add(files('tap-win32.c'))
49 elif targetos == 'linux'
50 system_ss.add(files('tap.c', 'tap-linux.c'))
51 elif targetos in bsd_oses
52 system_ss.add(files('tap.c', 'tap-bsd.c'))
53 elif targetos == 'sunos'
54 system_ss.add(files('tap.c', 'tap-solaris.c'))
56 system_ss.add(files('tap.c', 'tap-stub.c'))
58 if have_vhost_net_vdpa
59 system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
60 system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-vdpa-stub.c'))
69 system_ss.add(when: vmnet, if_true: vmnet_files)