|
1 | 1 | class OpentelemetryCpp < Formula |
2 | 2 | desc "OpenTelemetry C++ Client" |
3 | 3 | 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" |
6 | 6 | license "Apache-2.0" |
7 | | - revision 1 |
8 | 7 | head "https://github.com/open-telemetry/opentelemetry-cpp.git", branch: "main" |
9 | 8 |
|
10 | 9 | bottle do |
@@ -32,12 +31,20 @@ class OpentelemetryCpp < Formula |
32 | 31 | depends_on "re2" |
33 | 32 | end |
34 | 33 |
|
| 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 | + |
35 | 39 | def install |
| 40 | + (buildpath/"opentelemetry-proto").install resource("openetelemetry-proto") |
| 41 | + |
36 | 42 | ENV.append "LDFLAGS", "-Wl,-undefined,dynamic_lookup" if OS.mac? |
37 | 43 | system "cmake", "-S", ".", "-B", "build", |
38 | 44 | "-DBUILD_SHARED_LIBS=ON", |
39 | 45 | "-DCMAKE_CXX_STANDARD=17", # Keep in sync with C++ standard in abseil.rb |
40 | 46 | "-DCMAKE_INSTALL_RPATH=#{rpath}", |
| 47 | + "-DOTELCPP_PROTO_PATH=#{buildpath}/opentelemetry-proto", |
41 | 48 | "-DWITH_ELASTICSEARCH=ON", |
42 | 49 | "-DWITH_EXAMPLES=OFF", |
43 | 50 | "-DWITH_OTLP_GRPC=ON", |
|
0 commit comments