1*de6cd759SPhilippe 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() 21*de6cd759SPhilippe Mathieu-Daudé system_ss.add(files('colo-compare.c')) 22*de6cd759SPhilippe Mathieu-Daudé system_ss.add(files('colo.c')) 236c1e3906SVladimir Sementsov-Ogievskiyendif 246c1e3906SVladimir Sementsov-Ogievskiy 256c1e3906SVladimir Sementsov-Ogievskiyif get_option('colo_proxy').allowed() 26*de6cd759SPhilippe Mathieu-Daudé system_ss.add(files('filter-rewriter.c')) 276c1e3906SVladimir Sementsov-Ogievskiyendif 286c1e3906SVladimir Sementsov-Ogievskiy 29*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c')) 309b1c9116SClaudio Fontana 31eea9453aSThomas Huthif have_l2tpv3 32*de6cd759SPhilippe Mathieu-Daudé system_ss.add(files('l2tpv3.c')) 33eea9453aSThomas Huthendif 34*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: slirp, if_true: files('slirp.c')) 35*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: vde, if_true: files('vde.c')) 36837b84b1SPaolo Bonziniif have_netmap 37*de6cd759SPhilippe Mathieu-Daudé system_ss.add(files('netmap.c')) 38837b84b1SPaolo Bonziniendif 3943b6d7eeSPaolo Bonziniif have_vhost_net_user 40*de6cd759SPhilippe Mathieu-Daudé system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c')) 41*de6cd759SPhilippe Mathieu-Daudé system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c')) 4243b6d7eeSPaolo Bonziniendif 43cdaf0722SMarc-André Lureau 44*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c')) 45*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c')) 46*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c')) 47cdaf0722SMarc-André Lureautap_posix = ['tap.c'] 48cdaf0722SMarc-André Lureauif not config_host.has_key('CONFIG_LINUX') and not config_host.has_key('CONFIG_BSD') and not config_host.has_key('CONFIG_SOLARIS') 49cdaf0722SMarc-André Lureau tap_posix += 'tap-stub.c' 50cdaf0722SMarc-André Lureauendif 51*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix)) 52*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c')) 5343b6d7eeSPaolo Bonziniif have_vhost_net_vdpa 54*de6cd759SPhilippe Mathieu-Daudé system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c')) 55*de6cd759SPhilippe Mathieu-Daudé system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-vdpa-stub.c')) 5643b6d7eeSPaolo Bonziniendif 57cdaf0722SMarc-André Lureau 5881ad2964SVladislav Yaroshchukvmnet_files = files( 5981ad2964SVladislav Yaroshchuk 'vmnet-common.m', 6081ad2964SVladislav Yaroshchuk 'vmnet-bridged.m', 6181ad2964SVladislav Yaroshchuk 'vmnet-host.c', 6281ad2964SVladislav Yaroshchuk 'vmnet-shared.c' 6381ad2964SVladislav Yaroshchuk) 64*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: vmnet, if_true: vmnet_files) 65cdaf0722SMarc-André Lureausubdir('can') 66