forked from open-telemetry/opentelemetry-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
89 lines (81 loc) · 2.04 KB
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
load("//:dll_deps.bzl", "dll_deps")
load("//bazel:otel_cc.bzl", "otel_cc_binary", "otel_cc_import", "otel_cc_library", "otel_cc_shared_library", "otel_cc_test")
package(default_visibility = ["//visibility:public"])
otel_cc_library(
name = "zipkin_recordable",
srcs = [
"src/recordable.cc",
],
hdrs = [
"include/opentelemetry/exporters/zipkin/recordable.h",
],
strip_include_prefix = "include",
tags = ["zipkin"],
deps = [
"//sdk/src/resource",
"//sdk/src/trace",
"@nlohmann_json//:json",
],
)
otel_cc_library(
name = "zipkin_exporter",
srcs = [
"src/zipkin_exporter.cc",
"src/zipkin_exporter_factory.cc",
],
hdrs = [
"include/opentelemetry/exporters/zipkin/zipkin_exporter.h",
"include/opentelemetry/exporters/zipkin/zipkin_exporter_factory.h",
"include/opentelemetry/exporters/zipkin/zipkin_exporter_options.h",
],
copts = [
"-DCURL_STATICLIB",
],
strip_include_prefix = "include",
tags = ["zipkin"],
deps = [
":zipkin_recordable",
"//ext/src/http/client/curl:http_client_curl",
],
)
otel_cc_test(
name = "zipkin_recordable_test",
srcs = ["test/zipkin_recordable_test.cc"],
tags = [
"test",
"zipkin",
],
deps = dll_deps([
":zipkin_recordable",
"@googletest//:gtest_main",
"@nlohmann_json//:json",
]),
)
otel_cc_test(
name = "zipkin_exporter_test",
srcs = ["test/zipkin_exporter_test.cc"],
tags = [
"test",
"zipkin",
],
deps = dll_deps([
":zipkin_exporter",
":zipkin_recordable",
"@googletest//:gtest_main",
]),
)
otel_cc_library(
name = "headers",
hdrs = glob(["include/**/*.h"]),
strip_include_prefix = "include",
deps = [
"//sdk:headers",
],
)
# This is used for otel_sdk.zip packaging
filegroup(
name = "header_files",
srcs = glob(["include/**/*.h"]),
)