1cdaf0722SMarc-André Lureausoftmmu_ss.add(files( 2cdaf0722SMarc-André Lureau 'announce.c', 3cdaf0722SMarc-André Lureau 'checksum.c', 4cdaf0722SMarc-André Lureau 'colo-compare.c', 5cdaf0722SMarc-André Lureau 'colo.c', 6cdaf0722SMarc-André Lureau 'dump.c', 7cdaf0722SMarc-André Lureau 'eth.c', 8cdaf0722SMarc-André Lureau 'filter-buffer.c', 9cdaf0722SMarc-André Lureau 'filter-mirror.c', 10cdaf0722SMarc-André Lureau 'filter-rewriter.c', 11cdaf0722SMarc-André Lureau 'filter.c', 12cdaf0722SMarc-André Lureau 'hub.c', 13cdaf0722SMarc-André Lureau 'net.c', 14cdaf0722SMarc-André Lureau 'queue.c', 15cdaf0722SMarc-André Lureau 'socket.c', 16cdaf0722SMarc-André Lureau 'util.c', 17cdaf0722SMarc-André Lureau)) 18cdaf0722SMarc-André Lureau 19*9b1c9116SClaudio Fontanasoftmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c')) 20*9b1c9116SClaudio Fontana 21cdaf0722SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_L2TPV3', if_true: files('l2tpv3.c')) 224d34a86bSPaolo Bonzinisoftmmu_ss.add(when: slirp, if_true: files('slirp.c')) 23cdaf0722SMarc-André Lureausoftmmu_ss.add(when: ['CONFIG_VDE', vde], if_true: files('vde.c')) 24cdaf0722SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_NETMAP', if_true: files('netmap.c')) 25cdaf0722SMarc-André Lureauvhost_user_ss = ss.source_set() 26cdaf0722SMarc-André Lureauvhost_user_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c')) 27cdaf0722SMarc-André Lureausoftmmu_ss.add_all(when: 'CONFIG_VHOST_NET_USER', if_true: vhost_user_ss) 28cdaf0722SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c')) 29cdaf0722SMarc-André Lureau 30cdaf0722SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c')) 31cdaf0722SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c')) 32cdaf0722SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c')) 33cdaf0722SMarc-André Lureautap_posix = ['tap.c'] 34cdaf0722SMarc-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') 35cdaf0722SMarc-André Lureau tap_posix += 'tap-stub.c' 36cdaf0722SMarc-André Lureauendif 37cdaf0722SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix)) 38cdaf0722SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c')) 39cdaf0722SMarc-André Lureausoftmmu_ss.add(when: 'CONFIG_VHOST_NET_VDPA', if_true: files('vhost-vdpa.c')) 40cdaf0722SMarc-André Lureau 41cdaf0722SMarc-André Lureausubdir('can') 42