3 # Short script to do cross compilation with MXE on Linux
6 # (C) 2012 Underground Software
9 #echo "Cross compiling ${TARGET} for Win32..."
10 echo "Cross compiling ${TARGET} for Win64..."
11 export PATH=/opt/mxe/usr/bin:$PATH
13 #/opt/mxe/usr/i686-pc-mingw32/qt/bin/qmake
14 /opt/mxe/usr/bin/x86_64-w64-mingw32.static-qmake-qt4
16 #make CROSS=i686-pc-mingw32-
17 #rel=`svn info | grep Revision | cut -f 2 -d ' '`
18 rel=`git log -1 --pretty=format:%ci | cut -d ' ' -f 1 | tr -d -`
20 cd release && upx -9v ${TARGET}.exe && zip -9v ${TARGET}-${rel}.zip ${TARGET}.exe