From: Paul Brossier Date: Sat, 6 Jan 2024 15:41:38 +0000 (+0100) Subject: [scripts] add build_meson X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=561a2757d8c6c12f1b9d45a9e3ad40d0f6732a82;p=aubio.git [scripts] add 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