From e6918187568dbd01842d8d1d2c808ce16a894239 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 13:54:28 +0200 Subject: Adding upstream version 18.2.2. Signed-off-by: Daniel Baumann --- .../opentelemetry-cpp/ci/setup_cmake.sh | 53 ++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100755 src/jaegertracing/opentelemetry-cpp/ci/setup_cmake.sh (limited to 'src/jaegertracing/opentelemetry-cpp/ci/setup_cmake.sh') diff --git a/src/jaegertracing/opentelemetry-cpp/ci/setup_cmake.sh b/src/jaegertracing/opentelemetry-cpp/ci/setup_cmake.sh new file mode 100755 index 000000000..fcc0c12a2 --- /dev/null +++ b/src/jaegertracing/opentelemetry-cpp/ci/setup_cmake.sh @@ -0,0 +1,53 @@ +#!/bin/bash + +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +set -e + +export DEBIAN_FRONTEND=noninteractive +apt-get update + +export CMAKE_VERSION=3.15.2 +export GOOGLETEST_VERSION=1.10.0 + +cmake_install() { + tmp_dir=$(mktemp -d) + pushd $tmp_dir + wget https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-Linux-x86_64.sh + chmod +x cmake-${CMAKE_VERSION}-Linux-x86_64.sh + ./cmake-${CMAKE_VERSION}-Linux-x86_64.sh --prefix=/usr/local --skip-license + rm cmake-${CMAKE_VERSION}-Linux-x86_64.sh + popd +} + +googletest_install() { + # Follows these instructions + # https://gist.github.com/dlime/313f74fd23e4267c4a915086b84c7d3d + tmp_dir=$(mktemp -d) + pushd $tmp_dir + wget https://github.com/google/googletest/archive/release-${GOOGLETEST_VERSION}.tar.gz + tar -xf release-${GOOGLETEST_VERSION}.tar.gz + cd googletest-release-${GOOGLETEST_VERSION}/ + mkdir build && cd build + cmake .. -DBUILD_SHARED_LIBS=ON -DINSTALL_GTEST=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr + make -j $(nproc) + make install + ldconfig + popd +} + +cmake_install + +set +e +echo \ + libbenchmark-dev \ + zlib1g-dev \ + sudo \ + libcurl4-openssl-dev \ + nlohmann-json-dev \ + nlohmann-json3 \ + nlohmann-json3-dev | xargs -n 1 apt-get install --ignore-missing --no-install-recommends --no-install-suggests -y +set -e + +googletest_install -- cgit v1.2.3