-
Notifications
You must be signed in to change notification settings - Fork 2
/
BUILD
116 lines (111 loc) · 2.33 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
cc_binary(
name = "counters",
srcs = [
"CountersServer.cpp",
],
deps = [
":counters_decrement_kafka_store_consumer",
":counters_handler",
":counters_increment_kafka_consumer",
"//pipeline:redis_pipeline_bootstrap",
"//platform/gcloud:gcs",
],
copts = [
"--std=c++14",
],
)
cc_library(
name = "counters_handler",
srcs = [
"IncrbyMergeOperator.h",
"ZeroValueCompactionFilter.h",
"CountersHandler.cpp",
],
hdrs = [
"CountersHandler.h",
],
deps = [
"//external:boost",
"//external:folly",
"//external:rocksdb",
"//pipeline:transactional_redis_handler",
],
copts = [
"-std=c++14",
],
)
cc_test(
name = "counters_handler_test",
srcs = [
"CountersHandlerTest.cpp"
],
size = "small",
deps = [
":counters_handler",
"//codec:redis_value",
"//external:boost",
"//external:gmock_main",
"//external:gtest",
"//stesting:test_helpers",
],
copts = [
"-std=c++14",
],
)
cc_library(
name = "counters_increment_kafka_consumer",
srcs = [
"CounterRecord.hh",
"CountersIncrementKafkaConsumer.cpp",
],
hdrs = [
"CountersIncrementKafkaConsumer.h",
],
deps = [
":counters_timespans",
"//external:avro",
"//external:boost",
"//external:folly",
"//external:glog",
"//external:librdkafka",
"//infra:avro_helper",
"//infra/kafka:consumer",
],
copts = [
"-std=c++11",
],
)
cc_library(
name = "counters_decrement_kafka_store_consumer",
srcs = [
"CounterRecord.hh",
"CountersDecrementKafkaStoreConsumer.cpp",
],
hdrs = [
"CountersDecrementKafkaStoreConsumer.h",
],
deps = [
":counters_timespans",
"//external:boost",
"//external:folly",
"//external:glog",
"//infra:avro_helper",
"//infra/kafka/store:consumer",
"//pipeline:kafka_consumer_config",
],
copts = [
"-std=c++11",
],
)
cc_library(
name = "counters_timespans",
srcs = [
"CountersTimespans.cpp",
],
hdrs = [
"CountersTimespans.h",
],
copts = [
"-std=c++14",
]
)