ref: 6709422b56ab96ecc4f1dcf9c1bb3c06d04d4ade
parent: 5b44a2660c89e8c114335c78feacc8b578db8e39
author: Paul Brossier <piem@piem.org>
date: Fri Apr 7 11:44:31 EDT 2017
scripts/build_mingw: fix dll location, generate def file
--- a/scripts/build_mingw
+++ b/scripts/build_mingw
@@ -78,6 +78,12 @@
get_cflags
CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
./waf distclean configure build install $WAFOPTS_TGT --testcmd='echo %s'
+ # fix dll location (see https://github.com/waf-project/waf/issues/1860)
+ mv $DESTDIR/lib/libaubio-5.dll $DESTDIR/bin
+ # generate def file (see https://github.com/aubio/aubio/issues/97)
+ ( echo -e "EXPORTS"; nm $DESTDIR/bin/libaubio-5.dll | grep T\ _ | \
+ egrep "(aubio|fvec|cvec|lvec|fmat)" | cut -d _ -f 2- ) \
+ > $DESTDIR/bin/libaubio-5.def
zip -r $DESTDIR.zip `basename $DESTDIR`
rm -rf $DESTDIR
sha256sum $DESTDIR.zip > $DESTDIR.zip.sha256