BUILD 31 KB

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