27 TLSIMPL=mbedtls MBEDVERSION=2.3.0
36 TLSIMPL=mbedtls MBEDVERSION=2.4.0
41 - if [ "$TLSIMPL" == "mbedtls" ]; then
44 wget https://github.com/ARMmbed/mbedtls/archive/mbedtls-${MBEDVERSION}.tar.gz;
45 tar xf mbedtls-${MBEDVERSION}.tar.gz;
46 cd mbedtls-mbedtls-${MBEDVERSION};
47 cmake . -DCMAKE_INSTALL_PREFIX=/tmp/deps -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=Off -DUSE_SHARED_MBEDTLS_LIBRARY=On;
48 make install -j$(nproc);
49 if [ "$MBEDVERSION" == "2.3.0" ]; then
50 sed -e 's/<time\.h>/"platform.h"/g' -i /tmp/deps/include/mbedtls/ssl.h;
56 wget https://github.com/protobuf-c/protobuf-c/releases/download/v1.0.0/protobuf-c-1.0.0.tar.gz;
57 tar xf protobuf-c-1.0.0.tar.gz;
59 ./configure --prefix=/tmp/deps;
66 - env CPPFLAGS=-I/tmp/deps/include LDFLAGS=-L/tmp/deps/lib ./configure --with-ssl=${TLSIMPL}