aboutsummaryrefslogtreecommitdiff
path: root/data/macros.meson
diff options
context:
space:
mode:
Diffstat (limited to 'data/macros.meson')
-rw-r--r--data/macros.meson25
1 files changed, 13 insertions, 12 deletions
diff --git a/data/macros.meson b/data/macros.meson
index c5b90de..cc4953c 100644
--- a/data/macros.meson
+++ b/data/macros.meson
@@ -2,12 +2,6 @@
%__meson_wrap_mode nodownload
%__meson_auto_features enabled
-%_smp_mesonflags %([ -z "$MESON_BUILD_NCPUS" ] \\\
- && MESON_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
- ncpus_max=%{?_smp_ncpus_max}; \\\
- if [ -n "$ncpus_max" ] && [ "$ncpus_max" -gt 0 ] && [ "$MESON_BUILD_NCPUS" -gt "$ncpus_max" ]; then MESON_BUILD_NCPUS="$ncpus_max"; fi; \\\
- if [ "$MESON_BUILD_NCPUS" -gt 1 ]; then echo "--num-processes $MESON_BUILD_NCPUS"; fi)
-
%meson \
%set_build_flags \
%{shrink:%{__meson} \
@@ -28,17 +22,24 @@
--wrap-mode=%{__meson_wrap_mode} \
--auto-features=%{__meson_auto_features} \
%{_vpath_srcdir} %{_vpath_builddir} \
- %{nil}}
+ %{nil}}
%meson_build \
- %ninja_build -C %{_vpath_builddir}
+ %{shrink:%{__meson} compile \
+ -C %{_vpath_builddir} \
+ -j %{_smp_build_ncpus} \
+ --verbose \
+ %{nil}}
%meson_install \
- %ninja_install -C %{_vpath_builddir}
+ %{shrink:DESTDIR=%{buildroot} %{__meson} install \
+ -C %{_vpath_builddir} \
+ --no-rebuild \
+ %{nil}}
%meson_test \
- %{shrink: %{__meson} test \
+ %{shrink:%{__meson} test \
-C %{_vpath_builddir} \
- %{?_smp_mesonflags} \
+ --num-processes %{_smp_build_ncpus} \
--print-errorlogs \
- %{nil}}
+ %{nil}}