summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-07 19:39:50 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-07 19:39:50 -0700
commit72362d09932426dad0c27553010ffac89d681d32 (patch)
treefb11d627d04c5a63d91fce098b29200d6b569710
parent4d8d0e339ea9de2b970d32a78376de41f4b69124 (diff)
downloadsubsurface-72362d09932426dad0c27553010ffac89d681d32.tar.gz
Build tools: allow debuggable cross builds for Windows
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rwxr-xr-xpackaging/windows/mingw-make.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/packaging/windows/mingw-make.sh b/packaging/windows/mingw-make.sh
index 30374a3e6..387620978 100755
--- a/packaging/windows/mingw-make.sh
+++ b/packaging/windows/mingw-make.sh
@@ -30,6 +30,22 @@ if [[ $1 == "Qt5" ]] ; then
LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api \
$BASEDIR/../../subsurface.pro
+elif [[ $1 == "Qt5debug" ]] ; 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 \
+ QMAKE_CFLAGS_RELEASE='$$QMAKE_CFLAGS_DEBUG -O0 -g' \
+ QMAKE_CXXFLAGS_RELEASE='$$QMAKE_CXXFLAGS_DEBUG -O0 -g' \
+ LIBDCDEVEL=../libdivecomputer \
+ LIBMARBLEDEVEL=../marble \
+ LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api \
+ V=1 \
+ $BASEDIR/../../subsurface.pro
+
else
mingw32-qmake-qt4 \