1de6cd759SPhilippe Mathieu-Daudésystem_ss.add(files( 2cdaf0722SMarc-André Lureau 'announce.c', 3cdaf0722SMarc-André Lureau 'checksum.c', 4cdaf0722SMarc-André Lureau 'dump.c', 5cdaf0722SMarc-André Lureau 'eth.c', 6cdaf0722SMarc-André Lureau 'filter-buffer.c', 7cdaf0722SMarc-André Lureau 'filter-mirror.c', 8cdaf0722SMarc-André Lureau 'filter.c', 9cdaf0722SMarc-André Lureau 'hub.c', 102030ca36SMarkus Armbruster 'net-hmp-cmds.c', 11cdaf0722SMarc-André Lureau 'net.c', 12cdaf0722SMarc-André Lureau 'queue.c', 13cdaf0722SMarc-André Lureau 'socket.c', 145166fe0aSLaurent Vivier 'stream.c', 155166fe0aSLaurent Vivier 'dgram.c', 16cdaf0722SMarc-André Lureau 'util.c', 17cdaf0722SMarc-André Lureau)) 18cdaf0722SMarc-André Lureau 196c1e3906SVladimir Sementsov-Ogievskiyif get_option('replication').allowed() or \ 206c1e3906SVladimir Sementsov-Ogievskiy get_option('colo_proxy').allowed() 21de6cd759SPhilippe Mathieu-Daudé system_ss.add(files('colo-compare.c')) 22de6cd759SPhilippe Mathieu-Daudé system_ss.add(files('colo.c')) 23857f504cSPaolo Bonzinielse 24857f504cSPaolo Bonzini system_ss.add(files('colo-stubs.c')) 256c1e3906SVladimir Sementsov-Ogievskiyendif 266c1e3906SVladimir Sementsov-Ogievskiy 276c1e3906SVladimir Sementsov-Ogievskiyif get_option('colo_proxy').allowed() 28de6cd759SPhilippe Mathieu-Daudé system_ss.add(files('filter-rewriter.c')) 296c1e3906SVladimir Sementsov-Ogievskiyendif 306c1e3906SVladimir Sementsov-Ogievskiy 31de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c')) 329b1c9116SClaudio Fontana 33eea9453aSThomas Huthif have_l2tpv3 34de6cd759SPhilippe Mathieu-Daudé system_ss.add(files('l2tpv3.c')) 35eea9453aSThomas Huthendif 36de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: slirp, if_true: files('slirp.c')) 37de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: vde, if_true: files('vde.c')) 38837b84b1SPaolo Bonziniif have_netmap 39de6cd759SPhilippe Mathieu-Daudé system_ss.add(files('netmap.c')) 40837b84b1SPaolo Bonziniendif 41cb039ef3SIlya Maximets 42*9657dacaSDaniel P. Berrangésystem_ss.add(when: [libxdp, libbpf], if_true: files('af-xdp.c')) 43cb039ef3SIlya Maximets 4443b6d7eeSPaolo Bonziniif have_vhost_net_user 45de6cd759SPhilippe Mathieu-Daudé system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c')) 4643b6d7eeSPaolo Bonziniendif 47cdaf0722SMarc-André Lureau 48d0cda6f4SPaolo Bonziniif host_os == 'windows' 4973258b38SPaolo Bonzini system_ss.add(files('tap-win32.c')) 50d0cda6f4SPaolo Bonzinielif host_os == 'linux' 5173258b38SPaolo Bonzini system_ss.add(files('tap.c', 'tap-linux.c')) 52d0cda6f4SPaolo Bonzinielif host_os in bsd_oses 5373258b38SPaolo Bonzini system_ss.add(files('tap.c', 'tap-bsd.c')) 54d0cda6f4SPaolo Bonzinielif host_os == 'sunos' 5573258b38SPaolo Bonzini system_ss.add(files('tap.c', 'tap-solaris.c')) 5673258b38SPaolo Bonzinielse 5773258b38SPaolo Bonzini system_ss.add(files('tap.c', 'tap-stub.c')) 58cdaf0722SMarc-André Lureauendif 5943b6d7eeSPaolo Bonziniif have_vhost_net_vdpa 60de6cd759SPhilippe Mathieu-Daudé system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c')) 6143b6d7eeSPaolo Bonziniendif 62cdaf0722SMarc-André Lureau 6381ad2964SVladislav Yaroshchukvmnet_files = files( 6481ad2964SVladislav Yaroshchuk 'vmnet-common.m', 6581ad2964SVladislav Yaroshchuk 'vmnet-bridged.m', 6681ad2964SVladislav Yaroshchuk 'vmnet-host.c', 6781ad2964SVladislav Yaroshchuk 'vmnet-shared.c' 6881ad2964SVladislav Yaroshchuk) 69de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: vmnet, if_true: vmnet_files) 70cdaf0722SMarc-André Lureausubdir('can') 71