tDocument our MinGW Windows cross-compile setup - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 9041057b524e7631a4095a3ad36f12bd0c337e81
(DIR) parent 73975e1bfcc0c320383ede952ad9ae5dff79612e
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Wed, 11 Nov 2020 12:32:02 -0800
Document our MinGW Windows cross-compile setup
Diffstat:
M win32/README.md | 22 ++++++++++++++++++++++
A win32/mingw/Dockerfile | 3 +++
2 files changed, 25 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/win32/README.md b/win32/README.md
t@@ -1,3 +1,25 @@
+## Building dopewars on Windows
+
+(This is experimental.)
+
+dopewars is built for Windows via cross-compilation on Linux using the
+MinGW tools. See the `mingw` subdirectory for a suitable `Dockerfile` to set up
+a [Docker](https://www.docker.com/) or [Podman](https://podman.io/)
+compilation environment.
+
+Once in the environment, build dopewars for 64-bit Windows with
+
+ ./configure --host=x86_64-w64-mingw32 --enable-nativewin32 && make
+
+For 32-bit Windows, use
+
+ ./configure --host=i686-w64-mingw32 --enable-nativewin32 && make
+
+In order for curl connections to the metaserver to work, copy
+`/etc/pki/tls/certs/ca-bundle.crt` from the Docker/Podman environment to
+the same directory as `dopewars.exe`.
+
+
## Windows installer
This directory contains the code for a simple Windows install/uninstall
(DIR) diff --git a/win32/mingw/Dockerfile b/win32/mingw/Dockerfile
t@@ -0,0 +1,3 @@
+FROM fedora:33
+MAINTAINER Ben Webb <benwebb@users.sf.net>
+RUN echo "zchunk=0" >> /etc/dnf/dnf.conf && dnf -y install mingw64-curl mingw64-glib2 mingw64-pkg-config mingw32-curl mingw32-glib2 mingw32-pkg-config automake autoconf which git make gettext diffutils mingw32-nsis