This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 77
/
CMakeLists.txt
229 lines (185 loc) · 6.31 KB
/
CMakeLists.txt
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# Copyright 2018, OpenCensus Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
opencensus_lib(
trace
PUBLIC
SRCS
internal/annotation.cc
internal/attribute_list.cc
internal/attribute_value.cc
internal/attribute_value_ref.cc
internal/context_util.cc
internal/link.cc
internal/local_span_store.cc
internal/local_span_store_impl.cc
internal/message_event.cc
internal/running_span_store.cc
internal/running_span_store_impl.cc
internal/sampler.cc
internal/span.cc
internal/span_data.cc
internal/span_exporter.cc
internal/span_exporter_impl.cc
internal/span_impl.cc
internal/status.cc
internal/trace_config.cc
internal/trace_config_impl.cc
internal/with_span.cc
DEPS
common_random
trace_cloud_trace_context
trace_span_context
trace_trace_context
absl::strings
absl::base
absl::memory
absl::synchronization
absl::time
absl::span)
# Define NOMINMAX to fix build errors when compiling with MSVC.
target_compile_definitions(trace
PUBLIC $<$<CXX_COMPILER_ID:MSVC>:NOMINMAX>)
opencensus_lib(
trace_b3
PUBLIC
SRCS
internal/b3.cc
DEPS
trace_span_context
absl::base
absl::strings)
opencensus_lib(
trace_cloud_trace_context
PUBLIC
SRCS
internal/cloud_trace_context.cc
DEPS
trace_span_context
absl::base
absl::strings)
opencensus_lib(
trace_context_util
PUBLIC
SRCS
internal/context_util.cc
DEPS
trace
context)
opencensus_lib(
trace_grpc_trace_bin
PUBLIC
SRCS
internal/grpc_trace_bin.cc
DEPS
trace_span_context
absl::base
absl::strings)
opencensus_lib(
trace_span_context
PUBLIC
SRCS
internal/span_context.cc
internal/span_id.cc
internal/trace_id.cc
internal/trace_options.cc
DEPS
absl::strings)
opencensus_lib(
trace_trace_context
PUBLIC
SRCS
internal/trace_context.cc
DEPS
trace_span_context
absl::base
absl::strings)
opencensus_lib(
trace_with_span
PUBLIC
SRCS
internal/with_span.cc
DEPS
trace
context)
# ----------------------------------------------------------------------
# Tests
# ----------------------------------------------------------------------
opencensus_test(trace_annotation_test internal/annotation_test.cc trace)
opencensus_test(trace_attribute_value_ref_test
internal/attribute_value_ref_test.cc trace)
opencensus_test(trace_attribute_value_test internal/attribute_value_test.cc
trace)
opencensus_test(trace_b3_test internal/b3_test.cc trace_b3)
opencensus_test(trace_cloud_trace_context_test
internal/cloud_trace_context_test.cc trace_cloud_trace_context)
opencensus_test(trace_context_util_test internal/context_util_test.cc trace
trace_context_util trace_with_span context)
opencensus_test(trace_grpc_trace_bin_test internal/grpc_trace_bin_test.cc
trace_grpc_trace_bin)
opencensus_test(trace_link_test internal/link_test.cc trace)
opencensus_test(trace_local_span_store_test internal/local_span_store_test.cc
trace absl::memory absl::synchronization)
opencensus_test(
trace_running_span_store_test internal/running_span_store_test.cc trace
absl::base absl::memory absl::synchronization)
opencensus_test(trace_sampler_test internal/sampler_test.cc trace absl::strings
absl::synchronization absl::time)
opencensus_test(trace_span_test internal/span_test.cc trace absl::strings)
opencensus_test(trace_span_id_test internal/span_id_test.cc trace)
opencensus_test(trace_span_options_test internal/span_options_test.cc trace
absl::strings absl::synchronization)
opencensus_test(trace_span_context_test internal/span_context_test.cc
trace_span_context absl::strings absl::span)
opencensus_test(
trace_span_exporter_test
internal/span_exporter_test.cc
trace
absl::memory
absl::strings
absl::synchronization
absl::time)
opencensus_test(trace_status_test internal/status_test.cc trace absl::strings)
opencensus_test(trace_trace_config_test internal/trace_config_test.cc trace
absl::time)
opencensus_test(trace_trace_options_test internal/trace_options_test.cc trace)
opencensus_test(trace_trace_context_test internal/trace_context_test.cc
trace_trace_context)
opencensus_test(trace_with_span_test internal/with_span_test.cc trace
trace_with_span context)
opencensus_benchmark(trace_attribute_value_ref_benchmark
internal/attribute_value_ref_benchmark.cc trace)
opencensus_benchmark(trace_b3_benchmark internal/b3_benchmark.cc trace_b3)
opencensus_benchmark(
trace_cloud_trace_context_benchmark internal/cloud_trace_context_benchmark.cc
trace_cloud_trace_context)
opencensus_benchmark(trace_grpc_trace_bin_benchmark
internal/grpc_trace_bin_benchmark.cc trace_grpc_trace_bin)
opencensus_benchmark(trace_sampler_benchmark internal/sampler_benchmark.cc
trace_span_context trace)
opencensus_benchmark(trace_span_benchmark internal/span_benchmark.cc
trace_span_context trace)
opencensus_benchmark(trace_span_id_benchmark internal/span_id_benchmark.cc
trace_span_context)
opencensus_benchmark(trace_context_benchmark
internal/trace_context_benchmark.cc trace_trace_context)
opencensus_benchmark(trace_with_span_benchmark internal/with_span_benchmark.cc
trace trace_with_span)
opencensus_fuzzer(trace_b3_fuzzer internal/b3_fuzzer.cc trace_b3 absl::strings)
opencensus_fuzzer(
trace_cloud_trace_context_fuzzer internal/cloud_trace_context_fuzzer.cc
trace_cloud_trace_context absl::strings)
opencensus_fuzzer(trace_grpc_trace_bin_fuzzer internal/grpc_trace_bin_fuzzer.cc
trace_grpc_trace_bin absl::strings)
opencensus_fuzzer(trace_trace_context_fuzzer internal/trace_context_fuzzer.cc
trace_trace_context absl::strings)