xref: /glogg/release-win32-x.sh (revision 803db976a3c3d04b7f91bf42fc0e6b93abf2065e)
13597d419SNicolas Bonnefon#!/bin/bash
23597d419SNicolas Bonnefon
33597d419SNicolas Bonnefon# Build glogg for win32 using the cross-compiler
43597d419SNicolas Bonnefon
53597d419SNicolas BonnefonQTXDIR=$HOME/qt-x-win32
62f3d4448SNicolas BonnefonBOOSTDIR=$HOME/boost_1_43_0
73597d419SNicolas Bonnefon
83597d419SNicolas Bonnefonmake clean
93597d419SNicolas Bonnefonif [ -z "$VERSION" ]; then
1021a1b6dcSNicolas Bonnefon    echo "Building default version"
11*803db976SNicolas Bonnefon    qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32 rtti" BOOST_PATH=$BOOSTDIR
1221a1b6dcSNicolas Bonnefonelse
1321a1b6dcSNicolas Bonnefon    echo "Building version $VERSION"
14*803db976SNicolas Bonnefon    qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32 rtti" BOOST_PATH=$BOOSTDIR VERSION="$VERSION"
153597d419SNicolas Bonnefonfi
163597d419SNicolas Bonnefonmake -j3
173597d419SNicolas Bonnefoncp $QTXDIR/qt_win/2010.02.1/qt/bin/{QtCore4,QtGui4}.dll release/
183597d419SNicolas Bonnefoncp $QTXDIR/qt_win/2010.02.1/mingw/bin/libgcc_s_dw2-1.dll release/
193597d419SNicolas Bonnefongunzip -c /usr/share/doc/mingw32-runtime/mingwm10.dll.gz >release/mingwm10.dll
203597d419SNicolas Bonnefonif [ -z "$VERSION" ]; then
213597d419SNicolas Bonnefon    VERSION=`git describe`;
223597d419SNicolas Bonnefonfi
233597d419SNicolas Bonnefonecho Generating installer for glogg-$VERSION
243597d419SNicolas Bonnefonwine $QTXDIR/NSIS/makensis -DVERSION=$VERSION glogg.nsi
25