mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
cc22a98766
commit
049b6c0426
2 changed files with 27 additions and 24 deletions
|
|
@ -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 $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue