xref: /glogg/release-win32-x.sh (revision 803db976a3c3d04b7f91bf42fc0e6b93abf2065e)
1#!/bin/bash
2
3# Build glogg for win32 using the cross-compiler
4
5QTXDIR=$HOME/qt-x-win32
6BOOSTDIR=$HOME/boost_1_43_0
7
8make clean
9if [ -z "$VERSION" ]; then
10    echo "Building default version"
11    qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32 rtti" BOOST_PATH=$BOOSTDIR
12else
13    echo "Building version $VERSION"
14    qmake glogg.pro -spec win32-x-g++ -r CONFIG+="release win32 rtti" BOOST_PATH=$BOOSTDIR VERSION="$VERSION"
15fi
16make -j3
17cp $QTXDIR/qt_win/2010.02.1/qt/bin/{QtCore4,QtGui4}.dll release/
18cp $QTXDIR/qt_win/2010.02.1/mingw/bin/libgcc_s_dw2-1.dll release/
19gunzip -c /usr/share/doc/mingw32-runtime/mingwm10.dll.gz >release/mingwm10.dll
20if [ -z "$VERSION" ]; then
21    VERSION=`git describe`;
22fi
23echo Generating installer for glogg-$VERSION
24wine $QTXDIR/NSIS/makensis -DVERSION=$VERSION glogg.nsi
25