Create a directory for EEPROMs if it doesn't already exist
[clinton/Virtual-Jaguar-Rx.git] / cross-compile
1 #!/bin/bash
2 #
3 # Short script to do cross compilation with MXE on Linux
4 #
5 # by James Hammons
6 # (C) 2012 Underground Software
7 #
8 #NOPE, doesn't work: PREFIX=i686-pc-mingw32.static
9 #rm makefile-qt
10
11 echo "Cross compiling for Win32..."
12 SUFFIX=win32
13 export PATH=/opt/mxe-32/usr/bin:$PATH
14 /opt/mxe-32/usr/bin/i686-w64-mingw32.static-qmake-qt5 -o makefile-qt
15 make CROSS=i686-w64-mingw32.static-
16
17 #echo "Cross compiling for Win64..."
18 #SUFFIX=win64
19 #export PATH=/opt/mxe/usr/bin:$PATH
20 #/opt/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt5 -o makefile-qt
21 #make CROSS=x86_64-w64-mingw32.static-
22
23 #rel=`svn info | grep Revision | cut -f 2 -d ' '`
24 rel=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -`
25 cd release && upx -9v virtualjaguar.exe && zip -9v vj-$rel-${SUFFIX}.zip virtualjaguar.exe
26