2013-02-16 15:53:53 -08:00
|
|
|
#!/bin/sh
|
2011-11-25 19:39:30 -08:00
|
|
|
#
|
|
|
|
# just a small shell script that is used to invoke make with the right
|
|
|
|
# parameters to cross compile a binary for Windows
|
|
|
|
#
|
2013-10-11 13:25:37 -07:00
|
|
|
# the paths work for the default mingw32 install on Fedora - adjust as
|
2011-11-25 19:39:30 -08:00
|
|
|
# necessary
|
|
|
|
|
2013-02-16 15:53:53 -08:00
|
|
|
# force recreation of the nsi file in order to get the correct version
|
|
|
|
# number
|
2013-10-11 13:25:37 -07:00
|
|
|
rm packaging/windows/subsurface.nsi > /dev/null 2>&1
|
2013-02-16 15:53:53 -08:00
|
|
|
|
2011-11-27 09:08:55 -08:00
|
|
|
export PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH
|
2013-10-11 13:25:37 -07:00
|
|
|
mingw32-qmake-qt4 CROSS_PATH=/usr/i686-w64-mingw32/sys-root/mingw
|
|
|
|
mingw32-make $@
|