-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathBUILD.bazel
102 lines (96 loc) · 2.35 KB
/
BUILD.bazel
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
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "atomic-backoff",
hdrs = [
"include/stout/atomic-backoff.h",
"include/stout/thread.h",
],
includes = ["include"],
visibility = ["//visibility:public"],
)
cc_library(
name = "stateful-tally",
hdrs = ["include/stout/stateful-tally.h"],
includes = ["include"],
visibility = ["//visibility:public"],
deps = [
":atomic-backoff",
"@com_github_google_glog//:glog",
],
)
cc_library(
name = "borrowed-ptr",
hdrs = [
"include/stout/borrowable.h",
"include/stout/borrowed_ptr.h",
],
includes = ["include"],
visibility = ["//visibility:public"],
deps = [
":stateful-tally",
],
)
cc_library(
name = "flags",
srcs = [
"include/stout/flags/flags.cc",
],
hdrs = [
"include/stout/flags/flags.h",
],
includes = ["include"],
visibility = ["//visibility:public"],
deps = [
"//include/stout/flags/v1:flag",
"@com_github_google_glog//:glog",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/time",
],
)
cc_library(
name = "notification",
hdrs = ["include/stout/notification.h"],
includes = ["include"],
visibility = ["//visibility:public"],
)
cc_library(
name = "stout",
hdrs = glob(
[
"include/stout/*.h",
"include/stout/**/*.h",
],
[
"include/stout/flags/*.h",
"atomic-backoff.h",
"borrowable.h",
"borrowed_ptr.h",
"copy.h",
"notification.h",
"stateful-tally.h",
"thread.h",
],
),
defines = [
# Windows build fails without this define.
"GLOG_NO_ABBREVIATED_SEVERITIES",
],
includes = ["include"],
visibility = ["//visibility:public"],
deps = [
"//:atomic-backoff",
"//:borrowed-ptr",
"//:flags",
"//:notification",
"//:stateful-tally",
"@boost//:functional",
"@boost//:get_pointer",
"@boost//:lexical_cast",
"@boost//:uuid",
"@boost//:variant",
"@com_github_fmtlib_fmt//:fmt",
"@com_github_google_glog//:glog",
"@com_github_kazuho_picojson//:picojson",
"@com_github_tencent_rapidjson//:rapidjson",
],
)