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*26ec69f1SNicolas BonnefonQTVERSION=4.8.2 7*26ec69f1SNicolas BonnefonBOOSTDIR=$QTXDIR/boost_1_50_0 83597d419SNicolas Bonnefon 93597d419SNicolas Bonnefonmake clean 10*26ec69f1SNicolas Bonnefonif [ "$1" == "debug" ]; then 11*26ec69f1SNicolas Bonnefon echo "Building a debug version" 12*26ec69f1SNicolas Bonnefon qmake glogg.pro -spec win32-x-g++ -r CONFIG+="debug win32 rtti" BOOST_PATH=$BOOSTDIR 13*26ec69f1SNicolas Bonnefonelif [ -z "$VERSION" ]; then 1421a1b6dcSNicolas Bonnefon echo "Building default version" 15803db976SNicolas Bonnefon qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32 rtti" BOOST_PATH=$BOOSTDIR 1621a1b6dcSNicolas Bonnefonelse 1721a1b6dcSNicolas Bonnefon echo "Building version $VERSION" 18803db976SNicolas Bonnefon qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32 rtti" BOOST_PATH=$BOOSTDIR VERSION="$VERSION" 193597d419SNicolas Bonnefonfi 203597d419SNicolas Bonnefonmake -j3 21*26ec69f1SNicolas Bonnefoncp $QTXDIR/$QTVERSION/bin/{QtCore4,QtGui4}.dll release/ 22*26ec69f1SNicolas Bonnefoncp $QTXDIR/$QTVERSION/bin/{QtCored4,QtGuid4}.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