tests: fixes aio-win32 about aio_remove_fd_handler, get it consistence with aio-posix.c
[qemu/ar7.git] / net / meson.build
blob6c2ec47dd59ff21083603767957f39ff40752561
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',
10   'filter-replay.c',
11   'filter-rewriter.c',
12   'filter.c',
13   'hub.c',
14   'net.c',
15   'queue.c',
16   'socket.c',
17   'util.c',
20 softmmu_ss.add(when: 'CONFIG_L2TPV3', if_true: files('l2tpv3.c'))
21 softmmu_ss.add(when: ['CONFIG_SLIRP', slirp], if_true: files('slirp.c'))
22 softmmu_ss.add(when: ['CONFIG_VDE', vde], if_true: files('vde.c'))
23 softmmu_ss.add(when: 'CONFIG_NETMAP', if_true: files('netmap.c'))
24 vhost_user_ss = ss.source_set()
25 vhost_user_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
26 softmmu_ss.add_all(when: 'CONFIG_VHOST_NET_USER', if_true: vhost_user_ss)
27 softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c'))
29 softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c'))
30 softmmu_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c'))
31 softmmu_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c'))
32 tap_posix = ['tap.c']
33 if not config_host.has_key('CONFIG_LINUX') and not config_host.has_key('CONFIG_BSD') and not config_host.has_key('CONFIG_SOLARIS')
34   tap_posix += 'tap-stub.c'
35 endif
36 softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix))
37 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c'))
38 softmmu_ss.add(when: 'CONFIG_VHOST_NET_VDPA', if_true: files('vhost-vdpa.c'))
40 subdir('can')