aboutsummaryrefslogtreecommitdiffstats
path: root/config-mingw
diff options
context:
space:
mode:
authorJay Berkenbilt <ejb@ql.org>2017-08-21 14:39:41 +0200
committerJay Berkenbilt <ejb@ql.org>2017-08-21 23:44:22 +0200
commit389396dbbf83f3df62a62601c5963d12fc1143f6 (patch)
tree552a671d4f917af2123bc977a9c026962d36969c /config-mingw
parentaf9e36b5070ebd5f6f747348170791d50a765403 (diff)
downloadqpdf-389396dbbf83f3df62a62601c5963d12fc1143f6.tar.zst
Support Windows builds with MSYS2
Replace the old msys, mingw-w64, ActiveState perl setup with MSYS2. This greatly simplifies the Windows build. This was facilitated by the need to incorporate JPEG.
Diffstat (limited to 'config-mingw')
-rwxr-xr-xconfig-mingw9
1 files changed, 9 insertions, 0 deletions
diff --git a/config-mingw b/config-mingw
new file mode 100755
index 00000000..81190938
--- /dev/null
+++ b/config-mingw
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+set -x
+if echo $PATH | grep -q /mingw64; then
+ wordsize=64
+else
+ wordsize=32
+fi
+./configure --disable-test-compare-images --enable-external-libs --enable-werror --with-windows-wordsize=$wordsize --with-buildrules=mingw ${1+"$@"}