On 5/25/21 12:46 PM, Philippe Mathieu-Daudé wrote: > Instead of guessing the modules built, list them. Example: > > Modules > audio : spice > block : curl dmg-bz2 gluster iscsi rbd ssh > chardev : spice > hw-display : > hw-s390x : virtio-gpu-ccw > hw-usb : redirect smartcard > ui : egl-headless gtk opengl spice-app > spice-core > > Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com> > --- > meson.build | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/meson.build b/meson.build > index 5ca1bd36292..54b97ace207 100644 > --- a/meson.build > +++ b/meson.build > @@ -2738,6 +2738,17 @@ > summary_info += {'FUSE lseek': fuse_lseek.found()} > summary(summary_info, bool_yn: true, section: 'Dependencies') > > +# Modules > +summary_info = {} > +foreach d, list : modules > + k = [] > + foreach m, _ : list > + k += [m]
Clearer renaming k -> mods, m -> mod and d -> k. > + endforeach > + summary_info += {d: ' '.join(k)} > +endforeach > +summary(summary_info, bool_yn: true, section: 'Modules') > + > if not supported_cpus.contains(cpu) > message() > warning('SUPPORT FOR THIS HOST CPU WILL GO AWAY IN FUTURE RELEASES!') >