mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
17 lines
586 B
Bash
Executable file
17 lines
586 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# just a small shell script that is used to invoke make with the right
|
|
# parameters to cross compile a binary for Windows
|
|
#
|
|
# the paths work for the default mingw32 install on Fedora - adjust as
|
|
# necessary
|
|
|
|
# force recreation of the nsi file in order to get the correct version
|
|
# number
|
|
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 $BASEDIR/../../subsurface.pro
|
|
mingw32-make $@
|