From 561a2757d8c6c12f1b9d45a9e3ad40d0f6732a82 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 6 Jan 2024 16:41:38 +0100 Subject: [PATCH] [scripts] add build_meson --- scripts/build_meson | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 scripts/build_meson diff --git a/scripts/build_meson b/scripts/build_meson new file mode 100755 index 00000000..1f5e3213 --- /dev/null +++ b/scripts/build_meson @@ -0,0 +1,33 @@ +#! /bin/sh + +MESONOPTS="-j 20" #--verbose +AUBIO_BUILDDIR=$PWD/build-meson + +function cleanup () { + rm -rf $AUBIO_BUILDDIR +} + +cleanup + +trap cleanup SIGINT SIGTERM + +meson setup $AUBIO_BUILDDIR +pushd $AUBIO_BUILDDIR +meson compile $MESONOPTS + +echo --------------- +find src/lib*.dylib + +lipo -archs src/libaubio.dylib + +dyld_info -dependents src/libaubio.dylib +dyld_info -dependents examples/aubioonset +echo --------------- + +meson test $MESONOPTS + +popd + +echo built in $AUBIO_BUILDDIR + +#cleanup -- 2.11.0