2013-02-16 23:53:53 +00:00
|
|
|
#!/bin/sh
|
2011-11-26 03:39:30 +00:00
|
|
|
#
|
|
|
|
# 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 OpenSUSE - adjust as
|
|
|
|
# necessary
|
|
|
|
|
2013-02-16 23:53:53 +00:00
|
|
|
# force recreation of the nsi file in order to get the correct version
|
|
|
|
# number
|
|
|
|
rm packaging/windows/subsurface.nsi
|
|
|
|
|
2011-11-27 17:08:55 +00:00
|
|
|
export PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH
|
2013-04-09 14:01:20 +00:00
|
|
|
make CC=i686-w64-mingw32-gcc CXX=i686-w64-mingw32-g++ \
|
2011-11-26 03:39:30 +00:00
|
|
|
PKGCONFIG=i686-w64-mingw32-pkg-config \
|
2012-10-16 11:04:37 +00:00
|
|
|
PKG_CONFIG_PATH=/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/ \
|
2012-10-17 06:55:35 +00:00
|
|
|
CROSS_PATH=/usr/i686-w64-mingw32/sys-root/mingw/ \
|
2011-11-27 17:08:55 +00:00
|
|
|
XSLTCONFIG=/usr/i686-w64-mingw32/sys-root/mingw/bin/xslt-config \
|
2013-01-24 23:58:35 +00:00
|
|
|
XML2CONFIG=/usr/i686-w64-mingw32/sys-root/mingw/bin/xml2-config NAME=subsurface.exe install-cross-windows $@
|