Mercurial > hg > vamp-aubio-plugins
comparison build_mingw32.sh @ 181:06a5ea89982f
build_mingw32.sh: build tarball for mingw32
author | Paul Brossier <piem@piem.org> |
---|---|
date | Mon, 13 Feb 2017 18:44:07 +0100 |
parents | 5e944736a8ed |
children | e82f4da325ae |
comparison
equal
deleted
inserted
replaced
180:0e996245fb70 | 181:06a5ea89982f |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 | 2 |
3 # cross compile vamp-aubio-plugins using mingw32 toolchain | 3 # cross compile vamp-aubio-plugins using mingw32 toolchain |
4 | 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 | |
5 set -e | 8 set -e |
6 set -x | 9 set -x |
10 | |
11 if [ "$1" = 'dist' ] | |
12 then | |
13 rm -rf contrib/ | |
14 fi | |
7 | 15 |
8 export CFLAGS="-Os" | 16 export CFLAGS="-Os" |
9 #export CC="i586-mingw32msvc-gcc" | 17 #export CC="i586-mingw32msvc-gcc" |
10 #export CXX="i586-mingw32msvc-g++" | 18 #export CXX="i586-mingw32msvc-g++" |
11 export CC="i686-w64-mingw32-gcc" | 19 export CC="i686-w64-mingw32-gcc" |
12 export CXX="i686-w64-mingw32-g++" | 20 export CXX="i686-w64-mingw32-g++" |
21 export STRIP="i686-w64-mingw32-strip" | |
13 export WAFOPTS="--with-target-platform=win32 --disable-sndfile --disable-samplerate --disable-jack --disable-avcodec --notests" | 22 export WAFOPTS="--with-target-platform=win32 --disable-sndfile --disable-samplerate --disable-jack --disable-avcodec --notests" |
14 | 23 |
15 # get waf | 24 # get waf |
16 ./scripts/get_waf.sh | 25 ./scripts/get_waf.sh |
17 | 26 |
25 ./waf configure | 34 ./waf configure |
26 | 35 |
27 ./waf build -v | 36 ./waf build -v |
28 | 37 |
29 # system-wide installation | 38 # system-wide installation |
30 # sudo ./waf install | 39 #./waf install --destdir=dist-win |
40 | |
41 if [ "$1" = 'dist' ] | |
42 then | |
43 DESTDIR=vamp-aubio-plugins-$VAMP_AUBIO_VERSION-win32 | |
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 |