]> git.proxmox.com Git - mirror_qemu.git/blobdiff - net/meson.build
bsd-user: add arm target build
[mirror_qemu.git] / net / meson.build
index 6c2ec47dd59ff21083603767957f39ff40752561..847bc2ac85be7a7dec67f9f01139aa7f7a4daf4d 100644 (file)
@@ -7,7 +7,6 @@ softmmu_ss.add(files(
   'eth.c',
   'filter-buffer.c',
   'filter-mirror.c',
-  'filter-replay.c',
   'filter-rewriter.c',
   'filter.c',
   'hub.c',
@@ -17,10 +16,16 @@ softmmu_ss.add(files(
   'util.c',
 ))
 
-softmmu_ss.add(when: 'CONFIG_L2TPV3', if_true: files('l2tpv3.c'))
-softmmu_ss.add(when: ['CONFIG_SLIRP', slirp], if_true: files('slirp.c'))
-softmmu_ss.add(when: ['CONFIG_VDE', vde], if_true: files('vde.c'))
-softmmu_ss.add(when: 'CONFIG_NETMAP', if_true: files('netmap.c'))
+softmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c'))
+
+if have_l2tpv3
+  softmmu_ss.add(files('l2tpv3.c'))
+endif
+softmmu_ss.add(when: slirp, if_true: files('slirp.c'))
+softmmu_ss.add(when: vde, if_true: files('vde.c'))
+if have_netmap
+  softmmu_ss.add(files('netmap.c'))
+endif
 vhost_user_ss = ss.source_set()
 vhost_user_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('vhost-user.c'), if_false: files('vhost-user-stub.c'))
 softmmu_ss.add_all(when: 'CONFIG_VHOST_NET_USER', if_true: vhost_user_ss)