common/build-style/meson: use meson test/install instead of ninja

per eschwartz's advice
This commit is contained in:
classabbyamp 2024-08-08 23:08:36 -04:00 committed by classabbyamp
parent 3efc1f232b
commit be2c8a440e
1 changed files with 4 additions and 3 deletions

View File

@ -51,11 +51,12 @@ do_build() {
}
do_check() {
: ${make_cmd:=ninja}
: ${make_cmd:=meson}
: ${make_check_target:=test}
: ${meson_builddir:=build}
${make_check_pre} ${make_cmd} -C ${meson_builddir} ${makejobs} ${make_check_args} ${make_check_target}
export PYTHONUNBUFFERED=1
${make_check_pre} ${make_cmd} ${make_check_target} -C ${meson_builddir} ${makejobs} ${make_check_args}
}
do_install() {
@ -63,5 +64,5 @@ do_install() {
: ${make_install_target:=install}
: ${meson_builddir:=build}
DESTDIR=${DESTDIR} ${make_cmd} -C ${meson_builddir} ${make_install_args} ${make_install_target}
env PYTHONUNBUFFERED=1 DESTDIR=${DESTDIR} ${make_cmd} -C ${meson_builddir} ${make_install_args} ${make_install_target}
}