]> git.proxmox.com Git - mirror_qemu.git/blame - net/meson.build
vhost-vdpa: do not cleanup the vdpa/vhost-net structures if peer nic is present
[mirror_qemu.git] / net / meson.build
CommitLineData
de6cd759 1system_ss.add(files(
cdaf0722
MAL
2 'announce.c',
3 'checksum.c',
cdaf0722
MAL
4 'dump.c',
5 'eth.c',
6 'filter-buffer.c',
7 'filter-mirror.c',
cdaf0722
MAL
8 'filter.c',
9 'hub.c',
2030ca36 10 'net-hmp-cmds.c',
cdaf0722
MAL
11 'net.c',
12 'queue.c',
13 'socket.c',
5166fe0a
LV
14 'stream.c',
15 'dgram.c',
cdaf0722
MAL
16 'util.c',
17))
18
6c1e3906
VSO
19if get_option('replication').allowed() or \
20 get_option('colo_proxy').allowed()
de6cd759
PMD
21 system_ss.add(files('colo-compare.c'))
22 system_ss.add(files('colo.c'))
6c1e3906
VSO
23endif
24
25if get_option('colo_proxy').allowed()
de6cd759 26 system_ss.add(files('filter-rewriter.c'))
6c1e3906
VSO
27endif
28
de6cd759 29system_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
9b1c9116 30
eea9453a 31if have_l2tpv3
de6cd759 32 system_ss.add(files('l2tpv3.c'))
eea9453a 33endif
de6cd759
PMD
34system_ss.add(when: slirp, if_true: files('slirp.c'))
35system_ss.add(when: vde, if_true: files('vde.c'))
837b84b1 36if have_netmap
de6cd759 37 system_ss.add(files('netmap.c'))
837b84b1 38endif
43b6d7ee 39if have_vhost_net_user
de6cd759
PMD
40 system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
41 system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c'))
43b6d7ee 42endif
cdaf0722 43
de6cd759
PMD
44system_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c'))
45system_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c'))
46system_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c'))
cdaf0722
MAL
47tap_posix = ['tap.c']
48if 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'
50endif
de6cd759
PMD
51system_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix))
52system_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c'))
43b6d7ee 53if have_vhost_net_vdpa
de6cd759
PMD
54 system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
55 system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-vdpa-stub.c'))
43b6d7ee 56endif
cdaf0722 57
81ad2964
VY
58vmnet_files = files(
59 'vmnet-common.m',
60 'vmnet-bridged.m',
61 'vmnet-host.c',
62 'vmnet-shared.c'
63)
de6cd759 64system_ss.add(when: vmnet, if_true: vmnet_files)
cdaf0722 65subdir('can')