Skip to content

Commit 7c0f6a4

Browse files
committed
[opentelemetry-cpp] 1.24.0.bcr.1
- build with bazel 7, 8, and 9 - add linkstatic = True to the http_client_curl cc_library target
1 parent 03e8193 commit 7c0f6a4

File tree

5 files changed

+60
-1
lines changed

5 files changed

+60
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright The OpenTelemetry Authors
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
module(
5+
name = "opentelemetry-cpp",
6+
version = "1.24.0.bcr.1",
7+
compatibility_level = 0,
8+
repo_name = "io_opentelemetry_cpp",
9+
)
10+
11+
bazel_dep(name = "abseil-cpp", version = "20240116.1", repo_name = "com_google_absl")
12+
bazel_dep(name = "bazel_skylib", version = "1.7.1")
13+
bazel_dep(name = "curl", version = "8.8.0")
14+
bazel_dep(name = "grpc", version = "1.66.0.bcr.2", repo_name = "com_github_grpc_grpc")
15+
bazel_dep(name = "nlohmann_json", version = "3.12.0", repo_name = "github_nlohmann_json")
16+
bazel_dep(name = "opentelemetry-proto", version = "1.8.0", repo_name = "com_github_opentelemetry_proto")
17+
bazel_dep(name = "opentracing-cpp", version = "1.6.0", repo_name = "com_github_opentracing")
18+
bazel_dep(name = "platforms", version = "0.0.11")
19+
bazel_dep(name = "prometheus-cpp", version = "1.3.0", repo_name = "com_github_jupp0r_prometheus_cpp")
20+
bazel_dep(name = "protobuf", version = "29.0", repo_name = "com_google_protobuf")
21+
bazel_dep(name = "rapidyaml", version = "0.9.0")
22+
bazel_dep(name = "rules_cc", version = "0.2.9")
23+
bazel_dep(name = "rules_proto", version = "7.0.2")
24+
bazel_dep(name = "zlib", version = "1.3.1.bcr.5")
25+
26+
bazel_dep(name = "google_benchmark", version = "1.8.4", dev_dependency = True, repo_name = "com_github_google_benchmark")
27+
bazel_dep(name = "googletest", version = "1.14.0.bcr.1", dev_dependency = True, repo_name = "com_google_googletest")
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
--- a/ext/src/http/client/curl/BUILD
2+
+++ b/ext/src/http/client/curl/BUILD
3+
@@ -6,6 +6,7 @@ package(default_visibility = ["//visibility:public"])
4+
5+
cc_library(
6+
name = "http_client_curl",
7+
+ linkstatic = True,
8+
srcs = [
9+
"http_client_curl.cc",
10+
"http_client_factory_curl.cc",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
matrix:
2+
platform: ["debian10", "macos", "ubuntu2004", "windows"]
3+
bazel: ["7.x", "8.x", "9.x"]
4+
tasks:
5+
verify_targets:
6+
platform: ${{ platform }}
7+
bazel: ${{ bazel }}
8+
build_flags:
9+
- '--cxxopt=-std=c++14'
10+
- '--host_cxxopt=-std=c++14'
11+
build_targets:
12+
- '@opentelemetry-cpp//api'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"integrity": "sha256-e46Wav/KHa8ZBicvTZg2McrYX7bqYPtvVdzRgRpzBgQ=",
3+
"strip_prefix": "opentelemetry-cpp-1.24.0",
4+
"url": "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.24.0.tar.gz",
5+
"patch_strip": 1,
6+
"patches": {
7+
"curl-linkstatic.patch": "sha256-qpNLhrjgZ6A22ZziNnlstmmsAds1plCEGdFyNFIpSgY="
8+
}
9+
}

modules/opentelemetry-cpp/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"1.16.0",
1818
"1.19.0",
1919
"1.22.0",
20-
"1.24.0"
20+
"1.24.0",
21+
"1.24.0.bcr.1"
2122
],
2223
"yanked_versions": {}
2324
}

0 commit comments

Comments
 (0)