.gitignore: added waf and contrib/
[vamp-aubio-plugins.git] / build_mingw32.sh
1 #! /bin/sh
2
3 # cross compile vamp-aubio-plugins using mingw32 toolchain
4
5 set -e
6 set -x
7
8 export CFLAGS="-Os"
9 #export CC="i586-mingw32msvc-gcc"
10 #export CXX="i586-mingw32msvc-g++"
11 export CC="i686-w64-mingw32-gcc"
12 export CXX="i686-w64-mingw32-g++"
13 export WAFOPTS="--with-target-platform=win32 --disable-sndfile --disable-samplerate --disable-jack --disable-avcodec --notests"
14
15 # get waf
16 ./scripts/get_waf.sh
17
18 # fetch Vamp SDK
19 ./scripts/get_deps_mingw32.sh
20
21 # fetch and build aubio
22 ./scripts/get_aubio.sh
23
24 # configure and build plugin
25 ./waf configure
26
27 ./waf build -v
28
29 # system-wide installation
30 # sudo ./waf install