2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-10-31 19:02:30 +00:00
qpdf/config-msvc
2017-07-26 06:24:07 -04:00

15 lines
494 B
Bash
Executable File

#!/bin/sh
wordsize=$1
if ! test "$wordsize" = "32" -o "$wordsize" = "64"; then
echo "Usage: $0 {32,64}"
exit 2
fi
shift
objdump=
if test "$wordsize" = "64"; then
objdump=$(dirname $(type -p x86_64-w64-mingw32-gcc))/objdump
else
objdump=$(dirname $(type -p i686-w64-mingw32-gcc))/objdump
fi
CC=cl CXX="cl -TP -GR" ./configure --disable-test-compare-images --enable-external-libs --enable-werror --with-windows-wordsize=$wordsize --with-buildrules=msvc OBJDUMP=$objdump ${1+"$@"}