[scripts] add build_meson
authorPaul Brossier <piem@piem.org>
Sat, 6 Jan 2024 15:41:38 +0000 (16:41 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 15 Nov 2025 10:07:54 +0000 (11:07 +0100)
scripts/build_meson [new file with mode: 0755]

diff --git a/scripts/build_meson b/scripts/build_meson
new file mode 100755 (executable)
index 0000000..1f5e321
--- /dev/null
@@ -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