-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
158 lines (141 loc) · 4.08 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
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
load("//opencensus:copts.bzl", "DEFAULT_COPTS", "TEST_COPTS")
load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library")
proto_library(
name = "food_proto",
srcs = ["food.proto"],
)
cc_proto_library(
name = "food_cc_proto",
deps = [":food_proto"],
)
cc_grpc_library(
name = "food_cc_grpc",
srcs = [":food_proto"],
grpc_only = True,
deps = [":food_cc_proto"],
)
cc_library(
name = "foodAPI",
srcs = ["foodAPI.cc"],
hdrs = ["include/foodAPI.h"],
copts = DEFAULT_COPTS,
deps = [
":food_cc_grpc",
":food_cc_proto",
"//opencensus/tags",
"//opencensus/tags:context_util",
"//opencensus/tags:with_tag_map",
"//opencensus/trace",
"//opencensus/trace:context_util",
"//opencensus/trace:with_span",
"@com_github_grpc_grpc//:grpc++",
"@com_github_grpc_grpc//:grpc_opencensus_plugin",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/time",
],
)
cc_library(
name = "exporters",
srcs = ["include/exporters.cc"],
hdrs = ["include/exporters.h"],
copts = DEFAULT_COPTS,
deps = [
"//opencensus/exporters/stats/stackdriver:stackdriver_exporter",
"//opencensus/exporters/stats/stdout:stdout_exporter",
"//opencensus/exporters/trace/stackdriver:stackdriver_exporter",
"//opencensus/exporters/trace/stdout:stdout_exporter",
"@com_google_absl//absl/strings",
],
)
cc_library(
name = "metrics",
srcs = ["include/metrics.cc"],
hdrs = ["include/metrics.h"],
copts = DEFAULT_COPTS,
deps = [
"@com_google_absl//absl/time",
"@com_google_absl//absl/strings",
"@com_github_grpc_grpc//:grpc++",
"//opencensus/stats",
"//opencensus/tags",
"//opencensus/tags:context_util",
"//opencensus/tags:with_tag_map",
"//opencensus/trace",
"//opencensus/trace:context_util",
"//opencensus/trace:with_span",
"@com_github_grpc_grpc//:grpc_opencensus_plugin",
]
)
cc_library(
name = "simulatedProcessing",
srcs = ["include/simulatedProcessing.cc"],
hdrs = ["include/simulatedProcessing.h"],
copts = DEFAULT_COPTS,
deps = [
"//opencensus/trace",
"@com_google_absl//absl/time",
"@com_google_absl//absl/strings",
"@com_github_grpc_grpc//:grpc++",
],
)
cc_binary(
name = "finder",
srcs = [ "finder.cc", "include/finder.h" ],
copts = DEFAULT_COPTS,
deps = [
":simulatedProcessing",
"foodAPI",
":exporters",
":metrics",
":food_cc_grpc",
":food_cc_proto",
"//opencensus/tags",
"//opencensus/tags:context_util",
"//opencensus/tags:with_tag_map",
"//opencensus/trace",
"//opencensus/trace:context_util",
"//opencensus/trace:with_span",
"@com_github_grpc_grpc//:grpc++",
"@com_github_grpc_grpc//:grpc_opencensus_plugin",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/time",
]
)
cc_binary(
name = "vendor",
srcs = [ "vendor.cc", "include/vendor.h"],
copts = DEFAULT_COPTS,
deps = [
":simulatedProcessing",
":exporters",
":metrics",
":food_cc_grpc",
":food_cc_proto",
"//opencensus/tags",
"//opencensus/tags:context_util",
"//opencensus/trace",
"//opencensus/trace:context_util",
"@com_github_grpc_grpc//:grpc++",
"@com_github_grpc_grpc//:grpc_opencensus_plugin",
"@com_google_absl//absl/strings",
],
)
cc_binary(
name = "supplier",
srcs = [ "supplier.cc", "include/supplier.h"],
copts = DEFAULT_COPTS,
deps = [
":simulatedProcessing",
":exporters",
":metrics",
":food_cc_grpc",
":food_cc_proto",
"//opencensus/tags",
"//opencensus/tags:context_util",
"//opencensus/trace",
"//opencensus/trace:context_util",
"@com_github_grpc_grpc//:grpc++",
"@com_github_grpc_grpc//:grpc_opencensus_plugin",
"@com_google_absl//absl/strings",
],
)