Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 1 | softmmu_ss.add(files( |
| 2 | 'announce.c', |
| 3 | 'checksum.c', |
| 4 | 'colo-compare.c', |
| 5 | 'colo.c', |
| 6 | 'dump.c', |
| 7 | 'eth.c', |
| 8 | 'filter-buffer.c', |
| 9 | 'filter-mirror.c', |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 10 | 'filter-rewriter.c', |
| 11 | 'filter.c', |
| 12 | 'hub.c', |
| 13 | 'net.c', |
| 14 | 'queue.c', |
| 15 | 'socket.c', |
| 16 | 'util.c', |
| 17 | )) |
| 18 | |
Claudio Fontana | 9b1c911 | 2020-10-13 21:21:23 +0200 | [diff] [blame] | 19 | softmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c')) |
| 20 | |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 21 | softmmu_ss.add(when: 'CONFIG_L2TPV3', if_true: files('l2tpv3.c')) |
Paolo Bonzini | 4d34a86 | 2020-10-05 11:31:15 +0200 | [diff] [blame] | 22 | softmmu_ss.add(when: slirp, if_true: files('slirp.c')) |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 23 | softmmu_ss.add(when: ['CONFIG_VDE', vde], if_true: files('vde.c')) |
| 24 | softmmu_ss.add(when: 'CONFIG_NETMAP', if_true: files('netmap.c')) |
| 25 | vhost_user_ss = ss.source_set() |
| 26 | vhost_user_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c')) |
| 27 | softmmu_ss.add_all(when: 'CONFIG_VHOST_NET_USER', if_true: vhost_user_ss) |
| 28 | softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c')) |
| 29 | |
| 30 | softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c')) |
| 31 | softmmu_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c')) |
| 32 | softmmu_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c')) |
| 33 | tap_posix = ['tap.c'] |
| 34 | if not config_host.has_key('CONFIG_LINUX') and not config_host.has_key('CONFIG_BSD') and not config_host.has_key('CONFIG_SOLARIS') |
| 35 | tap_posix += 'tap-stub.c' |
| 36 | endif |
| 37 | softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix)) |
| 38 | softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c')) |
| 39 | softmmu_ss.add(when: 'CONFIG_VHOST_NET_VDPA', if_true: files('vhost-vdpa.c')) |
| 40 | |
| 41 | subdir('can') |