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