]> git.proxmox.com Git - mirror_qemu.git/blame - net/meson.build
hw/char: riscv_htif: Drop {to, from}host_size in HTIFState
[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',
5166fe0a
LV
16 'stream.c',
17 'dgram.c',
cdaf0722
MAL
18 'util.c',
19))
20
9b1c9116
CF
21softmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
22
eea9453a
TH
23if have_l2tpv3
24 softmmu_ss.add(files('l2tpv3.c'))
25endif
4d34a86b 26softmmu_ss.add(when: slirp, if_true: files('slirp.c'))
e1723999 27softmmu_ss.add(when: vde, if_true: files('vde.c'))
837b84b1
PB
28if have_netmap
29 softmmu_ss.add(files('netmap.c'))
30endif
43b6d7ee
PB
31if have_vhost_net_user
32 softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
33 softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-user-stub.c'))
34endif
cdaf0722
MAL
35
36softmmu_ss.add(when: 'CONFIG_LINUX', if_true: files('tap-linux.c'))
37softmmu_ss.add(when: 'CONFIG_BSD', if_true: files('tap-bsd.c'))
38softmmu_ss.add(when: 'CONFIG_SOLARIS', if_true: files('tap-solaris.c'))
39tap_posix = ['tap.c']
40if not config_host.has_key('CONFIG_LINUX') and not config_host.has_key('CONFIG_BSD') and not config_host.has_key('CONFIG_SOLARIS')
41 tap_posix += 'tap-stub.c'
42endif
43softmmu_ss.add(when: 'CONFIG_POSIX', if_true: files(tap_posix))
44softmmu_ss.add(when: 'CONFIG_WIN32', if_true: files('tap-win32.c'))
43b6d7ee 45if have_vhost_net_vdpa
94c64373
EP
46 softmmu_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
47 softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-vdpa-stub.c'))
43b6d7ee 48endif
cdaf0722 49
81ad2964
VY
50vmnet_files = files(
51 'vmnet-common.m',
52 'vmnet-bridged.m',
53 'vmnet-host.c',
54 'vmnet-shared.c'
55)
56softmmu_ss.add(when: vmnet, if_true: vmnet_files)
cdaf0722 57subdir('can')