Mercurial > hg > vamp-aubio-plugins
comparison build_mingw64.sh @ 182:12061ea45c26
build_mingw32.sh: build tarball for mingw64
author | Paul Brossier <piem@piem.org> |
---|---|
date | Mon, 13 Feb 2017 18:44:16 +0100 |
parents | |
children | e82f4da325ae |
comparison
equal
deleted
inserted
replaced
181:06a5ea89982f | 182:12061ea45c26 |
---|---|
1 #! /bin/sh | |
2 | |
3 # cross compile vamp-aubio-plugins using mingw32 toolchain | |
4 | |
5 . $PWD/VERSION | |
6 VAMP_AUBIO_VERSION=$VAMP_AUBIO_MAJOR_VERSION.$VAMP_AUBIO_MINOR_VERSION.$VAMP_AUBIO_PATCH_VERSION$VAMP_AUBIO_VERSION_STATUS | |
7 | |
8 set -e | |
9 set -x | |
10 | |
11 if [ "$1" = 'dist' ] | |
12 then | |
13 rm -rf contrib/ | |
14 fi | |
15 | |
16 export CFLAGS="-Os" | |
17 #export CC="i586-mingw32msvc-gcc" | |
18 #export CXX="i586-mingw32msvc-g++" | |
19 export CC="x86_64-w64-mingw32-gcc" | |
20 export CXX="x86_64-w64-mingw32-g++" | |
21 export STRIP="x86_64-w64-mingw32-strip" | |
22 export WAFOPTS="--with-target-platform=win64 --disable-sndfile --disable-samplerate --disable-jack --disable-avcodec --notests" | |
23 | |
24 # get waf | |
25 ./scripts/get_waf.sh | |
26 | |
27 # fetch Vamp SDK | |
28 ./scripts/get_deps_mingw64.sh | |
29 | |
30 # fetch and build aubio | |
31 ./scripts/get_aubio.sh | |
32 | |
33 # configure and build plugin | |
34 ./waf configure | |
35 | |
36 ./waf build -v | |
37 | |
38 # system-wide installation | |
39 #./waf install --destdir=dist-win | |
40 | |
41 if [ "$1" = 'dist' ] | |
42 then | |
43 DESTDIR=vamp-aubio-plugins-$VAMP_AUBIO_VERSION-win64 | |
44 rm -rf $DESTDIR $DESTDIR.zip | |
45 mkdir $DESTDIR | |
46 cp -prv contrib/aubio*/README.md $DESTDIR/README.aubio.md | |
47 cp -prv README.md $DESTDIR | |
48 cp -prv build/vamp-aubio.dll $DESTDIR | |
49 $STRIP $DESTDIR/vamp-aubio.dll | |
50 cp -prv vamp-aubio.cat vamp-aubio.n3 $DESTDIR | |
51 zip -r $DESTDIR.zip $DESTDIR | |
52 fi |