13597d419SNicolas Bonnefon#!/bin/bash 23597d419SNicolas Bonnefon 33597d419SNicolas Bonnefon# Build glogg for win32 using the cross-compiler 43597d419SNicolas Bonnefon 53597d419SNicolas BonnefonQTXDIR=$HOME/qt-x-win32 6*3089b1a1SNicolas 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 21*3089b1a1SNicolas Bonnefoncp $QTXDIR/$QTVERSION/lib/{QtCore4,QtGui4,QtNetwork4}.dll release/ 22*3089b1a1SNicolas Bonnefoncp $QTXDIR/$QTVERSION/lib/{QtCored4,QtGuid4,QtNetworkd4}.dll debug/ 233597d419SNicolas Bonnefonif [ -z "$VERSION" ]; then 243597d419SNicolas Bonnefon VERSION=`git describe`; 253597d419SNicolas Bonnefonfi 263597d419SNicolas Bonnefonecho Generating installer for glogg-$VERSION 273597d419SNicolas Bonnefonwine $QTXDIR/NSIS/makensis -DVERSION=$VERSION glogg.nsi 28