Skip to content

Commit 78b89ea

Browse files
BrewTestBotbevanjkay
authored andcommitted
opentelemetry-cpp 1.22.0
1 parent e1f2712 commit 78b89ea

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

Formula/o/opentelemetry-cpp.rb

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
class OpentelemetryCpp < Formula
22
desc "OpenTelemetry C++ Client"
33
homepage "https://opentelemetry.io/"
4-
url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.21.0.tar.gz"
5-
sha256 "98e5546f577a11b52a57faed1f4cc60d8c1daa44760eba393f43eab5a8ec46a2"
4+
url "https://github.com/open-telemetry/opentelemetry-cpp/archive/refs/tags/v1.22.0.tar.gz"
5+
sha256 "3428f433f4b435ed1fad64cbdbe75b7288c06f6297786a7036d65d5b9a1d215b"
66
license "Apache-2.0"
7-
revision 1
87
head "https://github.com/open-telemetry/opentelemetry-cpp.git", branch: "main"
98

109
bottle do
@@ -32,12 +31,23 @@ class OpentelemetryCpp < Formula
3231
depends_on "re2"
3332
end
3433

34+
resource "openetelemetry-proto" do
35+
url "https://github.com/open-telemetry/opentelemetry-proto/archive/refs/tags/v1.7.0.tar.gz"
36+
sha256 "11330d850f5e24d34c4246bc8cb21fcd311e7565d219195713455a576bb11bed"
37+
end
38+
3539
def install
40+
(buildpath/"opentelemetry-proto").install resource("openetelemetry-proto")
41+
3642
ENV.append "LDFLAGS", "-Wl,-undefined,dynamic_lookup" if OS.mac?
3743
system "cmake", "-S", ".", "-B", "build",
3844
"-DBUILD_SHARED_LIBS=ON",
3945
"-DCMAKE_CXX_STANDARD=17", # Keep in sync with C++ standard in abseil.rb
4046
"-DCMAKE_INSTALL_RPATH=#{rpath}",
47+
"-DHOMEBREW_ALLOW_FETCHCONTENT=ON",
48+
"-DFETCHCONTENT_FULLY_DISCONNECTED=ON",
49+
"-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS",
50+
"-DOTELCPP_PROTO_PATH=#{buildpath}/opentelemetry-proto",
4151
"-DWITH_ELASTICSEARCH=ON",
4252
"-DWITH_EXAMPLES=OFF",
4353
"-DWITH_OTLP_GRPC=ON",

0 commit comments

Comments
 (0)