summaryrefslogtreecommitdiff
path: root/data/macros.meson
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-02-10 15:16:11 +0100
committerEli Schwartz <eschwartz93@gmail.com>2024-02-16 07:43:16 -0500
commit163d703a18b7d2766bd4db670c390ae59a4cc274 (patch)
treed560861a125e06a36abd4bb11408da9319c71cf1 /data/macros.meson
parentabdb3afd7302147fac27551ada8cb91173194133 (diff)
downloadmeson-163d703a18b7d2766bd4db670c390ae59a4cc274.tar.gz
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.
Diffstat (limited to 'data/macros.meson')
-rw-r--r--data/macros.meson4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/macros.meson b/data/macros.meson
index f5e3a15fd..dcac9d985 100644
--- a/data/macros.meson
+++ b/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 \