diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-06 09:15:36 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-06 09:18:13 -0700 |
commit | 049b6c0426cdcadf566beb0c6286e4ae9595bc95 (patch) | |
tree | 389b8745121534fbf52917397e950c277c322c7e /packaging/windows/mingw-make.sh | |
parent | cc22a9876647e2393756164eed25bd09354411cb (diff) | |
download | subsurface-049b6c0426cdcadf566beb0c6286e4ae9595bc95.tar.gz |
Prepare for Qt4 / Qt5 cross builds of Windows binaries
Admittedly I believe I'm the only one using this script (and related .nsi
file), it still seems to make sense to keep it up to date in the
repository.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/windows/mingw-make.sh')
-rwxr-xr-x | packaging/windows/mingw-make.sh | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/packaging/windows/mingw-make.sh b/packaging/windows/mingw-make.sh index 2348aa21b..30374a3e6 100755 --- a/packaging/windows/mingw-make.sh +++ b/packaging/windows/mingw-make.sh @@ -16,10 +16,28 @@ rm $BASEDIR/../../ssrf-version.h > /dev/null 2>&1 export PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH export objdump=mingw-objdump -mingw32-qmake-qt4 \ - CROSS_PATH=/usr/i686-w64-mingw32/sys-root/mingw \ - LIBDCDEVEL=../libdivecomputer \ - LIBMARBLEDEVEL=../marble \ - LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api \ - $BASEDIR/../../subsurface.pro + +if [[ $1 == "Qt5" ]] ; then + shift + mingw32-qmake-qt5 \ + CROSS_PATH=/usr/i686-w64-mingw32/sys-root/mingw \ + QMAKE_LRELEASE=/usr/i686-w64-mingw32/bin/qt5/lrelease \ + QMAKE_MOC=/usr/i686-w64-mingw32/bin/qt5/moc \ + QMAKE_UIC=/usr/i686-w64-mingw32/bin/qt5/uic \ + QMAKE_RCC=/usr/i686-w64-mingw32/bin/qt5/rcc \ + LIBDCDEVEL=../libdivecomputer \ + LIBMARBLEDEVEL=../marble \ + LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api \ + $BASEDIR/../../subsurface.pro + +else + + mingw32-qmake-qt4 \ + CROSS_PATH=/usr/i686-w64-mingw32/sys-root/mingw \ + LIBDCDEVEL=../libdivecomputer \ + LIBMARBLEDEVEL=../marble \ + LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api \ + $BASEDIR/../../subsurface.pro +fi + mingw32-make $@ |