summaryrefslogtreecommitdiffstats
path: root/packaging/windows/mingw-make.sh
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-25 19:39:30 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-25 19:48:09 -0800
commita9d1f318b5d1974b882b0cebc9db291f5c0d1c62 (patch)
tree047c24d305ed8670a5cdda05c1ac04f005af5baa /packaging/windows/mingw-make.sh
parent042c77c0fc6969d2d969fb68f1db51d33364d034 (diff)
downloadsubsurface-a9d1f318b5d1974b882b0cebc9db291f5c0d1c62.tar.gz
Update the Windows installer creation script
This now works with a straight out of the box MinGW install on OpenSUSE. A simple shell script that shows how to invoke the cross build is included. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging/windows/mingw-make.sh')
-rwxr-xr-xpackaging/windows/mingw-make.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/packaging/windows/mingw-make.sh b/packaging/windows/mingw-make.sh
new file mode 100755
index 000000000..79e7ad5ea
--- /dev/null
+++ b/packaging/windows/mingw-make.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+#
+# 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
+
+make CC=i686-w64-mingw32-gcc \
+ PKGCONFIG=i686-w64-mingw32-pkg-config \
+ PKG_CONFIG_PATH=/usr/i686-w64-mingw32/sys-root/i686-w64-mingw32/lib/pkgconfig/ \
+ XML2CONFIG=/usr/i686-w64-mingw32/sys-root/mingw/bin/xml2-config NAME=subsurface.exe