xref: /glogg/release-win32-x.sh (revision 3597d419f98197473a13d46c59f5e35ca347613a)
1*3597d419SNicolas Bonnefon#!/bin/bash
2*3597d419SNicolas Bonnefon
3*3597d419SNicolas Bonnefon# Build glogg for win32 using the cross-compiler
4*3597d419SNicolas Bonnefon
5*3597d419SNicolas BonnefonQTXDIR=$HOME/qt-x-win32
6*3597d419SNicolas Bonnefon
7*3597d419SNicolas Bonnefonmake clean
8*3597d419SNicolas Bonnefonif [ -z "$VERSION" ]; then
9*3597d419SNicolas Bonnefon    qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32" VERSION="$VERSION"
10*3597d419SNicolas Bonnefonelse
11*3597d419SNicolas Bonnefon    qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32"
12*3597d419SNicolas Bonnefonfi
13*3597d419SNicolas Bonnefonmake -j3
14*3597d419SNicolas Bonnefoncp $QTXDIR/qt_win/2010.02.1/qt/bin/{QtCore4,QtGui4}.dll release/
15*3597d419SNicolas Bonnefoncp $QTXDIR/qt_win/2010.02.1/mingw/bin/libgcc_s_dw2-1.dll release/
16*3597d419SNicolas Bonnefongunzip -c /usr/share/doc/mingw32-runtime/mingwm10.dll.gz >release/mingwm10.dll
17*3597d419SNicolas Bonnefonif [ -z "$VERSION" ]; then
18*3597d419SNicolas Bonnefon    VERSION=`git describe`;
19*3597d419SNicolas Bonnefonfi
20*3597d419SNicolas Bonnefonecho Generating installer for glogg-$VERSION
21*3597d419SNicolas Bonnefonwine $QTXDIR/NSIS/makensis -DVERSION=$VERSION glogg.nsi
22