Merge tag 'pull-riscv-to-apply-20221014' of https://github.com/alistair23/qemu into...
[qemu/ar7.git] / net / meson.build
blobd1be76daf361a5b05d0e8d1296bb6544b6f3be3a
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-rewriter.c',
11   'filter.c',
12   'hub.c',
13   'net.c',
14   'queue.c',
15   'socket.c',
16   'util.c',
19 softmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
21 if have_l2tpv3
22   softmmu_ss.add(files('l2tpv3.c'))
23 endif
24 softmmu_ss.add(when: slirp, if_true: files('slirp.c'))
25 softmmu_ss.add(when: vde, if_true: files('vde.c'))
26 if have_netmap
27   softmmu_ss.add(files('netmap.c'))
28 endif
29 if have_vhost_net_user
30   softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
31   softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c'))
32 endif
34 softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c'))
35 softmmu_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c'))
36 softmmu_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c'))
37 tap_posix = ['tap.c']
38 if not config_host.has_key('CONFIG_LINUX') and not config_host.has_key('CONFIG_BSD') and not config_host.has_key('CONFIG_SOLARIS')
39   tap_posix += 'tap-stub.c'
40 endif
41 softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix))
42 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c'))
43 if have_vhost_net_vdpa
44   softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
45   softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-vdpa-stub.c'))
46 endif
48 vmnet_files = files(
49   'vmnet-common.m',
50   'vmnet-bridged.m',
51   'vmnet-host.c',
52   'vmnet-shared.c'
54 softmmu_ss.add(when: vmnet, if_true: vmnet_files)
55 subdir('can')