Skip to content

Commit 09a2042

Browse files
nickggalexmalyshev
authored andcommitted
Fix buck TARGETS files (#412)
1 parent 369c8cb commit 09a2042

File tree

4 files changed

+85
-92
lines changed

4 files changed

+85
-92
lines changed

TARGETS

Lines changed: 58 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cpp_library(
2-
name = 'reactivesocket-internal',
2+
name = 'internal',
33

44
header_namespace = 'src',
55
headers = subdir_glob([
@@ -24,7 +24,7 @@ cpp_library(
2424
# A target, on which implementations of various pluggable strategies depend.
2525
# Contains minimal amount of code needed to implement those strategies.
2626
cpp_library(
27-
name = 'reactivesocket-plugins',
27+
name = 'plugins',
2828

2929
headers = [
3030
'src/DuplexConnection.h',
@@ -44,8 +44,8 @@ cpp_library(
4444
'src/folly/FollyKeepaliveTimer.cpp',
4545
],
4646
deps = [
47-
':reactivesocket-internal',
48-
':reactivesocket-streams',
47+
':internal',
48+
':streams',
4949
'@/folly:exception_wrapper',
5050
'@/folly/io:iobuf',
5151
'@/folly/io/async:async',
@@ -87,47 +87,45 @@ cpp_library(
8787
'src/StreamsFactory.cpp',
8888
]),
8989
deps = [
90-
':reactivesocket-internal',
91-
':reactivesocket-streams',
90+
':internal',
91+
':streams',
9292
'@/folly/futures:futures',
9393
'@/folly/io:iobuf',
9494
'@/folly:exception_wrapper',
95-
'@/lithium/reactivesocket-utils:reactivesocket-external-utils',
9695
],
9796
compiler_flags=['-DREACTIVE_SOCKET_EXTERNAL_STACK_TRACE_UTILS'],
9897
)
9998

10099
cpp_library(
101-
name = 'reactivesocket-tcp-internal',
100+
name = 'tcp-internal',
102101

103102
header_namespace = "src",
104103
headers = subdir_glob([
105104
('src/tcp', '**/*.h'),
106105
]),
107106
deps = [
108-
':reactivesocket-internal',
107+
':internal',
109108
],
110109
)
111110

112111
cpp_library(
113-
name = 'reactivesocket-tcp',
112+
name = 'tcp',
114113
headers = [
115114
'src/tcp/TcpDuplexConnection.h',
116115
],
117116
srcs = [
118117
'src/tcp/TcpDuplexConnection.cpp',
119118
],
120119
deps = [
121-
':reactivesocket-tcp-internal',
120+
':tcp-internal',
122121
'@/lithium/reactive-streams-cpp:reactive-streams',
123-
'@/lithium/reactivesocket-utils:reactivesocket-external-utils',
124122
'@/folly/io/async:async',
125123
],
126124
compiler_flags=['-DREACTIVE_SOCKET_EXTERNAL_STACK_TRACE_UTILS'],
127125
)
128126

129127
cpp_library(
130-
name='reactivesocket-inline-conn',
128+
name='inline-conn',
131129
headers=[
132130
'test/InlineConnection.h',
133131
],
@@ -136,15 +134,15 @@ cpp_library(
136134
],
137135
deps=[
138136
':reactivesocket',
139-
':reactivesocket-streams-mocks',
137+
':streams-mocks',
140138
],
141139
external_deps=[
142140
('googletest', None, 'gmock'),
143141
],
144142
)
145143

146144
cpp_unittest(
147-
name = 'reactivesocket-tests',
145+
name = 'tests',
148146

149147
header_namespace = 'test',
150148
headers = subdir_glob([
@@ -158,10 +156,10 @@ cpp_unittest(
158156
'test/simple/*.cpp',
159157
]),
160158
deps = [
161-
':reactivesocket-internal',
159+
':internal',
162160
':reactivesocket',
163-
':reactivesocket-plugins',
164-
':reactivesocket-streams-mocks',
161+
':plugins',
162+
':streams-mocks',
165163
'@/folly/io/async:scoped_event_base_thread',
166164
],
167165
external_deps = [
@@ -171,7 +169,7 @@ cpp_unittest(
171169
)
172170

173171
cpp_library(
174-
name='reactivesocket-tests-internal',
172+
name='tests-internal',
175173
header_namespace = 'test',
176174
headers = subdir_glob([
177175
('test', '**/*.h'),
@@ -185,7 +183,7 @@ cpp_library(
185183
)
186184

187185
cpp_binary(
188-
name = 'reactivesocket-tck-server',
186+
name = 'tck-server',
189187
header_namespace = 'tck-test',
190188
headers = subdir_glob([
191189
('tck-test', '**/*.h'),
@@ -195,16 +193,18 @@ cpp_binary(
195193
'tck-test/MarbleProcessor.cpp',
196194
]),
197195
deps = [
198-
':reactivesocket-tcp',
196+
':tcp',
199197
':reactivesocket',
200-
':reactivesocket-streams-mocks',
201-
':reactivesocket-tests-internal',
198+
':plugins',
199+
':streams-mocks',
200+
':tests-internal',
202201
'@/folly/io/async:scoped_event_base_thread',
202+
'@/folly/io/async:server_socket',
203203
],
204204
)
205205

206206
cpp_binary(
207-
name = 'reactivesocket-tck-client',
207+
name = 'tck-client',
208208
header_namespace = 'tck-test',
209209
headers = subdir_glob([
210210
('tck-test', '**/*.h'),
@@ -217,15 +217,17 @@ cpp_binary(
217217
'tck-test/TestSuite.cpp',
218218
]),
219219
deps = [
220-
':reactivesocket-tcp',
220+
':tcp',
221221
':reactivesocket',
222-
':reactivesocket-streams-mocks',
222+
':plugins',
223+
':streams-mocks',
223224
'@/folly/io/async:scoped_event_base_thread',
225+
'@/folly/io/async:server_socket',
224226
],
225227
)
226228

227229
cpp_binary(
228-
name = 'reactivesocket-test-resumeclient',
230+
name = 'test-resumeclient',
229231
header_namespace = 'test',
230232
headers = subdir_glob([
231233
('test', '**/*.h'),
@@ -235,15 +237,16 @@ cpp_binary(
235237
'test/simple/*.cpp',
236238
]),
237239
deps = [
238-
':reactivesocket-tcp',
240+
':tcp',
239241
':reactivesocket',
240-
':reactivesocket-streams-mocks',
242+
':plugins',
243+
':streams-mocks',
241244
'@/folly/io/async:scoped_event_base_thread',
242245
],
243246
)
244247

245248
cpp_binary(
246-
name = 'reactivesocket-test-resumeserver',
249+
name = 'test-resumeserver',
247250
header_namespace = 'test',
248251
headers = subdir_glob([
249252
('test', '**/*.h'),
@@ -253,15 +256,17 @@ cpp_binary(
253256
'test/simple/*.cpp',
254257
]),
255258
deps = [
256-
':reactivesocket-tcp',
259+
':tcp',
257260
':reactivesocket',
258-
':reactivesocket-streams-mocks',
261+
':plugins',
262+
':streams-mocks',
259263
'@/folly/io/async:scoped_event_base_thread',
264+
'@/folly/io/async:server_socket',
260265
],
261266
)
262267

263268
cpp_binary(
264-
name = 'reactivesocket-test-tcpclient',
269+
name = 'test-tcpclient',
265270
header_namespace = 'test',
266271
headers = subdir_glob([
267272
('test', '**/*.h'),
@@ -271,15 +276,17 @@ cpp_binary(
271276
'test/simple/*.cpp',
272277
]),
273278
deps = [
274-
':reactivesocket-tcp',
279+
':tcp',
275280
':reactivesocket',
276-
':reactivesocket-streams-mocks',
281+
':plugins',
282+
':streams-mocks',
277283
'@/folly/io/async:scoped_event_base_thread',
284+
'@/folly/io/async:server_socket',
278285
],
279286
)
280287

281288
cpp_binary(
282-
name = 'reactivesocket-test-tcpserver',
289+
name = 'test-tcpserver',
283290
header_namespace = 'test',
284291
headers = subdir_glob([
285292
('test', '**/*.h'),
@@ -289,24 +296,26 @@ cpp_binary(
289296
'test/simple/*.cpp',
290297
]),
291298
deps = [
292-
':reactivesocket-tcp',
299+
':tcp',
293300
':reactivesocket',
294-
':reactivesocket-streams-mocks',
301+
':plugins',
302+
':streams-mocks',
295303
'@/folly/io/async:scoped_event_base_thread',
304+
'@/folly/io/async:server_socket',
296305
],
297306
)
298307

299308
# Compatibility target for ReactiveStreams API.
300309
cpp_library(
301-
name = 'reactivesocket-streams',
310+
name = 'streams',
302311

303312
headers = ['src/ReactiveStreamsCompat.h',],
304313
deps = ['@/lithium/reactive-streams-cpp:reactive-streams',],
305314
)
306315

307316
# Compatibility target for ReactiveStreams mocking helpers.
308317
cpp_library(
309-
name = 'reactivesocket-streams-mocks',
318+
name = 'streams-mocks',
310319

311320
headers = ['test/ReactiveStreamsMocksCompat.h', 'test/streams/Mocks.h'],
312321
deps = ['@/lithium/reactive-streams-cpp:reactive-streams-mocks',],
@@ -323,23 +332,21 @@ cpp_library(
323332
]),
324333
srcs = glob([
325334
'experimental/rsocket-src/*.cpp',
326-
'experimental/rsocket-src/facebook/transports/*.cpp',
327-
'experimental/rsocket-src/transports/*.cpp',
335+
'experimental/rsocket-src/facebook/transports/*.cpp', #TODO: move to rsocket/transports
336+
'experimental/rsocket-src/transports/*.cpp', #TODO: move to rsocket/transports
328337
]),
329338
deps = [
330339
':reactivesocket',
331-
':reactivesocket-internal',
332-
':reactivesocket-streams',
333-
':reactivesocket-tcp',
340+
':internal',
341+
':streams',
342+
':tcp',
334343
'@/folly/futures:futures',
344+
'@/folly/io/async:async',
345+
'@/folly/io/async:server_socket',
346+
'@/folly/io/async:scoped_event_base_thread',
335347
'@/folly/io:iobuf',
336348
'@/folly:exception_wrapper',
337-
'@/lithium/duplexconnection-proxygen:server',
338-
'@/lithium/duplexconnection:util',
339-
'@/lithium/reactivesocket-cpp/experimental/yarpl:reactive-streams',
340-
'@/lithium/reactivesocket-cpp/experimental/yarpl:yarpl',
341-
'@/lithium/reactivesocket-utils:reactivesocket-external-utils',
342-
'@/proxygen/httpserver:httpserver',
349+
'@/rsocket/dev/experimental/yarpl:yarpl',
343350
],
344351
compiler_flags=['-DREACTIVE_SOCKET_EXTERNAL_STACK_TRACE_UTILS'],
345352
)

examples/stream-hello-world/TARGETS

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,26 @@ cpp_binary(
22
name = 'tcp-server',
33
headers = subdir_glob([('.', '**/*.h')]),
44
srcs = [
5-
'HelloStreamRequestHandler.cpp',
6-
'HelloStreamSubscription.cpp',
75
'StreamHelloWorld_Server.cpp',
86
],
97
deps = [
108
'@/folly/init:init',
11-
'@/lithium/reactivesocket-cpp:rsocket',
9+
'@/rsocket/dev:rsocket',
10+
'@/rsocket/dev:plugins',
11+
'@/rsocket/dev/examples/util:subscriber',
1212
],
1313
)
1414

1515
cpp_binary(
1616
name = 'tcp-client',
1717
headers = subdir_glob([('.', '**/*.h')]),
1818
srcs = [
19-
'HelloStreamRequestHandler.cpp',
20-
'HelloStreamSubscription.cpp',
2119
'StreamHelloWorld_Client.cpp',
2220
],
2321
deps = [
2422
'@/folly/init:init',
25-
'@/lithium/reactivesocket-cpp/examples/util:subscriber',
26-
'@/lithium/reactivesocket-cpp:rsocket',
23+
'@/rsocket/dev:rsocket',
24+
'@/rsocket/dev:plugins',
25+
'@/rsocket/dev/examples/util:subscriber',
2726
],
2827
)

examples/stream-observable-to-flowable/TARGETS

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,26 @@ cpp_binary(
22
name = 'tcp-server',
33
headers = subdir_glob([('.', '**/*.h')]),
44
srcs = [
5-
'HelloStreamRequestHandler.cpp',
6-
'HelloStreamSubscription.cpp',
7-
'StreamHelloWorld_Server.cpp',
5+
'StreamObservableToFlowable_Server.cpp',
86
],
97
deps = [
108
'@/folly/init:init',
11-
'@/lithium/reactivesocket-cpp:rsocket',
9+
'@/rsocket/dev:rsocket',
10+
'@/rsocket/dev:plugins',
11+
'@/rsocket/dev/examples/util:subscriber',
1212
],
1313
)
1414

1515
cpp_binary(
1616
name = 'tcp-client',
1717
headers = subdir_glob([('.', '**/*.h')]),
1818
srcs = [
19-
'HelloStreamRequestHandler.cpp',
20-
'HelloStreamSubscription.cpp',
21-
'StreamHelloWorld_Client.cpp',
19+
'StreamObservableToFlowable_Client.cpp',
2220
],
2321
deps = [
2422
'@/folly/init:init',
25-
'@/lithium/reactivesocket-cpp/examples/util:subscriber',
26-
'@/lithium/reactivesocket-cpp:rsocket',
23+
'@/rsocket/dev:rsocket',
24+
'@/rsocket/dev:plugins',
25+
'@/rsocket/dev/examples/util:subscriber',
2726
],
2827
)

0 commit comments

Comments
 (0)