-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
59 lines (53 loc) · 1.26 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
load("//:aprotoc.bzl", "aprotoc")
aprotoc(
name = "arpc_protocol",
src = "src/arpc_protocol.proto",
)
cc_library(
name = "arpc_protocol_library",
hdrs = [":arpc_protocol"],
strip_include_prefix = "src",
)
cc_library(
name = "arpc",
srcs = [
"src/argdata_builder.cc",
"src/argdata_parser.cc",
"src/channel.cc",
"src/client_reader_impl.cc",
"src/client_writer_impl.cc",
"src/server.cc",
"src/server_reader_impl.cc",
"src/server_writer_impl.cc",
"src/status.cc",
"src/status_code.cc",
],
hdrs = ["include/arpc++/arpc++.h"],
strip_include_prefix = "include",
visibility = ["//visibility:public"],
deps = [
":arpc_protocol_library",
"@org_cloudabi_argdata//:argdata",
],
)
aprotoc(
name = "server_test_proto",
src = "src/server_test_proto.proto",
)
cc_library(
name = "server_test_library",
hdrs = [":server_test_proto"],
strip_include_prefix = "src",
)
# TODO(ed): Add logic to disable SIGPIPE to make this test pass.
cc_test(
name = "arpc_test",
srcs = [
"src/server_test.cc",
],
deps = [
":server_test_library",
"//:arpc",
"@com_google_googletest//:gtest_main",
],
)