]> git.proxmox.com Git - mirror_qemu.git/blob - net/meson.build
Merge tag 'for-upstream-urgent' of https://gitlab.com/bonzini/qemu into staging
[mirror_qemu.git] / net / meson.build
1 softmmu_ss.add(files(
2 'announce.c',
3 'checksum.c',
4 'dump.c',
5 'eth.c',
6 'filter-buffer.c',
7 'filter-mirror.c',
8 'filter.c',
9 'hub.c',
10 'net-hmp-cmds.c',
11 'net.c',
12 'queue.c',
13 'socket.c',
14 'stream.c',
15 'dgram.c',
16 'util.c',
17 ))
18
19 if get_option('replication').allowed() or \
20 get_option('colo_proxy').allowed()
21 softmmu_ss.add(files('colo-compare.c'))
22 softmmu_ss.add(files('colo.c'))
23 endif
24
25 if get_option('colo_proxy').allowed()
26 softmmu_ss.add(files('filter-rewriter.c'))
27 endif
28
29 softmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
30
31 if have_l2tpv3
32 softmmu_ss.add(files('l2tpv3.c'))
33 endif
34 softmmu_ss.add(when: slirp, if_true: files('slirp.c'))
35 softmmu_ss.add(when: vde, if_true: files('vde.c'))
36 if have_netmap
37 softmmu_ss.add(files('netmap.c'))
38 endif
39 if have_vhost_net_user
40 softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
41 softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c'))
42 endif
43
44 softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c'))
45 softmmu_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c'))
46 softmmu_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c'))
47 tap_posix = ['tap.c']
48 if not config_host.has_key('CONFIG_LINUX') and not config_host.has_key('CONFIG_BSD') and not config_host.has_key('CONFIG_SOLARIS')
49 tap_posix += 'tap-stub.c'
50 endif
51 softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix))
52 softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c'))
53 if have_vhost_net_vdpa
54 softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
55 softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-vdpa-stub.c'))
56 endif
57
58 vmnet_files = files(
59 'vmnet-common.m',
60 'vmnet-bridged.m',
61 'vmnet-host.c',
62 'vmnet-shared.c'
63 )
64 softmmu_ss.add(when: vmnet, if_true: vmnet_files)
65 subdir('can')