From 3a06bb37d4b23b15d453da031ed5d7eb56bc65b9 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 8 Apr 2015 14:11:10 -0700 Subject: [PATCH] Update build script to cross build Windows using mxe The MinGW based script is still there for reference, but that's no longer how I build the Windows binaries. Signed-off-by: Dirk Hohndel --- packaging/windows/mxe-based-build.sh | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/packaging/windows/mxe-based-build.sh b/packaging/windows/mxe-based-build.sh index 0eb634a98..d79242118 100755 --- a/packaging/windows/mxe-based-build.sh +++ b/packaging/windows/mxe-based-build.sh @@ -148,16 +148,15 @@ if [ ! -d staging ] ; then cd ../.. fi -export objdump=$BASEDIR/mxe/usr/bin/i686-w64-mingw32.shared-objdump +cmake -DCMAKE_TOOLCHAIN_FILE=$BASEDIR/mxe/usr/i686-w64-mingw32.shared/share/cmake/mxe-conf.cmake \ + -DCMAKE_PREFIX_PATH=$BASEDIR/mxe/usr/i686-w64-mingw32.shared/qt5 \ + -DCMAKE_BUILD_TYPE=Release \ + -DLIBDCDEVEL=$BUILDDIR/libdivecomputer \ + -DLIBGIT2DEVEL=$BUILDDIR/libgit2 \ + -DLIBMARBLEDEVEL=$BUILDDIR/marble \ + -DLRELEASE=$BASEDIR/mxe/usr/i686-w64-mingw32.shared/qt5/bin/lrelease \ + -DQT_TRANSLATION_DIR=$BASEDIR/mxe/usr/i686-w64-mingw32.shared/qt5/translations \ + -DMAKENSIS=i686-w64-mingw32.shared-makensis \ + $BASEDIR/../subsurface -i686-w64-mingw32.shared-qmake-qt5 \ - LIBMARBLEDEVEL=../marble \ - LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api \ - LIBDCDEVEL=../libdivecomputer \ - QMAKE_LRELEASE=$BASEDIR/mxe/usr/i686-w64-mingw32.shared/qt5/bin/lrelease \ - SPECIAL_MARBLE_PREFIX=1 \ - MAKENSIS=i686-w64-mingw32.shared-makensis \ - $BASEDIR/../subsurface/subsurface.pro - - -make -j12 $@ +make -j12 VERBOSE=1 $@