]> git.proxmox.com Git - mirror_qemu.git/blame - net/meson.build
Merge remote-tracking branch 'remotes/thuth/tags/pull-request-2021-10-15' into staging
[mirror_qemu.git] / net / meson.build
CommitLineData
cdaf0722
MAL
1softmmu_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',
cdaf0722
MAL
10 'filter-rewriter.c',
11 'filter.c',
12 'hub.c',
13 'net.c',
14 'queue.c',
15 'socket.c',
16 'util.c',
17))
18
9b1c9116
CF
19softmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
20
cdaf0722 21softmmu_ss.add(when: 'CONFIG_L2TPV3', if_true: files('l2tpv3.c'))
4d34a86b 22softmmu_ss.add(when: slirp, if_true: files('slirp.c'))
e1723999 23softmmu_ss.add(when: vde, if_true: files('vde.c'))
837b84b1
PB
24if have_netmap
25 softmmu_ss.add(files('netmap.c'))
26endif
cdaf0722
MAL
27vhost_user_ss = ss.source_set()
28vhost_user_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
29softmmu_ss.add_all(when: 'CONFIG_VHOST_NET_USER', if_true: vhost_user_ss)
30softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c'))
31
32softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c'))
33softmmu_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c'))
34softmmu_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c'))
35tap_posix = ['tap.c']
36if not config_host.has_key('CONFIG_LINUX') and not config_host.has_key('CONFIG_BSD') and not config_host.has_key('CONFIG_SOLARIS')
37 tap_posix += 'tap-stub.c'
38endif
39softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix))
40softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c'))
41softmmu_ss.add(when: 'CONFIG_VHOST_NET_VDPA', if_true: files('vhost-vdpa.c'))
42
43subdir('can')