mirror of
https://github.com/qpdf/qpdf.git
synced 2024-12-23 11:28:56 +00:00
98174373b9
Explicitly enable openssl crypto provider in the linux and sanitizer builds, and disable it in the windows build.
40 lines
1.1 KiB
Bash
Executable File
40 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
cd $(dirname $0)/..
|
|
wordsize=$1
|
|
tool=$2
|
|
|
|
if [[ $tool == mingw ]]; then
|
|
pacman -Sy --noconfirm make base-devel tar zip unzip
|
|
if [[ $wordsize == 64 ]]; then
|
|
pacman -Sy --noconfirm mingw-w64-x86_64-toolchain
|
|
PATH="/c/tools/msys64/mingw64/bin:$PATH"
|
|
else
|
|
pacman -Sy --noconfirm mingw-w64-i686-toolchain
|
|
PATH="/c/tools/msys64/mingw32/bin:$PATH"
|
|
fi
|
|
g++ -v
|
|
elif [[ $tool == msvc ]]; then
|
|
cl
|
|
fi
|
|
if [ -f distfiles/distfiles.zip ]; then
|
|
unzip distfiles/distfiles.zip
|
|
fi
|
|
curl -L https://github.com/qpdf/qpdf/raw/external-libs/qpdf-external-libs-bin.zip -o qpdf-external-libs-bin.zip
|
|
unzip qpdf-external-libs-bin.zip
|
|
cwd=`pwd`
|
|
PATH=$cwd/libqpdf/build:$PATH
|
|
|
|
installdir=install-$tool$wordsize
|
|
rm -rf $installdir
|
|
./config-$tool --enable-show-failed-test-output --disable-crypto-gnutls --disable-crypto-openssl
|
|
make -j$(nproc) -k
|
|
make -k check
|
|
make install
|
|
|
|
v=`(cd $installdir; ls -d qpdf-*)`
|
|
cp -p README-windows-install.txt $installdir/$v/README.txt
|
|
mkdir distribution
|
|
(cd $installdir; zip -r ../distribution/$v-bin-$tool$wordsize-ci.zip $v)
|
|
sha256sum distribution/*
|