Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 1 | system_ss.add(files( |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 2 | 'announce.c', |
| 3 | 'checksum.c', |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 4 | 'dump.c', |
| 5 | 'eth.c', |
| 6 | 'filter-buffer.c', |
| 7 | 'filter-mirror.c', |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 8 | 'filter.c', |
| 9 | 'hub.c', |
Markus Armbruster | 2030ca3 | 2023-01-24 13:19:29 +0100 | [diff] [blame] | 10 | 'net-hmp-cmds.c', |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 11 | 'net.c', |
| 12 | 'queue.c', |
| 13 | 'socket.c', |
Laurent Vivier | 5166fe0 | 2022-10-21 11:09:11 +0200 | [diff] [blame] | 14 | 'stream.c', |
| 15 | 'dgram.c', |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 16 | 'util.c', |
| 17 | )) |
| 18 | |
Vladimir Sementsov-Ogievskiy | 6c1e390 | 2023-05-15 16:06:38 +0300 | [diff] [blame] | 19 | if get_option('replication').allowed() or \ |
| 20 | get_option('colo_proxy').allowed() |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 21 | system_ss.add(files('colo-compare.c')) |
| 22 | system_ss.add(files('colo.c')) |
Vladimir Sementsov-Ogievskiy | 6c1e390 | 2023-05-15 16:06:38 +0300 | [diff] [blame] | 23 | endif |
| 24 | |
| 25 | if get_option('colo_proxy').allowed() |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 26 | system_ss.add(files('filter-rewriter.c')) |
Vladimir Sementsov-Ogievskiy | 6c1e390 | 2023-05-15 16:06:38 +0300 | [diff] [blame] | 27 | endif |
| 28 | |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 29 | system_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c')) |
Claudio Fontana | 9b1c911 | 2020-10-13 21:21:23 +0200 | [diff] [blame] | 30 | |
Thomas Huth | eea9453 | 2021-10-28 20:59:08 +0200 | [diff] [blame] | 31 | if have_l2tpv3 |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 32 | system_ss.add(files('l2tpv3.c')) |
Thomas Huth | eea9453 | 2021-10-28 20:59:08 +0200 | [diff] [blame] | 33 | endif |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 34 | system_ss.add(when: slirp, if_true: files('slirp.c')) |
| 35 | system_ss.add(when: vde, if_true: files('vde.c')) |
Paolo Bonzini | 837b84b | 2021-10-07 15:08:22 +0200 | [diff] [blame] | 36 | if have_netmap |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 37 | system_ss.add(files('netmap.c')) |
Paolo Bonzini | 837b84b | 2021-10-07 15:08:22 +0200 | [diff] [blame] | 38 | endif |
Paolo Bonzini | 43b6d7e | 2022-04-20 17:34:06 +0200 | [diff] [blame] | 39 | if have_vhost_net_user |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 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')) |
Paolo Bonzini | 43b6d7e | 2022-04-20 17:34:06 +0200 | [diff] [blame] | 42 | endif |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 43 | |
Paolo Bonzini | 73258b3 | 2021-09-28 16:45:39 +0200 | [diff] [blame] | 44 | if targetos == 'windows' |
| 45 | system_ss.add(files('tap-win32.c')) |
| 46 | elif targetos == 'linux' |
| 47 | system_ss.add(files('tap.c', 'tap-linux.c')) |
| 48 | elif targetos in bsd_oses |
| 49 | system_ss.add(files('tap.c', 'tap-bsd.c')) |
| 50 | elif targetos == 'solaris' |
| 51 | system_ss.add(files('tap.c', 'tap-solaris.c')) |
| 52 | else |
| 53 | system_ss.add(files('tap.c', 'tap-stub.c')) |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 54 | endif |
Paolo Bonzini | 43b6d7e | 2022-04-20 17:34:06 +0200 | [diff] [blame] | 55 | if have_vhost_net_vdpa |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 56 | system_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-vdpa.c'), if_false: files('vhost-vdpa-stub.c')) |
| 57 | system_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-vdpa-stub.c')) |
Paolo Bonzini | 43b6d7e | 2022-04-20 17:34:06 +0200 | [diff] [blame] | 58 | endif |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 59 | |
Vladislav Yaroshchuk | 81ad296 | 2022-03-17 20:28:34 +0300 | [diff] [blame] | 60 | vmnet_files = files( |
| 61 | 'vmnet-common.m', |
| 62 | 'vmnet-bridged.m', |
| 63 | 'vmnet-host.c', |
| 64 | 'vmnet-shared.c' |
| 65 | ) |
Philippe Mathieu-Daudé | de6cd75 | 2023-06-13 15:33:47 +0200 | [diff] [blame] | 66 | system_ss.add(when: vmnet, if_true: vmnet_files) |
Marc-André Lureau | cdaf072 | 2019-07-22 23:47:50 +0400 | [diff] [blame] | 67 | subdir('can') |