diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-04-19 11:43:52 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-19 11:46:50 -0700 |
commit | 01a185979e66e31a316fb299e3934e6d15ff0353 (patch) | |
tree | 82f09218d277ac6c5930160f21ddf215eb7b2a5f /packaging | |
parent | 1b070de1aafc0a730ca561379cb3758c6538ed1a (diff) | |
download | subsurface-01a185979e66e31a316fb299e3934e6d15ff0353.tar.gz |
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 <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/windows/mingw-make.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 $@ |