diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-10-07 15:08:22 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-10-14 09:50:57 +0200 |
commit | 837b84b1c078bf3e909017ca11be7182a5df2ed0 (patch) | |
tree | 856fcdccf716735c50f3bdce97ecb6bc89da6d5c /net | |
parent | e17239993d0f55c6b67a0318f177ab1168817e01 (diff) | |
download | qemu-837b84b1c078bf3e909017ca11be7182a5df2ed0.zip qemu-837b84b1c078bf3e909017ca11be7182a5df2ed0.tar.gz qemu-837b84b1c078bf3e909017ca11be7182a5df2ed0.tar.bz2 |
configure, meson: move netmap detection to meson
Message-Id: <20211007130829.632254-12-pbonzini@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/meson.build | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/meson.build b/net/meson.build index 491144a..94383e7 100644 --- a/net/meson.build +++ b/net/meson.build @@ -21,7 +21,9 @@ softmmu_ss.add(when: 'CONFIG_TCG', if_true: files('filter-replay.c')) softmmu_ss.add(when: 'CONFIG_L2TPV3', if_true: files('l2tpv3.c')) softmmu_ss.add(when: slirp, if_true: files('slirp.c')) softmmu_ss.add(when: vde, if_true: files('vde.c')) -softmmu_ss.add(when: 'CONFIG_NETMAP', if_true: files('netmap.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) |