diff options
Diffstat (limited to 'meta-oe/recipes-support/opentelemetry')
-rw-r--r-- | meta-oe/recipes-support/opentelemetry/opentelemetry-cpp_1.20.0.bb | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/opentelemetry/opentelemetry-cpp_1.20.0.bb b/meta-oe/recipes-support/opentelemetry/opentelemetry-cpp_1.20.0.bb new file mode 100644 index 0000000000..eb108c177c --- /dev/null +++ b/meta-oe/recipes-support/opentelemetry/opentelemetry-cpp_1.20.0.bb | |||
@@ -0,0 +1,30 @@ | |||
1 | SUMMARY = "Open Telemetry Library" | ||
2 | DESCRIPTION = "An Observability framework to create and manage telemetry data \ | ||
3 | such as traces, metrics, and logs." | ||
4 | HOMEPAGE = "https://github.com/open-telemetry/opentelemetry-cpp" | ||
5 | SECTION = "libs" | ||
6 | LICENSE = "Apache-2.0" | ||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=86d3f3a95c324c9479bd8986968f4327" | ||
8 | |||
9 | DEPENDS = "nlohmann-json" | ||
10 | SRC_URI = "gitsm://github.com/open-telemetry/opentelemetry-cpp.git;protocol=https;branch=main;tag=v${PV}" | ||
11 | SRCREV = "6175aa0b213eea053247e43b4f35b8d201fa356e" | ||
12 | |||
13 | inherit cmake pkgconfig lib_package | ||
14 | |||
15 | LDFLAGS:append:riscv32 = " -latomic" | ||
16 | |||
17 | EXTRA_OECMAKE:append = " -DPROTOBUF_PROTOC_EXECUTABLE=${RECIPE_SYSROOT_NATIVE}${bindir}/protoc \ | ||
18 | -DOTELCPP_VERSIONED_LIBS=ON \ | ||
19 | -DBUILD_SHARED_LIBS=ON " | ||
20 | |||
21 | PACKAGECONFIG ?= "opentelemetry_install otlp_api" | ||
22 | |||
23 | PACKAGECONFIG[opentelemetry_install] = "-DOPENTELEMETRY_INSTALL=ON, -DOPENTELEMETRY_INSTALL=OFF" | ||
24 | PACKAGECONFIG[otlp_api] = "-DWITH_OTLP_API=ON, -DWITH_OTLP_API=OFF" | ||
25 | PACKAGECONFIG[otlp_grpc] = "-DWITH_OTLP_GRPC=ON -DWITH_ABSEIL=ON, -DWITH_OTLP_GRPC=OFF, grpc grpc-native protobuf-native" | ||
26 | PACKAGECONFIG[otlp_http] = "-DWITH_OTLP_HTTP=ON -DWITH_ABSEIL=ON, -DWITH_OTLP_HTTP=OFF, protobuf protobuf-native curl" | ||
27 | PACKAGECONFIG[otlp_prometheus] = "-DWITH_PROMETHEUS=ON -DUSE_THIRDPARTY_LIBRARIES=OFF, \ | ||
28 | -DWITH_PROMETHEUS=OFF, civetweb curl" | ||
29 | PACKAGECONFIG[benchmark] = "-DWITH_BENCHMARK=ON, -DWITH_BENCHMARK=OFF" | ||
30 | PACKAGECONFIG[testing] = "-DBUILD_TESTING=ON, -DBUILD_TESTING=OFF, gtest" | ||