-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Jaeger exporter to CMake CI build (#786)
- Loading branch information
1 parent
2b080c1
commit 6ab0f78
Showing
5 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
export DEBIAN_FRONTEND=noninteractive | ||
export THRIFT_VERSION=0.14.1 | ||
|
||
if ! type cmake > /dev/null; then | ||
#cmake not installed, exiting | ||
exit 1 | ||
fi | ||
export BUILD_DIR=/tmp/ | ||
export INSTALL_DIR=/usr/local/ | ||
|
||
apt install -y --no-install-recommends \ | ||
libboost-all-dev \ | ||
libevent-dev \ | ||
libssl-dev \ | ||
ninja-build | ||
|
||
pushd $BUILD_DIR | ||
wget https://github.com/apache/thrift/archive/refs/tags/v${THRIFT_VERSION}.tar.gz | ||
tar -zxvf v${THRIFT_VERSION}.tar.gz | ||
cd thrift-${THRIFT_VERSION} | ||
mkdir -p out | ||
pushd out | ||
cmake -G Ninja .. \ | ||
-DBUILD_COMPILER=OFF \ | ||
-DBUILD_CPP=ON \ | ||
-DBUILD_LIBRARIES=ON \ | ||
-DBUILD_NODEJS=OFF \ | ||
-DBUILD_PYTHON=OFF \ | ||
-DBUILD_JAVASCRIPT=OFF \ | ||
-DBUILD_C_GLIB=OFF \ | ||
-DBUILD_JAVA=OFF \ | ||
-DBUILD_TESTING=OFF \ | ||
-DBUILD_TUTORIALS=OFF \ | ||
.. | ||
|
||
ninja -j $(nproc) | ||
ninja install | ||
popd | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters