macros: Allow disabling verbose mode

This allows using "--undefine __meson_verbose" to disable the verbose
mode. This is useful when running rpmbuild in an interactive terminal
and you don't want to be flooded with compilation outputs.

We also add --quiet to the meson install macro if __meson_verbose is
undefined to reduce the output generated by meson install.

The default output stays the same, the output is only affected if
__meson_verbose is explicitly undefined.
pull/12871/head
Daan De Meyer 10 months ago committed by Eli Schwartz
parent abdb3afd73
commit 163d703a18
  1. 4
      data/macros.meson

@ -1,6 +1,7 @@
%__meson %{_bindir}/meson
%__meson_wrap_mode nodownload
%__meson_auto_features enabled
%__meson_verbose 1
%meson \
%set_build_flags \
@ -28,13 +29,14 @@
%{shrink:%{__meson} compile \
-C %{_vpath_builddir} \
-j %{_smp_build_ncpus} \
--verbose \
%{?__meson_verbose:--verbose} \
%{nil}}
%meson_install \
%{shrink:DESTDIR=%{buildroot} %{__meson} install \
-C %{_vpath_builddir} \
--no-rebuild \
%{!?__meson_verbose:--quiet} \
%{nil}}
%meson_test \

Loading…
Cancel
Save