changeset 99:6bc8b9656399

INSTALL.mingw32: add script to cross compile with mingw32
author Paul Brossier <piem@piem.org>
date Sat, 31 Jan 2015 14:09:42 +0100
parents fbd083f2428e
children b5ef15273f71
files INSTALL.mingw32
diffstat 1 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/INSTALL.mingw32	Sat Jan 31 14:09:42 2015 +0100
@@ -0,0 +1,32 @@
+#! /bin/sh
+
+# cross compile vamp-aubio-plugins using mingw32 toolchain
+
+# get Vamp SDK
+curl -O https://code.soundsoftware.ac.uk/attachments/download/690/vamp-plugin-sdk-2.5.tar.gz
+tar xf vamp-plugin-sdk-2.5.tar.gz
+
+# get Vamp windows binaries
+curl -O https://code.soundsoftware.ac.uk/attachments/download/694/vamp-plugin-sdk-2.5-binaries-win32-mingw.zip
+unzip -x vamp-plugin-sdk-2.5-binaries-win32-mingw.zip
+
+# build aubio
+git clone git://git.aubio.org/git/aubio/ aubio-mingw32
+pushd aubio-mingw32
+git co develop
+git pull
+CFLAGS="-Os" CC=i586-mingw32msvc-gcc ./waf distclean configure build install \
+  --destdir=../aubio-dist-mingw32 --testcmd="echo %s" \
+  --with-target-platform=win32 --disable-avcodec --disable-samplerate \
+  --disable-jack --disable-sndfile
+popd
+
+# build vamp-aubio-plugins
+
+git clone git://git.aubio.org/git/vamp-aubio-plugins/ vamp-aubio-plugins-mingw32
+pushd vamp-aubio-plugins-mingw32
+
+git co develop
+git pull
+
+make -f Makefile.mingw32 clean all