igvm: use idiomatic meson conditional for IGVM build files
Replace the explicit igvm.found() check with system_ss.add(when:, if_true:), matching the pattern used by all other optional backends. Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Luigi Leonardi <leonardi@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Message-ID: <20260626-microvm_device_tree-v6-2-9cd13cf057e2@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Luigi Leonardi committed
Jun 26, 2026 at 12:04 UTC
85db68ba499a3463dbf1d3fdcdf41eb6ffcab00f
1 file changed
+2
-5
backends/meson.build
+2
-5
@@ -34,11 +34,8 @@ if have_vhost_user_crypto
34
endif
35
system_ss.add(when: gio, if_true: files('dbus-vmstate.c'))
36
system_ss.add(when: 'CONFIG_SGX', if_true: files('hostmem-epc.c'))
37
-if igvm.found()
38
- system_ss.add(igvm)
39
- system_ss.add(files('igvm-cfg.c'), igvm)
40
- system_ss.add(files('igvm.c'), igvm)
41
-endif
37
+
38
+system_ss.add(when: igvm, if_true: [files('igvm-cfg.c', 'igvm.c')])
39
40
system_ss.add(when: 'CONFIG_SPDM_SOCKET', if_true: files('spdm-socket.c'))
41