From 01a185979e66e31a316fb299e3934e6d15ff0353 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 19 Apr 2014 11:43:52 -0700 Subject: Out of tree cross build for Windows This way I can have a different directory from where I build Windows binary without interfering with my native build in the source directory. Signed-off-by: Dirk Hohndel --- packaging/windows/mingw-make.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'packaging') diff --git a/packaging/windows/mingw-make.sh b/packaging/windows/mingw-make.sh index 7ca88ea23..794a8521a 100755 --- a/packaging/windows/mingw-make.sh +++ b/packaging/windows/mingw-make.sh @@ -8,8 +8,10 @@ # force recreation of the nsi file in order to get the correct version # number -rm packaging/windows/subsurface.nsi > /dev/null 2>&1 +BASEDIR=$(dirname $0) +rm $BASEDIR/subsurface.nsi > /dev/null 2>&1 export PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH -mingw32-qmake-qt4 CROSS_PATH=/usr/i686-w64-mingw32/sys-root/mingw LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api +mingw32-qmake-qt4 CROSS_PATH=/usr/i686-w64-mingw32/sys-root/mingw \ + LIBGIT2DEVEL=../libgit2 CONFIG+=libgit21-api $BASEDIR/../../subsurface.pro mingw32-make $@ -- cgit v1.2.3-70-g09d2