summaryrefslogtreecommitdiffstats
path: root/packaging/windows/mingw-make.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/windows/mingw-make.sh')
-rwxr-xr-xpackaging/windows/mingw-make.sh30
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 $@