From: Paul Brossier Date: Fri, 7 Apr 2017 13:44:31 +0000 (+0200) Subject: scripts/build_mingw: fix dll location, generate def file X-Git-Tag: 0.4.5~9 X-Git-Url: https://git.aubio.org/?a=commitdiff_plain;h=6709422b56ab96ecc4f1dcf9c1bb3c06d04d4ade;p=aubio.git scripts/build_mingw: fix dll location, generate def file --- diff --git a/scripts/build_mingw b/scripts/build_mingw index 02eb2ab7..b1f2d57c 100755 --- a/scripts/build_mingw +++ b/scripts/build_mingw @@ -78,6 +78,12 @@ function build_mingw() { 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