INSTALL.mingw32: add script to cross compile with mingw32
authorPaul Brossier <piem@piem.org>
Sat, 31 Jan 2015 13:09:42 +0000 (14:09 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 31 Jan 2015 13:09:42 +0000 (14:09 +0100)
INSTALL.mingw32 [new file with mode: 0644]

diff --git a/INSTALL.mingw32 b/INSTALL.mingw32
new file mode 100644 (file)
index 0000000..c0e5719
--- /dev/null
@@ -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