mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-22 02:49:00 +00:00
389396dbbf
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.
38 lines
621 B
Bash
Executable File
38 lines
621 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ ! -d external-libs ]; then
|
|
echo "Please extract qpdf-external-libs-bin.zip and try again"
|
|
exit 2
|
|
fi
|
|
|
|
if echo $PATH | grep -q /mingw64; then
|
|
wordsize=64
|
|
else
|
|
wordsize=32
|
|
fi
|
|
|
|
set -e
|
|
set -x
|
|
cwd=`pwd`
|
|
PATH=$cwd/libqpdf/build:$PATH
|
|
|
|
rm -rf install-mingw$wordsize install-msvc$wordsize
|
|
|
|
./config-mingw
|
|
make -j8
|
|
make check install
|
|
make distclean
|
|
|
|
./config-msvc
|
|
make -j8
|
|
make check install
|
|
make distclean
|
|
|
|
set +x
|
|
|
|
echo ''
|
|
echo "Finished builds for $wordsize. If not done already, rerun this"
|
|
echo "in a" `expr 64 - $wordsize` "environment."
|
|
echo 'Then run "./make_windows_releases-finish".'
|
|
echo ''
|