INSTALL.mingw32: add script to cross compile with mingw32
[vamp-aubio-plugins.git] / INSTALL.mingw32
1 #! /bin/sh
2
3 # cross compile vamp-aubio-plugins using mingw32 toolchain
4
5 # get Vamp SDK
6 curl -O https://code.soundsoftware.ac.uk/attachments/download/690/vamp-plugin-sdk-2.5.tar.gz
7 tar xf vamp-plugin-sdk-2.5.tar.gz
8
9 # get Vamp windows binaries
10 curl -O https://code.soundsoftware.ac.uk/attachments/download/694/vamp-plugin-sdk-2.5-binaries-win32-mingw.zip
11 unzip -x vamp-plugin-sdk-2.5-binaries-win32-mingw.zip
12
13 # build aubio
14 git clone git://git.aubio.org/git/aubio/ aubio-mingw32
15 pushd aubio-mingw32
16 git co develop
17 git pull
18 CFLAGS="-Os" CC=i586-mingw32msvc-gcc ./waf distclean configure build install \
19   --destdir=../aubio-dist-mingw32 --testcmd="echo %s" \
20   --with-target-platform=win32 --disable-avcodec --disable-samplerate \
21   --disable-jack --disable-sndfile
22 popd
23
24 # build vamp-aubio-plugins
25
26 git clone git://git.aubio.org/git/vamp-aubio-plugins/ vamp-aubio-plugins-mingw32
27 pushd vamp-aubio-plugins-mingw32
28
29 git co develop
30 git pull
31
32 make -f Makefile.mingw32 clean all