Sha256: 26d36ace22559b100d787cc737d293b613e466d58eebe9c37713674a5e21ee46

Contents?: true

Size: 653 Bytes

Versions: 1

Compression:

Stored size: 653 Bytes

Contents

#!/bin/sh -e
# build picotls (for GitHub workflow)

if [ "${OPENSSL}" = "openssl1" ]; then
    WORKSPACE=picotls-openssl1
else
    WORKSPACE=picotls-openssl3
fi

git clone https://github.com/h2o/picotls/ "${WORKSPACE}"
cd "${WORKSPACE}"
git checkout "${PICOTLS_VERSION}"
git submodule update --init
mkdir build
cd build
if [ "${OPENSSL}" = "openssl1" ]; then
    PKG_CONFIG_PATH=$PWD/../../openssl1/build/lib/pkgconfig
else
    PKG_CONFIG_PATH=$PWD/../../openssl3/build/lib/pkgconfig:$PWD/../../openssl3/build/lib64/pkgconfig
fi

export PKG_CONFIG_PATH

cmake -DCMAKE_POSITION_INDEPENDENT_CODE=ON ..

make -j"$(nproc 2> /dev/null || sysctl -n hw.ncpu)"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
protocol-quic-0.0.0 ext/ngtcp2/ci/build_picotls.sh