13597d419SNicolas Bonnefon#!/bin/bash 23597d419SNicolas Bonnefon 33597d419SNicolas Bonnefon# Build glogg for win32 using the cross-compiler 43597d419SNicolas Bonnefon 53597d419SNicolas BonnefonQTXDIR=$HOME/qt-x-win32 63089b1a1SNicolas BonnefonQTVERSION=4.8.6-32 726ec69f1SNicolas BonnefonBOOSTDIR=$QTXDIR/boost_1_50_0 83597d419SNicolas Bonnefon 93597d419SNicolas Bonnefonmake clean 1026ec69f1SNicolas Bonnefonif [ "$1" == "debug" ]; then 1126ec69f1SNicolas Bonnefon echo "Building a debug version" 12c889e351SNicolas Bonnefon qmake-qt4 glogg.pro -spec win32-x-g++ -r CONFIG+="debug win32 rtti no-dbus version_checker" BOOST_PATH=$BOOSTDIR 1326ec69f1SNicolas Bonnefonelif [ -z "$VERSION" ]; then 1421a1b6dcSNicolas Bonnefon echo "Building default version" 15c889e351SNicolas Bonnefon qmake-qt4 glogg.pro -spec win32-x-g++ -r CONFIG+="release win32 rtti no-dbus version_checker" BOOST_PATH=$BOOSTDIR 1621a1b6dcSNicolas Bonnefonelse 1721a1b6dcSNicolas Bonnefon echo "Building version $VERSION" 18c889e351SNicolas Bonnefon qmake-qt4 glogg.pro -spec win32-x-g++ -r CONFIG+="release win32 rtti no-dbus version_checker" BOOST_PATH=$BOOSTDIR VERSION="$VERSION" 193597d419SNicolas Bonnefonfi 203597d419SNicolas Bonnefonmake -j3 213089b1a1SNicolas Bonnefoncp $QTXDIR/$QTVERSION/lib/{QtCore4,QtGui4,QtNetwork4}.dll release/ 223089b1a1SNicolas Bonnefoncp $QTXDIR/$QTVERSION/lib/{QtCored4,QtGuid4,QtNetworkd4}.dll debug/ 23*9ba963cbSNicolas Bonnefoncp /usr/i686-w64-mingw32/lib/libwinpthread-1.dll release/ 243597d419SNicolas Bonnefonif [ -z "$VERSION" ]; then 253597d419SNicolas Bonnefon VERSION=`git describe`; 263597d419SNicolas Bonnefonfi 273597d419SNicolas Bonnefonecho Generating installer for glogg-$VERSION 283597d419SNicolas Bonnefonwine $QTXDIR/NSIS/makensis -DVERSION=$VERSION glogg.nsi 29