]> git.tdb.fi Git - ext/subsurface.git/blobdiff - packaging/windows/mingw-make.sh
Update the Windows installer creation script
[ext/subsurface.git] / packaging / windows / mingw-make.sh
diff --git a/packaging/windows/mingw-make.sh b/packaging/windows/mingw-make.sh
new file mode 100755 (executable)
index 0000000..79e7ad5
--- /dev/null
@@ -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