-
Notifications
You must be signed in to change notification settings - Fork 4
/
TARGETS
123 lines (122 loc) · 3.65 KB
/
TARGETS
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
targets = {
'bolt-rpc-client': cpp_library (
srcs = [
'second_party/fmt/src/format.cc',
'src/common/common_defines.cpp',
'src/common/log.cpp',
'src/common/io_buffer.cpp',
'src/common/uri.cpp',
'src/protocol/protocol_define.cpp',
'src/protocol/bolt/bolt_protocol.cpp',
'src/protocol/bolt/bolt_response.cpp',
'src/protocol/response_base.cpp',
'src/protocol/http/http_protocol.cpp',
'src/protocol/http/http_parser.c',
'src/protocol/http/http_header.cpp',
'src/protocol/http/http_request.cpp',
'src/protocol/http/http_response.cpp',
'src/tcp/endpoint.cpp',
'src/tcp/socket_manager.cpp',
'src/tcp/socket.cpp',
'src/tcp/socket_posix.cpp',
'src/schedule/epoll_loop.cpp',
'src/schedule/loop_thread.cpp',
'src/schedule/time_thread.cpp',
'src/schedule/schedule.cpp',
'src/channel/channel.cpp',
'src/session/session.cpp',
],
incs = [
'include',
'src',
'second_party/fmt/include',
],
deps = [
'protobuf-3.2.0:protobuf',
],
cxxflags = [
'-DOS_LINUX',
],
ldflags = [
'-L/lib64 -L/usr/lib64',
],
),
'sample_proto_generation': cpp_utility (
srcs = [
'example/sample.proto',
],
deps = [
'protobuf-3.2.0:protobuf',
],
),
'sample': cpp_program (
srcs = [
'example/sample.pb.cc',
'example/single_request_example.cpp',
],
deps = [
':bolt-rpc-client',
'protobuf-3.2.0:protobuf',
'sample_proto_generation',
],
incs = [
'include',
'example',
'second_party/fmt/include',
],
cxxflags = [
'-DOS_LINUX',
],
ldflags = [
'-L/lib64 -L/usr/lib64',
],
),
'ut_proto_generation': cpp_utility (
srcs = [
'test/unit_test/io_buffer_unittest.proto',
],
deps = [
'protobuf-3.2.0:protobuf',
],
),
'bolt-rpc-client_test' : cpp_fast_test (
srcs = [
'test/unit_test/unittest_main.cpp',
'test/unit_test/endpoint_unittest.cpp',
'test/unit_test/channel_unittest.cpp',
'test/unit_test/io_buffer_unittest.pb.cc',
'test/unit_test/io_buffer_unittest.cpp',
'test/unit_test/lifecyclelock_unittest.cpp',
'test/unit_test/mpscqueue_unittest.cpp',
'test/unit_test/simple_socket_server.cpp',
'test/unit_test/socket_manager_unittest.cpp',
'test/unit_test/socket_posix_unittest.cpp',
'test/unit_test/thread_pool_unittest.cpp',
'test/unit_test/time_thread_unittest.cpp',
'test/unit_test/uri_unittest.cpp',
'test/unit_test/utils_unittest.cpp',
'test/unit_test/http_unittest.cpp',
'test/unit_test/intrusivelist_unittest.cpp',
'test/unit_test/concurrenthashmap_unittest.cpp',
'test/unit_test/lrucache_unittest.cpp',
],
incs = [
'include',
'test/unit_test',
'src',
'second_party/fmt/include',
],
testing = [
'bolt-rpc-client',
],
build_deps = [
'ut_proto_generation',
],
deps = [
'gtest-1.7.0:gtest',
'gtest-1.7.0:gtest_main',
':bolt-rpc-client',
'protobuf-3.2.0:protobuf',
]
),
}