blob: 217e497046535fca2d0d8ae2b1137dc994e01f68 [file] [log] [blame]
Nicolas "Pixel" Noblef6edf682015-03-31 05:17:34 +02001# GRPC Bazel BUILD file.
2# This currently builds C and C++ code.
3
4# Copyright 2015, Google Inc.
5# All rights reserved.
6#
7# Redistribution and use in source and binary forms, with or without
8# modification, are permitted provided that the following conditions are
9# met:
10#
11# * Redistributions of source code must retain the above copyright
12# notice, this list of conditions and the following disclaimer.
13# * Redistributions in binary form must reproduce the above
14# copyright notice, this list of conditions and the following disclaimer
15# in the documentation and/or other materials provided with the
16# distribution.
17# * Neither the name of Google Inc. nor the names of its
18# contributors may be used to endorse or promote products derived from
19# this software without specific prior written permission.
20#
21# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
33licenses(["notice"]) # 3-clause BSD
34
Ming Zhao3c0ba0c2015-04-10 12:05:22 -070035package(default_visibility = ["//visibility:public"])
Nicolas "Pixel" Noblef6edf682015-03-31 05:17:34 +020036
37
38
39
40cc_library(
Ming Zhao3c0ba0c2015-04-10 12:05:22 -070041 name = "gpr",
42 srcs = [
43 "src/core/support/env.h",
44 "src/core/support/file.h",
45 "src/core/support/murmur_hash.h",
46 "src/core/support/string.h",
47 "src/core/support/string_win32.h",
48 "src/core/support/thd_internal.h",
49 "src/core/support/alloc.c",
50 "src/core/support/cancellable.c",
51 "src/core/support/cmdline.c",
52 "src/core/support/cpu_iphone.c",
53 "src/core/support/cpu_linux.c",
54 "src/core/support/cpu_posix.c",
55 "src/core/support/cpu_windows.c",
56 "src/core/support/env_linux.c",
57 "src/core/support/env_posix.c",
58 "src/core/support/env_win32.c",
59 "src/core/support/file.c",
60 "src/core/support/file_posix.c",
61 "src/core/support/file_win32.c",
62 "src/core/support/histogram.c",
63 "src/core/support/host_port.c",
64 "src/core/support/log.c",
65 "src/core/support/log_android.c",
66 "src/core/support/log_linux.c",
67 "src/core/support/log_posix.c",
68 "src/core/support/log_win32.c",
69 "src/core/support/murmur_hash.c",
70 "src/core/support/slice.c",
71 "src/core/support/slice_buffer.c",
72 "src/core/support/string.c",
73 "src/core/support/string_posix.c",
74 "src/core/support/string_win32.c",
75 "src/core/support/sync.c",
76 "src/core/support/sync_posix.c",
77 "src/core/support/sync_win32.c",
78 "src/core/support/thd.c",
79 "src/core/support/thd_posix.c",
80 "src/core/support/thd_win32.c",
81 "src/core/support/time.c",
82 "src/core/support/time_posix.c",
83 "src/core/support/time_win32.c",
84 ],
85 hdrs = [
86 "include/grpc/support/alloc.h",
87 "include/grpc/support/atm.h",
88 "include/grpc/support/atm_gcc_atomic.h",
89 "include/grpc/support/atm_gcc_sync.h",
90 "include/grpc/support/atm_win32.h",
91 "include/grpc/support/cancellable_platform.h",
92 "include/grpc/support/cmdline.h",
93 "include/grpc/support/cpu.h",
94 "include/grpc/support/histogram.h",
95 "include/grpc/support/host_port.h",
96 "include/grpc/support/log.h",
97 "include/grpc/support/log_win32.h",
98 "include/grpc/support/port_platform.h",
99 "include/grpc/support/slice.h",
100 "include/grpc/support/slice_buffer.h",
101 "include/grpc/support/sync.h",
102 "include/grpc/support/sync_generic.h",
103 "include/grpc/support/sync_posix.h",
104 "include/grpc/support/sync_win32.h",
105 "include/grpc/support/thd.h",
106 "include/grpc/support/time.h",
107 "include/grpc/support/useful.h",
108 ],
109 includes = [
110 "include",
111 ".",
112 ],
113 deps = [
114 ],
Nicolas "Pixel" Noblef6edf682015-03-31 05:17:34 +0200115)
116
117
Nicolas "Pixel" Noblef6edf682015-03-31 05:17:34 +0200118cc_library(
Ming Zhao3c0ba0c2015-04-10 12:05:22 -0700119 name = "grpc",
120 srcs = [
121 "src/core/httpcli/format_request.h",
122 "src/core/httpcli/httpcli.h",
123 "src/core/httpcli/httpcli_security_context.h",
124 "src/core/httpcli/parser.h",
125 "src/core/security/auth.h",
126 "src/core/security/base64.h",
127 "src/core/security/credentials.h",
128 "src/core/security/json_token.h",
129 "src/core/security/secure_endpoint.h",
130 "src/core/security/secure_transport_setup.h",
131 "src/core/security/security_context.h",
132 "src/core/tsi/fake_transport_security.h",
133 "src/core/tsi/ssl_transport_security.h",
134 "src/core/tsi/transport_security.h",
135 "src/core/tsi/transport_security_interface.h",
136 "src/core/channel/census_filter.h",
137 "src/core/channel/channel_args.h",
138 "src/core/channel/channel_stack.h",
139 "src/core/channel/child_channel.h",
140 "src/core/channel/client_channel.h",
141 "src/core/channel/client_setup.h",
142 "src/core/channel/connected_channel.h",
143 "src/core/channel/http_client_filter.h",
144 "src/core/channel/http_filter.h",
145 "src/core/channel/http_server_filter.h",
146 "src/core/channel/metadata_buffer.h",
147 "src/core/channel/noop_filter.h",
148 "src/core/compression/algorithm.h",
149 "src/core/compression/message_compress.h",
150 "src/core/debug/trace.h",
151 "src/core/iomgr/alarm.h",
152 "src/core/iomgr/alarm_heap.h",
153 "src/core/iomgr/alarm_internal.h",
154 "src/core/iomgr/endpoint.h",
155 "src/core/iomgr/endpoint_pair.h",
156 "src/core/iomgr/fd_posix.h",
157 "src/core/iomgr/iocp_windows.h",
158 "src/core/iomgr/iomgr.h",
159 "src/core/iomgr/iomgr_internal.h",
160 "src/core/iomgr/iomgr_posix.h",
161 "src/core/iomgr/pollset.h",
162 "src/core/iomgr/pollset_kick.h",
163 "src/core/iomgr/pollset_kick_posix.h",
164 "src/core/iomgr/pollset_kick_windows.h",
165 "src/core/iomgr/pollset_posix.h",
166 "src/core/iomgr/pollset_windows.h",
167 "src/core/iomgr/resolve_address.h",
168 "src/core/iomgr/sockaddr.h",
169 "src/core/iomgr/sockaddr_posix.h",
170 "src/core/iomgr/sockaddr_utils.h",
171 "src/core/iomgr/sockaddr_win32.h",
172 "src/core/iomgr/socket_utils_posix.h",
173 "src/core/iomgr/socket_windows.h",
174 "src/core/iomgr/tcp_client.h",
175 "src/core/iomgr/tcp_posix.h",
176 "src/core/iomgr/tcp_server.h",
177 "src/core/iomgr/tcp_windows.h",
178 "src/core/iomgr/time_averaged_stats.h",
179 "src/core/iomgr/wakeup_fd_pipe.h",
180 "src/core/iomgr/wakeup_fd_posix.h",
181 "src/core/json/json.h",
182 "src/core/json/json_common.h",
183 "src/core/json/json_reader.h",
184 "src/core/json/json_writer.h",
185 "src/core/statistics/census_interface.h",
186 "src/core/statistics/census_log.h",
187 "src/core/statistics/census_rpc_stats.h",
188 "src/core/statistics/census_tracing.h",
189 "src/core/statistics/hash_table.h",
Vijay Pai75499982015-04-13 07:06:36 -0700190 "src/core/statistics/timers.h",
Ming Zhao3c0ba0c2015-04-10 12:05:22 -0700191 "src/core/statistics/window_stats.h",
192 "src/core/surface/byte_buffer_queue.h",
193 "src/core/surface/call.h",
194 "src/core/surface/channel.h",
195 "src/core/surface/client.h",
196 "src/core/surface/completion_queue.h",
197 "src/core/surface/event_string.h",
198 "src/core/surface/init.h",
199 "src/core/surface/server.h",
200 "src/core/surface/surface_trace.h",
201 "src/core/transport/chttp2/alpn.h",
202 "src/core/transport/chttp2/bin_encoder.h",
203 "src/core/transport/chttp2/frame.h",
204 "src/core/transport/chttp2/frame_data.h",
205 "src/core/transport/chttp2/frame_goaway.h",
206 "src/core/transport/chttp2/frame_ping.h",
207 "src/core/transport/chttp2/frame_rst_stream.h",
208 "src/core/transport/chttp2/frame_settings.h",
209 "src/core/transport/chttp2/frame_window_update.h",
210 "src/core/transport/chttp2/hpack_parser.h",
211 "src/core/transport/chttp2/hpack_table.h",
212 "src/core/transport/chttp2/http2_errors.h",
213 "src/core/transport/chttp2/huffsyms.h",
214 "src/core/transport/chttp2/status_conversion.h",
215 "src/core/transport/chttp2/stream_encoder.h",
216 "src/core/transport/chttp2/stream_map.h",
217 "src/core/transport/chttp2/timeout_encoding.h",
218 "src/core/transport/chttp2/varint.h",
219 "src/core/transport/chttp2_transport.h",
220 "src/core/transport/metadata.h",
221 "src/core/transport/stream_op.h",
222 "src/core/transport/transport.h",
223 "src/core/transport/transport_impl.h",
224 "src/core/httpcli/format_request.c",
225 "src/core/httpcli/httpcli.c",
226 "src/core/httpcli/httpcli_security_context.c",
227 "src/core/httpcli/parser.c",
228 "src/core/security/auth.c",
229 "src/core/security/base64.c",
230 "src/core/security/credentials.c",
231 "src/core/security/credentials_posix.c",
232 "src/core/security/credentials_win32.c",
233 "src/core/security/factories.c",
234 "src/core/security/google_default_credentials.c",
235 "src/core/security/json_token.c",
236 "src/core/security/secure_endpoint.c",
237 "src/core/security/secure_transport_setup.c",
238 "src/core/security/security_context.c",
239 "src/core/security/server_secure_chttp2.c",
240 "src/core/surface/init_secure.c",
241 "src/core/surface/secure_channel_create.c",
242 "src/core/tsi/fake_transport_security.c",
243 "src/core/tsi/ssl_transport_security.c",
244 "src/core/tsi/transport_security.c",
245 "src/core/channel/call_op_string.c",
246 "src/core/channel/census_filter.c",
247 "src/core/channel/channel_args.c",
248 "src/core/channel/channel_stack.c",
249 "src/core/channel/child_channel.c",
250 "src/core/channel/client_channel.c",
251 "src/core/channel/client_setup.c",
252 "src/core/channel/connected_channel.c",
253 "src/core/channel/http_client_filter.c",
254 "src/core/channel/http_filter.c",
255 "src/core/channel/http_server_filter.c",
256 "src/core/channel/metadata_buffer.c",
257 "src/core/channel/noop_filter.c",
258 "src/core/compression/algorithm.c",
259 "src/core/compression/message_compress.c",
260 "src/core/debug/trace.c",
261 "src/core/iomgr/alarm.c",
262 "src/core/iomgr/alarm_heap.c",
263 "src/core/iomgr/endpoint.c",
264 "src/core/iomgr/endpoint_pair_posix.c",
265 "src/core/iomgr/fd_posix.c",
266 "src/core/iomgr/iocp_windows.c",
267 "src/core/iomgr/iomgr.c",
268 "src/core/iomgr/iomgr_posix.c",
269 "src/core/iomgr/iomgr_windows.c",
270 "src/core/iomgr/pollset_kick.c",
271 "src/core/iomgr/pollset_multipoller_with_epoll.c",
272 "src/core/iomgr/pollset_multipoller_with_poll_posix.c",
273 "src/core/iomgr/pollset_posix.c",
274 "src/core/iomgr/pollset_windows.c",
275 "src/core/iomgr/resolve_address_posix.c",
276 "src/core/iomgr/resolve_address_windows.c",
277 "src/core/iomgr/sockaddr_utils.c",
278 "src/core/iomgr/socket_utils_common_posix.c",
279 "src/core/iomgr/socket_utils_linux.c",
280 "src/core/iomgr/socket_utils_posix.c",
281 "src/core/iomgr/socket_windows.c",
282 "src/core/iomgr/tcp_client_posix.c",
283 "src/core/iomgr/tcp_client_windows.c",
284 "src/core/iomgr/tcp_posix.c",
285 "src/core/iomgr/tcp_server_posix.c",
286 "src/core/iomgr/tcp_server_windows.c",
287 "src/core/iomgr/tcp_windows.c",
288 "src/core/iomgr/time_averaged_stats.c",
289 "src/core/iomgr/wakeup_fd_eventfd.c",
290 "src/core/iomgr/wakeup_fd_nospecial.c",
291 "src/core/iomgr/wakeup_fd_pipe.c",
292 "src/core/iomgr/wakeup_fd_posix.c",
293 "src/core/json/json.c",
294 "src/core/json/json_reader.c",
295 "src/core/json/json_string.c",
296 "src/core/json/json_writer.c",
297 "src/core/statistics/census_init.c",
298 "src/core/statistics/census_log.c",
299 "src/core/statistics/census_rpc_stats.c",
300 "src/core/statistics/census_tracing.c",
301 "src/core/statistics/hash_table.c",
Vijay Pai75499982015-04-13 07:06:36 -0700302 "src/core/statistics/timers.c",
Ming Zhao3c0ba0c2015-04-10 12:05:22 -0700303 "src/core/statistics/window_stats.c",
304 "src/core/surface/byte_buffer.c",
305 "src/core/surface/byte_buffer_queue.c",
306 "src/core/surface/byte_buffer_reader.c",
307 "src/core/surface/call.c",
308 "src/core/surface/call_details.c",
309 "src/core/surface/call_log_batch.c",
310 "src/core/surface/channel.c",
311 "src/core/surface/channel_create.c",
312 "src/core/surface/client.c",
313 "src/core/surface/completion_queue.c",
314 "src/core/surface/event_string.c",
315 "src/core/surface/init.c",
316 "src/core/surface/lame_client.c",
317 "src/core/surface/metadata_array.c",
318 "src/core/surface/server.c",
319 "src/core/surface/server_chttp2.c",
320 "src/core/surface/server_create.c",
321 "src/core/surface/surface_trace.c",
322 "src/core/transport/chttp2/alpn.c",
323 "src/core/transport/chttp2/bin_encoder.c",
324 "src/core/transport/chttp2/frame_data.c",
325 "src/core/transport/chttp2/frame_goaway.c",
326 "src/core/transport/chttp2/frame_ping.c",
327 "src/core/transport/chttp2/frame_rst_stream.c",
328 "src/core/transport/chttp2/frame_settings.c",
329 "src/core/transport/chttp2/frame_window_update.c",
330 "src/core/transport/chttp2/hpack_parser.c",
331 "src/core/transport/chttp2/hpack_table.c",
332 "src/core/transport/chttp2/huffsyms.c",
333 "src/core/transport/chttp2/status_conversion.c",
334 "src/core/transport/chttp2/stream_encoder.c",
335 "src/core/transport/chttp2/stream_map.c",
336 "src/core/transport/chttp2/timeout_encoding.c",
337 "src/core/transport/chttp2/varint.c",
338 "src/core/transport/chttp2_transport.c",
339 "src/core/transport/metadata.c",
340 "src/core/transport/stream_op.c",
341 "src/core/transport/transport.c",
342 ],
343 hdrs = [
344 "include/grpc/grpc_security.h",
345 "include/grpc/byte_buffer.h",
346 "include/grpc/byte_buffer_reader.h",
347 "include/grpc/grpc.h",
348 "include/grpc/grpc_http.h",
349 "include/grpc/status.h",
350 ],
351 includes = [
352 "include",
353 ".",
354 ],
355 deps = [
356 "//external:libssl",
357 ":gpr",
358 ],
Nicolas "Pixel" Noblef6edf682015-03-31 05:17:34 +0200359)
360
361
Ming Zhao3c0ba0c2015-04-10 12:05:22 -0700362cc_library(
363 name = "grpc_unsecure",
364 srcs = [
365 "src/core/channel/census_filter.h",
366 "src/core/channel/channel_args.h",
367 "src/core/channel/channel_stack.h",
368 "src/core/channel/child_channel.h",
369 "src/core/channel/client_channel.h",
370 "src/core/channel/client_setup.h",
371 "src/core/channel/connected_channel.h",
372 "src/core/channel/http_client_filter.h",
373 "src/core/channel/http_filter.h",
374 "src/core/channel/http_server_filter.h",
375 "src/core/channel/metadata_buffer.h",
376 "src/core/channel/noop_filter.h",
377 "src/core/compression/algorithm.h",
378 "src/core/compression/message_compress.h",
379 "src/core/debug/trace.h",
380 "src/core/iomgr/alarm.h",
381 "src/core/iomgr/alarm_heap.h",
382 "src/core/iomgr/alarm_internal.h",
383 "src/core/iomgr/endpoint.h",
384 "src/core/iomgr/endpoint_pair.h",
385 "src/core/iomgr/fd_posix.h",
386 "src/core/iomgr/iocp_windows.h",
387 "src/core/iomgr/iomgr.h",
388 "src/core/iomgr/iomgr_internal.h",
389 "src/core/iomgr/iomgr_posix.h",
390 "src/core/iomgr/pollset.h",
391 "src/core/iomgr/pollset_kick.h",
392 "src/core/iomgr/pollset_kick_posix.h",
393 "src/core/iomgr/pollset_kick_windows.h",
394 "src/core/iomgr/pollset_posix.h",
395 "src/core/iomgr/pollset_windows.h",
396 "src/core/iomgr/resolve_address.h",
397 "src/core/iomgr/sockaddr.h",
398 "src/core/iomgr/sockaddr_posix.h",
399 "src/core/iomgr/sockaddr_utils.h",
400 "src/core/iomgr/sockaddr_win32.h",
401 "src/core/iomgr/socket_utils_posix.h",
402 "src/core/iomgr/socket_windows.h",
403 "src/core/iomgr/tcp_client.h",
404 "src/core/iomgr/tcp_posix.h",
405 "src/core/iomgr/tcp_server.h",
406 "src/core/iomgr/tcp_windows.h",
407 "src/core/iomgr/time_averaged_stats.h",
408 "src/core/iomgr/wakeup_fd_pipe.h",
409 "src/core/iomgr/wakeup_fd_posix.h",
410 "src/core/json/json.h",
411 "src/core/json/json_common.h",
412 "src/core/json/json_reader.h",
413 "src/core/json/json_writer.h",
414 "src/core/statistics/census_interface.h",
415 "src/core/statistics/census_log.h",
416 "src/core/statistics/census_rpc_stats.h",
417 "src/core/statistics/census_tracing.h",
418 "src/core/statistics/hash_table.h",
Vijay Pai75499982015-04-13 07:06:36 -0700419 "src/core/statistics/timers.h",
Ming Zhao3c0ba0c2015-04-10 12:05:22 -0700420 "src/core/statistics/window_stats.h",
421 "src/core/surface/byte_buffer_queue.h",
422 "src/core/surface/call.h",
423 "src/core/surface/channel.h",
424 "src/core/surface/client.h",
425 "src/core/surface/completion_queue.h",
426 "src/core/surface/event_string.h",
427 "src/core/surface/init.h",
428 "src/core/surface/server.h",
429 "src/core/surface/surface_trace.h",
430 "src/core/transport/chttp2/alpn.h",
431 "src/core/transport/chttp2/bin_encoder.h",
432 "src/core/transport/chttp2/frame.h",
433 "src/core/transport/chttp2/frame_data.h",
434 "src/core/transport/chttp2/frame_goaway.h",
435 "src/core/transport/chttp2/frame_ping.h",
436 "src/core/transport/chttp2/frame_rst_stream.h",
437 "src/core/transport/chttp2/frame_settings.h",
438 "src/core/transport/chttp2/frame_window_update.h",
439 "src/core/transport/chttp2/hpack_parser.h",
440 "src/core/transport/chttp2/hpack_table.h",
441 "src/core/transport/chttp2/http2_errors.h",
442 "src/core/transport/chttp2/huffsyms.h",
443 "src/core/transport/chttp2/status_conversion.h",
444 "src/core/transport/chttp2/stream_encoder.h",
445 "src/core/transport/chttp2/stream_map.h",
446 "src/core/transport/chttp2/timeout_encoding.h",
447 "src/core/transport/chttp2/varint.h",
448 "src/core/transport/chttp2_transport.h",
449 "src/core/transport/metadata.h",
450 "src/core/transport/stream_op.h",
451 "src/core/transport/transport.h",
452 "src/core/transport/transport_impl.h",
453 "src/core/surface/init_unsecure.c",
454 "src/core/channel/call_op_string.c",
455 "src/core/channel/census_filter.c",
456 "src/core/channel/channel_args.c",
457 "src/core/channel/channel_stack.c",
458 "src/core/channel/child_channel.c",
459 "src/core/channel/client_channel.c",
460 "src/core/channel/client_setup.c",
461 "src/core/channel/connected_channel.c",
462 "src/core/channel/http_client_filter.c",
463 "src/core/channel/http_filter.c",
464 "src/core/channel/http_server_filter.c",
465 "src/core/channel/metadata_buffer.c",
466 "src/core/channel/noop_filter.c",
467 "src/core/compression/algorithm.c",
468 "src/core/compression/message_compress.c",
469 "src/core/debug/trace.c",
470 "src/core/iomgr/alarm.c",
471 "src/core/iomgr/alarm_heap.c",
472 "src/core/iomgr/endpoint.c",
473 "src/core/iomgr/endpoint_pair_posix.c",
474 "src/core/iomgr/fd_posix.c",
475 "src/core/iomgr/iocp_windows.c",
476 "src/core/iomgr/iomgr.c",
477 "src/core/iomgr/iomgr_posix.c",
478 "src/core/iomgr/iomgr_windows.c",
479 "src/core/iomgr/pollset_kick.c",
480 "src/core/iomgr/pollset_multipoller_with_epoll.c",
481 "src/core/iomgr/pollset_multipoller_with_poll_posix.c",
482 "src/core/iomgr/pollset_posix.c",
483 "src/core/iomgr/pollset_windows.c",
484 "src/core/iomgr/resolve_address_posix.c",
485 "src/core/iomgr/resolve_address_windows.c",
486 "src/core/iomgr/sockaddr_utils.c",
487 "src/core/iomgr/socket_utils_common_posix.c",
488 "src/core/iomgr/socket_utils_linux.c",
489 "src/core/iomgr/socket_utils_posix.c",
490 "src/core/iomgr/socket_windows.c",
491 "src/core/iomgr/tcp_client_posix.c",
492 "src/core/iomgr/tcp_client_windows.c",
493 "src/core/iomgr/tcp_posix.c",
494 "src/core/iomgr/tcp_server_posix.c",
495 "src/core/iomgr/tcp_server_windows.c",
496 "src/core/iomgr/tcp_windows.c",
497 "src/core/iomgr/time_averaged_stats.c",
498 "src/core/iomgr/wakeup_fd_eventfd.c",
499 "src/core/iomgr/wakeup_fd_nospecial.c",
500 "src/core/iomgr/wakeup_fd_pipe.c",
501 "src/core/iomgr/wakeup_fd_posix.c",
502 "src/core/json/json.c",
503 "src/core/json/json_reader.c",
504 "src/core/json/json_string.c",
505 "src/core/json/json_writer.c",
506 "src/core/statistics/census_init.c",
507 "src/core/statistics/census_log.c",
508 "src/core/statistics/census_rpc_stats.c",
509 "src/core/statistics/census_tracing.c",
510 "src/core/statistics/hash_table.c",
Vijay Pai75499982015-04-13 07:06:36 -0700511 "src/core/statistics/timers.c",
Ming Zhao3c0ba0c2015-04-10 12:05:22 -0700512 "src/core/statistics/window_stats.c",
513 "src/core/surface/byte_buffer.c",
514 "src/core/surface/byte_buffer_queue.c",
515 "src/core/surface/byte_buffer_reader.c",
516 "src/core/surface/call.c",
517 "src/core/surface/call_details.c",
518 "src/core/surface/call_log_batch.c",
519 "src/core/surface/channel.c",
520 "src/core/surface/channel_create.c",
521 "src/core/surface/client.c",
522 "src/core/surface/completion_queue.c",
523 "src/core/surface/event_string.c",
524 "src/core/surface/init.c",
525 "src/core/surface/lame_client.c",
526 "src/core/surface/metadata_array.c",
527 "src/core/surface/server.c",
528 "src/core/surface/server_chttp2.c",
529 "src/core/surface/server_create.c",
530 "src/core/surface/surface_trace.c",
531 "src/core/transport/chttp2/alpn.c",
532 "src/core/transport/chttp2/bin_encoder.c",
533 "src/core/transport/chttp2/frame_data.c",
534 "src/core/transport/chttp2/frame_goaway.c",
535 "src/core/transport/chttp2/frame_ping.c",
536 "src/core/transport/chttp2/frame_rst_stream.c",
537 "src/core/transport/chttp2/frame_settings.c",
538 "src/core/transport/chttp2/frame_window_update.c",
539 "src/core/transport/chttp2/hpack_parser.c",
540 "src/core/transport/chttp2/hpack_table.c",
541 "src/core/transport/chttp2/huffsyms.c",
542 "src/core/transport/chttp2/status_conversion.c",
543 "src/core/transport/chttp2/stream_encoder.c",
544 "src/core/transport/chttp2/stream_map.c",
545 "src/core/transport/chttp2/timeout_encoding.c",
546 "src/core/transport/chttp2/varint.c",
547 "src/core/transport/chttp2_transport.c",
548 "src/core/transport/metadata.c",
549 "src/core/transport/stream_op.c",
550 "src/core/transport/transport.c",
551 ],
552 hdrs = [
553 "include/grpc/byte_buffer.h",
554 "include/grpc/byte_buffer_reader.h",
555 "include/grpc/grpc.h",
556 "include/grpc/grpc_http.h",
557 "include/grpc/status.h",
558 ],
559 includes = [
560 "include",
561 ".",
562 ],
563 deps = [
564 ":gpr",
565 ],
566)
567
568
569cc_library(
570 name = "grpc++",
571 srcs = [
572 "src/cpp/client/secure_credentials.h",
573 "src/cpp/server/secure_server_credentials.h",
574 "src/cpp/client/channel.h",
575 "src/cpp/proto/proto_utils.h",
576 "src/cpp/server/thread_pool.h",
577 "src/cpp/util/time.h",
578 "src/cpp/client/secure_credentials.cc",
579 "src/cpp/server/secure_server_credentials.cc",
580 "src/cpp/client/channel.cc",
581 "src/cpp/client/channel_arguments.cc",
582 "src/cpp/client/client_context.cc",
583 "src/cpp/client/client_unary_call.cc",
584 "src/cpp/client/create_channel.cc",
585 "src/cpp/client/credentials.cc",
586 "src/cpp/client/generic_stub.cc",
587 "src/cpp/client/insecure_credentials.cc",
588 "src/cpp/client/internal_stub.cc",
589 "src/cpp/common/call.cc",
590 "src/cpp/common/completion_queue.cc",
591 "src/cpp/common/rpc_method.cc",
592 "src/cpp/proto/proto_utils.cc",
593 "src/cpp/server/async_generic_service.cc",
594 "src/cpp/server/insecure_server_credentials.cc",
595 "src/cpp/server/server.cc",
596 "src/cpp/server/server_builder.cc",
597 "src/cpp/server/server_context.cc",
598 "src/cpp/server/server_credentials.cc",
599 "src/cpp/server/thread_pool.cc",
600 "src/cpp/util/byte_buffer.cc",
601 "src/cpp/util/slice.cc",
602 "src/cpp/util/status.cc",
603 "src/cpp/util/time.cc",
604 ],
605 hdrs = [
606 "include/grpc++/async_generic_service.h",
607 "include/grpc++/async_unary_call.h",
608 "include/grpc++/byte_buffer.h",
609 "include/grpc++/channel_arguments.h",
610 "include/grpc++/channel_interface.h",
611 "include/grpc++/client_context.h",
612 "include/grpc++/completion_queue.h",
613 "include/grpc++/config.h",
614 "include/grpc++/create_channel.h",
615 "include/grpc++/credentials.h",
616 "include/grpc++/generic_stub.h",
617 "include/grpc++/impl/call.h",
618 "include/grpc++/impl/client_unary_call.h",
619 "include/grpc++/impl/internal_stub.h",
620 "include/grpc++/impl/rpc_method.h",
621 "include/grpc++/impl/rpc_service_method.h",
622 "include/grpc++/impl/service_type.h",
Vijay Pai75499982015-04-13 07:06:36 -0700623 "include/grpc++/impl/sync.h",
624 "include/grpc++/impl/sync_cxx11.h",
625 "include/grpc++/impl/sync_no_cxx11.h",
626 "include/grpc++/impl/thd.h",
627 "include/grpc++/impl/thd_cxx11.h",
628 "include/grpc++/impl/thd_no_cxx11.h",
Ming Zhao3c0ba0c2015-04-10 12:05:22 -0700629 "include/grpc++/server.h",
630 "include/grpc++/server_builder.h",
631 "include/grpc++/server_context.h",
632 "include/grpc++/server_credentials.h",
633 "include/grpc++/slice.h",
634 "include/grpc++/status.h",
635 "include/grpc++/status_code_enum.h",
636 "include/grpc++/stream.h",
637 "include/grpc++/thread_pool_interface.h",
638 ],
639 includes = [
640 "include",
641 ".",
642 ],
643 deps = [
644 "//external:protobuf_clib",
645 ":gpr",
646 ":grpc",
647 ],
648)
649
650
651cc_library(
652 name = "grpc++_unsecure",
653 srcs = [
654 "src/cpp/client/channel.h",
655 "src/cpp/proto/proto_utils.h",
656 "src/cpp/server/thread_pool.h",
657 "src/cpp/util/time.h",
658 "src/cpp/client/channel.cc",
659 "src/cpp/client/channel_arguments.cc",
660 "src/cpp/client/client_context.cc",
661 "src/cpp/client/client_unary_call.cc",
662 "src/cpp/client/create_channel.cc",
663 "src/cpp/client/credentials.cc",
664 "src/cpp/client/generic_stub.cc",
665 "src/cpp/client/insecure_credentials.cc",
666 "src/cpp/client/internal_stub.cc",
667 "src/cpp/common/call.cc",
668 "src/cpp/common/completion_queue.cc",
669 "src/cpp/common/rpc_method.cc",
670 "src/cpp/proto/proto_utils.cc",
671 "src/cpp/server/async_generic_service.cc",
672 "src/cpp/server/insecure_server_credentials.cc",
673 "src/cpp/server/server.cc",
674 "src/cpp/server/server_builder.cc",
675 "src/cpp/server/server_context.cc",
676 "src/cpp/server/server_credentials.cc",
677 "src/cpp/server/thread_pool.cc",
678 "src/cpp/util/byte_buffer.cc",
679 "src/cpp/util/slice.cc",
680 "src/cpp/util/status.cc",
681 "src/cpp/util/time.cc",
682 ],
683 hdrs = [
684 "include/grpc++/async_generic_service.h",
685 "include/grpc++/async_unary_call.h",
686 "include/grpc++/byte_buffer.h",
687 "include/grpc++/channel_arguments.h",
688 "include/grpc++/channel_interface.h",
689 "include/grpc++/client_context.h",
690 "include/grpc++/completion_queue.h",
691 "include/grpc++/config.h",
692 "include/grpc++/create_channel.h",
693 "include/grpc++/credentials.h",
694 "include/grpc++/generic_stub.h",
695 "include/grpc++/impl/call.h",
696 "include/grpc++/impl/client_unary_call.h",
697 "include/grpc++/impl/internal_stub.h",
698 "include/grpc++/impl/rpc_method.h",
699 "include/grpc++/impl/rpc_service_method.h",
700 "include/grpc++/impl/service_type.h",
Vijay Pai75499982015-04-13 07:06:36 -0700701 "include/grpc++/impl/sync.h",
702 "include/grpc++/impl/sync_cxx11.h",
703 "include/grpc++/impl/sync_no_cxx11.h",
704 "include/grpc++/impl/thd.h",
705 "include/grpc++/impl/thd_cxx11.h",
706 "include/grpc++/impl/thd_no_cxx11.h",
Ming Zhao3c0ba0c2015-04-10 12:05:22 -0700707 "include/grpc++/server.h",
708 "include/grpc++/server_builder.h",
709 "include/grpc++/server_context.h",
710 "include/grpc++/server_credentials.h",
711 "include/grpc++/slice.h",
712 "include/grpc++/status.h",
713 "include/grpc++/status_code_enum.h",
714 "include/grpc++/stream.h",
715 "include/grpc++/thread_pool_interface.h",
716 ],
717 includes = [
718 "include",
719 ".",
720 ],
721 deps = [
722 "//external:protobuf_clib",
723 ":gpr",
724 ":grpc_unsecure",
725 ],
726)
727
728
729cc_library(
730 name = "grpc_plugin_support",
731 srcs = [
732 "src/compiler/config.h",
733 "src/compiler/cpp_generator.h",
734 "src/compiler/cpp_generator_helpers.h",
735 "src/compiler/generator_helpers.h",
736 "src/compiler/objective_c_generator.h",
737 "src/compiler/objective_c_generator_helpers.h",
738 "src/compiler/python_generator.h",
739 "src/compiler/ruby_generator.h",
740 "src/compiler/ruby_generator_helpers-inl.h",
741 "src/compiler/ruby_generator_map-inl.h",
742 "src/compiler/ruby_generator_string-inl.h",
743 "src/compiler/cpp_generator.cc",
744 "src/compiler/objective_c_generator.cc",
745 "src/compiler/python_generator.cc",
746 "src/compiler/ruby_generator.cc",
747 ],
748 hdrs = [
749 ],
750 includes = [
751 "include",
752 ".",
753 ],
754 deps = [
755 "//external:protobuf_compiler",
756 ],
757)
758
759
760cc_library(
761 name = "grpc_csharp_ext",
762 srcs = [
763 "src/csharp/ext/grpc_csharp_ext.c",
764 ],
765 hdrs = [
766 ],
767 includes = [
768 "include",
769 ".",
770 ],
771 deps = [
772 ":gpr",
773 ":grpc",
774 ],
775)
776
777
778
779cc_binary(
780 name = "grpc_cpp_plugin",
781 srcs = [
782 "src/compiler/cpp_plugin.cc",
783 ],
784 deps = [
785 "//external:protobuf_compiler",
786 ":grpc_plugin_support",
787 ],
788)
789
790
791cc_binary(
792 name = "grpc_objective_c_plugin",
793 srcs = [
794 "src/compiler/objective_c_plugin.cc",
795 ],
796 deps = [
797 "//external:protobuf_compiler",
798 ":grpc_plugin_support",
799 ],
800)
801
802
803cc_binary(
804 name = "grpc_python_plugin",
805 srcs = [
806 "src/compiler/python_plugin.cc",
807 ],
808 deps = [
809 "//external:protobuf_compiler",
810 ":grpc_plugin_support",
811 ],
812)
813
814
815cc_binary(
816 name = "grpc_ruby_plugin",
817 srcs = [
818 "src/compiler/ruby_plugin.cc",
819 ],
820 deps = [
821 "//external:protobuf_compiler",
822 ":grpc_plugin_support",
823 ],
824)
825
826
827
Nicolas "Pixel" Noblef6edf682015-03-31 05:17:34 +0200828
829