master
build 78 lines 1.75 KB
Raw
1 system_ss.add(files(
2 'announce.c',
3 'checksum.c',
4 'dgram.c',
5 'dump.c',
6 'eth.c',
7 'filter-buffer.c',
8 'filter-mirror.c',
9 'filter.c',
10 'hub.c',
11 'net.c',
12 'queue.c',
13 'socket.c',
14 'stream.c',
15 'stream_data.c',
16 'util.c',
17 ))
18 if have_hmp
19 system_ss.add(files('net-hmp-cmds.c'))
20 endif
21
22 if get_option('replication').allowed() or \
23 get_option('colo_proxy').allowed()
24 system_ss.add(files('colo-compare.c'))
25 system_ss.add(files('colo.c'))
26 else
27 system_ss.add(files('colo-stubs.c'))
28 endif
29
30 if get_option('colo_proxy').allowed()
31 system_ss.add(files('filter-rewriter.c'))
32 endif
33
34 system_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
35
36 if have_l2tpv3
37 system_ss.add(files('l2tpv3.c'))
38 endif
39 if enable_passt
40 system_ss.add(files('passt.c'))
41 endif
42 system_ss.add(when: slirp, if_true: files('slirp.c'))
43 system_ss.add(when: vde, if_true: files('vde.c'))
44 if have_netmap
45 system_ss.add(files('netmap.c'))
46 endif
47
48 system_ss.add(when: [libxdp, libbpf], if_true: files('af-xdp.c'))
49
50 if have_vhost_net_user
51 system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'))
52 endif
53 stub_ss.add(files('vhost-user-stub.c'))
54
55 if host_os == 'windows'
56 system_ss.add(files('tap-win32.c'))
57 elif host_os == 'linux'
58 system_ss.add(files('tap.c', 'tap-linux.c'))
59 elif host_os in bsd_oses
60 system_ss.add(files('tap.c', 'tap-bsd.c'))
61 elif host_os == 'sunos'
62 system_ss.add(files('tap.c', 'tap-solaris.c'))
63 else
64 system_ss.add(files('tap.c', 'tap-stub.c'))
65 endif
66 if have_vhost_net_vdpa
67 system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'))
68 endif
69 stub_ss.add(files('vhost-vdpa-stub.c'))
70
71 vmnet_files = files(
72 'vmnet-common.m',
73 'vmnet-bridged.m',
74 'vmnet-host.c',
75 'vmnet-shared.c'
76 )
77 system_ss.add(when: vmnet, if_true: vmnet_files)
78 subdir('can')