hw/block/nand: Factor nand_load_iolen() method out
[qemu/kevin.git] / net / meson.build
blob9432a588e4e77b0726365145347670958805c841
1 system_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',
19 if get_option('replication').allowed() or \
20     get_option('colo_proxy').allowed()
21   system_ss.add(files('colo-compare.c'))
22   system_ss.add(files('colo.c'))
23 endif
25 if get_option('colo_proxy').allowed()
26   system_ss.add(files('filter-rewriter.c'))
27 endif
29 system_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
31 if have_l2tpv3
32   system_ss.add(files('l2tpv3.c'))
33 endif
34 system_ss.add(when: slirp, if_true: files('slirp.c'))
35 system_ss.add(when: vde, if_true: files('vde.c'))
36 if have_netmap
37   system_ss.add(files('netmap.c'))
38 endif
40 system_ss.add(when: libxdp, if_true: files('af-xdp.c'))
42 if have_vhost_net_user
43   system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
44 endif
46 if host_os == 'windows'
47   system_ss.add(files('tap-win32.c'))
48 elif host_os == 'linux'
49   system_ss.add(files('tap.c', 'tap-linux.c'))
50 elif host_os in bsd_oses
51   system_ss.add(files('tap.c', 'tap-bsd.c'))
52 elif host_os == 'sunos'
53   system_ss.add(files('tap.c', 'tap-solaris.c'))
54 else
55   system_ss.add(files('tap.c', 'tap-stub.c'))
56 endif
57 if have_vhost_net_vdpa
58   system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c'))
59 endif
61 vmnet_files = files(
62   'vmnet-common.m',
63   'vmnet-bridged.m',
64   'vmnet-host.c',
65   'vmnet-shared.c'
67 system_ss.add(when: vmnet, if_true: vmnet_files)
68 subdir('can')