BUILD 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234
  1. # gRPC Bazel BUILD file.
  2. #
  3. # Copyright 2016, Google Inc.
  4. # All rights reserved.
  5. #
  6. # Redistribution and use in source and binary forms, with or without
  7. # modification, are permitted provided that the following conditions are
  8. # met:
  9. #
  10. # * Redistributions of source code must retain the above copyright
  11. # notice, this list of conditions and the following disclaimer.
  12. # * Redistributions in binary form must reproduce the above
  13. # copyright notice, this list of conditions and the following disclaimer
  14. # in the documentation and/or other materials provided with the
  15. # distribution.
  16. # * Neither the name of Google Inc. nor the names of its
  17. # contributors may be used to endorse or promote products derived from
  18. # this software without specific prior written permission.
  19. #
  20. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. licenses(["notice"]) # 3-clause BSD
  32. exports_files(["LICENSE"])
  33. package(default_visibility = ["//visibility:public"])
  34. load("//bazel:grpc_build_system.bzl", "grpc_cc_library", "grpc_proto_plugin")
  35. g_stands_for = "good"
  36. core_version = "2.0.0-dev"
  37. version = "1.1.0-dev"
  38. grpc_cc_library(
  39. name = "gpr",
  40. language = "c",
  41. standalone = True,
  42. deps = [
  43. "gpr_base",
  44. ],
  45. )
  46. grpc_cc_library(
  47. name = "grpc",
  48. srcs = [
  49. "src/core/lib/surface/init.c",
  50. "src/core/plugin_registry/grpc_plugin_registry.c",
  51. ],
  52. language = "c",
  53. standalone = True,
  54. deps = [
  55. "census",
  56. "grpc_base",
  57. "grpc_lb_policy_grpclb",
  58. "grpc_lb_policy_pick_first",
  59. "grpc_lb_policy_round_robin",
  60. "grpc_load_reporting",
  61. "grpc_resolver_dns_native",
  62. "grpc_resolver_sockaddr",
  63. "grpc_secure",
  64. "grpc_transport_chttp2_client_insecure",
  65. "grpc_transport_chttp2_client_secure",
  66. "grpc_transport_chttp2_server_insecure",
  67. "grpc_transport_chttp2_server_secure",
  68. ],
  69. )
  70. grpc_cc_library(
  71. name = "grpc_cronet",
  72. srcs = [
  73. "src/core/lib/surface/init.c",
  74. "src/core/plugin_registry/grpc_cronet_plugin_registry.c",
  75. ],
  76. language = "c",
  77. deps = [
  78. "grpc_base",
  79. "grpc_transport_chttp2_client_secure",
  80. "grpc_transport_cronet_client_secure",
  81. ],
  82. )
  83. grpc_cc_library(
  84. name = "grpc_unsecure",
  85. srcs = [
  86. "src/core/lib/surface/init.c",
  87. "src/core/lib/surface/init_unsecure.c",
  88. "src/core/plugin_registry/grpc_unsecure_plugin_registry.c",
  89. ],
  90. language = "c",
  91. standalone = True,
  92. deps = [
  93. "census",
  94. "grpc_base",
  95. "grpc_lb_policy_grpclb",
  96. "grpc_lb_policy_pick_first",
  97. "grpc_lb_policy_round_robin",
  98. "grpc_load_reporting",
  99. "grpc_resolver_dns_native",
  100. "grpc_resolver_sockaddr",
  101. "grpc_transport_chttp2_client_insecure",
  102. "grpc_transport_chttp2_server_insecure",
  103. ],
  104. )
  105. grpc_cc_library(
  106. name = "grpc++",
  107. srcs = [
  108. "src/cpp/client/insecure_credentials.cc",
  109. "src/cpp/client/secure_credentials.cc",
  110. "src/cpp/common/auth_property_iterator.cc",
  111. "src/cpp/common/secure_auth_context.cc",
  112. "src/cpp/common/secure_channel_arguments.cc",
  113. "src/cpp/common/secure_create_auth_context.cc",
  114. "src/cpp/server/insecure_server_credentials.cc",
  115. "src/cpp/server/secure_server_credentials.cc",
  116. ],
  117. hdrs = [
  118. "include/grpc++/impl/codegen/core_codegen.h",
  119. "src/cpp/client/secure_credentials.h",
  120. "src/cpp/common/secure_auth_context.h",
  121. "src/cpp/server/secure_server_credentials.h",
  122. ],
  123. language = "c++",
  124. standalone = True,
  125. deps = [
  126. "gpr",
  127. "grpc",
  128. "grpc++_base",
  129. "grpc++_codegen_base",
  130. "grpc++_codegen_base_src",
  131. ],
  132. )
  133. grpc_cc_library(
  134. name = "grpc++_unsecure",
  135. srcs = [
  136. "src/cpp/client/insecure_credentials.cc",
  137. "src/cpp/common/insecure_create_auth_context.cc",
  138. "src/cpp/server/insecure_server_credentials.cc",
  139. ],
  140. language = "c++",
  141. standalone = True,
  142. deps = [
  143. "gpr",
  144. "grpc++_base",
  145. "grpc++_codegen_base",
  146. "grpc++_codegen_base_src",
  147. "grpc_unsecure",
  148. ],
  149. )
  150. grpc_cc_library(
  151. name = "grpc_plugin_support",
  152. srcs = [
  153. "src/compiler/cpp_generator.cc",
  154. "src/compiler/csharp_generator.cc",
  155. "src/compiler/node_generator.cc",
  156. "src/compiler/objective_c_generator.cc",
  157. "src/compiler/php_generator.cc",
  158. "src/compiler/python_generator.cc",
  159. "src/compiler/ruby_generator.cc",
  160. ],
  161. hdrs = [
  162. "src/compiler/config.h",
  163. "src/compiler/cpp_generator.h",
  164. "src/compiler/cpp_generator_helpers.h",
  165. "src/compiler/csharp_generator.h",
  166. "src/compiler/csharp_generator_helpers.h",
  167. "src/compiler/generator_helpers.h",
  168. "src/compiler/node_generator.h",
  169. "src/compiler/node_generator_helpers.h",
  170. "src/compiler/objective_c_generator.h",
  171. "src/compiler/objective_c_generator_helpers.h",
  172. "src/compiler/php_generator.h",
  173. "src/compiler/php_generator_helpers.h",
  174. "src/compiler/python_generator.h",
  175. "src/compiler/ruby_generator.h",
  176. "src/compiler/ruby_generator_helpers-inl.h",
  177. "src/compiler/ruby_generator_map-inl.h",
  178. "src/compiler/ruby_generator_string-inl.h",
  179. ],
  180. external_deps = [
  181. "protobuf_clib",
  182. ],
  183. language = "c++",
  184. deps = [
  185. "grpc++_config_proto",
  186. ],
  187. )
  188. grpc_proto_plugin(
  189. name = "grpc_cpp_plugin",
  190. srcs = ["src/compiler/cpp_plugin.cc"],
  191. deps = [":grpc_plugin_support"],
  192. )
  193. grpc_proto_plugin(
  194. name = "grpc_csharp_plugin",
  195. srcs = ["src/compiler/csharp_plugin.cc"],
  196. deps = [":grpc_plugin_support"],
  197. )
  198. grpc_proto_plugin(
  199. name = "grpc_node_plugin",
  200. srcs = ["src/compiler/node_plugin.cc"],
  201. deps = [":grpc_plugin_support"],
  202. )
  203. grpc_proto_plugin(
  204. name = "grpc_objective_c_plugin",
  205. srcs = ["src/compiler/objective_c_plugin.cc"],
  206. deps = [":grpc_plugin_support"],
  207. )
  208. grpc_proto_plugin(
  209. name = "grpc_php_plugin",
  210. srcs = ["src/compiler/php_plugin.cc"],
  211. deps = [":grpc_plugin_support"],
  212. )
  213. grpc_proto_plugin(
  214. name = "grpc_python_plugin",
  215. srcs = ["src/compiler/python_plugin.cc"],
  216. deps = [":grpc_plugin_support"],
  217. )
  218. grpc_proto_plugin(
  219. name = "grpc_ruby_plugin",
  220. srcs = ["src/compiler/ruby_plugin.cc"],
  221. deps = [":grpc_plugin_support"],
  222. )
  223. grpc_cc_library(
  224. name = "grpc_csharp_ext",
  225. srcs = [
  226. "src/csharp/ext/grpc_csharp_ext.c",
  227. ],
  228. language = "csharp",
  229. deps = [
  230. "gpr",
  231. "grpc",
  232. ],
  233. )
  234. grpc_cc_library(
  235. name = "census",
  236. srcs = [
  237. "src/core/ext/census/base_resources.c",
  238. "src/core/ext/census/context.c",
  239. "src/core/ext/census/gen/census.pb.c",
  240. "src/core/ext/census/gen/trace_context.pb.c",
  241. "src/core/ext/census/grpc_context.c",
  242. "src/core/ext/census/grpc_filter.c",
  243. "src/core/ext/census/grpc_plugin.c",
  244. "src/core/ext/census/initialize.c",
  245. "src/core/ext/census/mlog.c",
  246. "src/core/ext/census/operation.c",
  247. "src/core/ext/census/placeholders.c",
  248. "src/core/ext/census/resource.c",
  249. "src/core/ext/census/trace_context.c",
  250. "src/core/ext/census/tracing.c",
  251. ],
  252. hdrs = [
  253. "src/core/ext/census/aggregation.h",
  254. "src/core/ext/census/base_resources.h",
  255. "src/core/ext/census/census_interface.h",
  256. "src/core/ext/census/census_rpc_stats.h",
  257. "src/core/ext/census/gen/census.pb.h",
  258. "src/core/ext/census/gen/trace_context.pb.h",
  259. "src/core/ext/census/grpc_filter.h",
  260. "src/core/ext/census/mlog.h",
  261. "src/core/ext/census/resource.h",
  262. "src/core/ext/census/rpc_metric_id.h",
  263. "src/core/ext/census/trace_context.h",
  264. ],
  265. external_deps = [
  266. "nanopb",
  267. ],
  268. language = "c",
  269. public_hdrs = [
  270. "include/grpc/census.h",
  271. ],
  272. deps = [
  273. "grpc_base",
  274. ],
  275. )
  276. grpc_cc_library(
  277. name = "gpr_base",
  278. srcs = [
  279. "src/core/lib/profiling/basic_timers.c",
  280. "src/core/lib/profiling/stap_timers.c",
  281. "src/core/lib/support/alloc.c",
  282. "src/core/lib/support/avl.c",
  283. "src/core/lib/support/backoff.c",
  284. "src/core/lib/support/cmdline.c",
  285. "src/core/lib/support/cpu_iphone.c",
  286. "src/core/lib/support/cpu_linux.c",
  287. "src/core/lib/support/cpu_posix.c",
  288. "src/core/lib/support/cpu_windows.c",
  289. "src/core/lib/support/env_linux.c",
  290. "src/core/lib/support/env_posix.c",
  291. "src/core/lib/support/env_windows.c",
  292. "src/core/lib/support/histogram.c",
  293. "src/core/lib/support/host_port.c",
  294. "src/core/lib/support/log.c",
  295. "src/core/lib/support/log_android.c",
  296. "src/core/lib/support/log_linux.c",
  297. "src/core/lib/support/log_posix.c",
  298. "src/core/lib/support/log_windows.c",
  299. "src/core/lib/support/mpscq.c",
  300. "src/core/lib/support/murmur_hash.c",
  301. "src/core/lib/support/stack_lockfree.c",
  302. "src/core/lib/support/string.c",
  303. "src/core/lib/support/string_posix.c",
  304. "src/core/lib/support/string_util_windows.c",
  305. "src/core/lib/support/string_windows.c",
  306. "src/core/lib/support/subprocess_posix.c",
  307. "src/core/lib/support/subprocess_windows.c",
  308. "src/core/lib/support/sync.c",
  309. "src/core/lib/support/sync_posix.c",
  310. "src/core/lib/support/sync_windows.c",
  311. "src/core/lib/support/thd.c",
  312. "src/core/lib/support/thd_posix.c",
  313. "src/core/lib/support/thd_windows.c",
  314. "src/core/lib/support/time.c",
  315. "src/core/lib/support/time_posix.c",
  316. "src/core/lib/support/time_precise.c",
  317. "src/core/lib/support/time_windows.c",
  318. "src/core/lib/support/tls_pthread.c",
  319. "src/core/lib/support/tmpfile_msys.c",
  320. "src/core/lib/support/tmpfile_posix.c",
  321. "src/core/lib/support/tmpfile_windows.c",
  322. "src/core/lib/support/wrap_memcpy.c",
  323. ],
  324. hdrs = [
  325. "src/core/lib/profiling/timers.h",
  326. "src/core/lib/support/backoff.h",
  327. "src/core/lib/support/block_annotate.h",
  328. "src/core/lib/support/env.h",
  329. "src/core/lib/support/mpscq.h",
  330. "src/core/lib/support/murmur_hash.h",
  331. "src/core/lib/support/stack_lockfree.h",
  332. "src/core/lib/support/string.h",
  333. "src/core/lib/support/string_windows.h",
  334. "src/core/lib/support/thd_internal.h",
  335. "src/core/lib/support/time_precise.h",
  336. "src/core/lib/support/tmpfile.h",
  337. ],
  338. language = "c",
  339. public_hdrs = [
  340. "include/grpc/support/alloc.h",
  341. "include/grpc/support/atm.h",
  342. "include/grpc/support/atm_gcc_atomic.h",
  343. "include/grpc/support/atm_gcc_sync.h",
  344. "include/grpc/support/atm_windows.h",
  345. "include/grpc/support/avl.h",
  346. "include/grpc/support/cmdline.h",
  347. "include/grpc/support/cpu.h",
  348. "include/grpc/support/histogram.h",
  349. "include/grpc/support/host_port.h",
  350. "include/grpc/support/log.h",
  351. "include/grpc/support/log_windows.h",
  352. "include/grpc/support/port_platform.h",
  353. "include/grpc/support/string_util.h",
  354. "include/grpc/support/subprocess.h",
  355. "include/grpc/support/sync.h",
  356. "include/grpc/support/sync_generic.h",
  357. "include/grpc/support/sync_posix.h",
  358. "include/grpc/support/sync_windows.h",
  359. "include/grpc/support/thd.h",
  360. "include/grpc/support/time.h",
  361. "include/grpc/support/tls.h",
  362. "include/grpc/support/tls_gcc.h",
  363. "include/grpc/support/tls_msvc.h",
  364. "include/grpc/support/tls_pthread.h",
  365. "include/grpc/support/useful.h",
  366. ],
  367. deps = [
  368. "gpr_codegen",
  369. ],
  370. )
  371. grpc_cc_library(
  372. name = "gpr_codegen",
  373. language = "c",
  374. public_hdrs = [
  375. "include/grpc/impl/codegen/atm.h",
  376. "include/grpc/impl/codegen/atm_gcc_atomic.h",
  377. "include/grpc/impl/codegen/atm_gcc_sync.h",
  378. "include/grpc/impl/codegen/atm_windows.h",
  379. "include/grpc/impl/codegen/gpr_types.h",
  380. "include/grpc/impl/codegen/port_platform.h",
  381. "include/grpc/impl/codegen/slice.h",
  382. "include/grpc/impl/codegen/sync.h",
  383. "include/grpc/impl/codegen/sync_generic.h",
  384. "include/grpc/impl/codegen/sync_posix.h",
  385. "include/grpc/impl/codegen/sync_windows.h",
  386. ],
  387. )
  388. grpc_cc_library(
  389. name = "grpc_base",
  390. srcs = [
  391. "src/core/lib/channel/channel_args.c",
  392. "src/core/lib/channel/channel_stack.c",
  393. "src/core/lib/channel/channel_stack_builder.c",
  394. "src/core/lib/channel/compress_filter.c",
  395. "src/core/lib/channel/connected_channel.c",
  396. "src/core/lib/channel/deadline_filter.c",
  397. "src/core/lib/channel/handshaker.c",
  398. "src/core/lib/channel/handshaker_factory.c",
  399. "src/core/lib/channel/handshaker_registry.c",
  400. "src/core/lib/channel/http_client_filter.c",
  401. "src/core/lib/channel/http_server_filter.c",
  402. "src/core/lib/channel/message_size_filter.c",
  403. "src/core/lib/compression/compression.c",
  404. "src/core/lib/compression/message_compress.c",
  405. "src/core/lib/debug/trace.c",
  406. "src/core/lib/http/format_request.c",
  407. "src/core/lib/http/httpcli.c",
  408. "src/core/lib/http/parser.c",
  409. "src/core/lib/iomgr/closure.c",
  410. "src/core/lib/iomgr/combiner.c",
  411. "src/core/lib/iomgr/endpoint.c",
  412. "src/core/lib/iomgr/endpoint_pair_posix.c",
  413. "src/core/lib/iomgr/endpoint_pair_uv.c",
  414. "src/core/lib/iomgr/endpoint_pair_windows.c",
  415. "src/core/lib/iomgr/error.c",
  416. "src/core/lib/iomgr/ev_epoll_linux.c",
  417. "src/core/lib/iomgr/ev_poll_posix.c",
  418. "src/core/lib/iomgr/ev_posix.c",
  419. "src/core/lib/iomgr/exec_ctx.c",
  420. "src/core/lib/iomgr/executor.c",
  421. "src/core/lib/iomgr/iocp_windows.c",
  422. "src/core/lib/iomgr/iomgr.c",
  423. "src/core/lib/iomgr/iomgr_posix.c",
  424. "src/core/lib/iomgr/iomgr_uv.c",
  425. "src/core/lib/iomgr/iomgr_windows.c",
  426. "src/core/lib/iomgr/load_file.c",
  427. "src/core/lib/iomgr/network_status_tracker.c",
  428. "src/core/lib/iomgr/polling_entity.c",
  429. "src/core/lib/iomgr/pollset_set_uv.c",
  430. "src/core/lib/iomgr/pollset_set_windows.c",
  431. "src/core/lib/iomgr/pollset_uv.c",
  432. "src/core/lib/iomgr/pollset_windows.c",
  433. "src/core/lib/iomgr/resolve_address_posix.c",
  434. "src/core/lib/iomgr/resolve_address_uv.c",
  435. "src/core/lib/iomgr/resolve_address_windows.c",
  436. "src/core/lib/iomgr/resource_quota.c",
  437. "src/core/lib/iomgr/sockaddr_utils.c",
  438. "src/core/lib/iomgr/socket_mutator.c",
  439. "src/core/lib/iomgr/socket_utils_common_posix.c",
  440. "src/core/lib/iomgr/socket_utils_linux.c",
  441. "src/core/lib/iomgr/socket_utils_posix.c",
  442. "src/core/lib/iomgr/socket_utils_uv.c",
  443. "src/core/lib/iomgr/socket_utils_windows.c",
  444. "src/core/lib/iomgr/socket_windows.c",
  445. "src/core/lib/iomgr/tcp_client_posix.c",
  446. "src/core/lib/iomgr/tcp_client_uv.c",
  447. "src/core/lib/iomgr/tcp_client_windows.c",
  448. "src/core/lib/iomgr/tcp_posix.c",
  449. "src/core/lib/iomgr/tcp_server_posix.c",
  450. "src/core/lib/iomgr/tcp_server_uv.c",
  451. "src/core/lib/iomgr/tcp_server_windows.c",
  452. "src/core/lib/iomgr/tcp_uv.c",
  453. "src/core/lib/iomgr/tcp_windows.c",
  454. "src/core/lib/iomgr/time_averaged_stats.c",
  455. "src/core/lib/iomgr/timer_generic.c",
  456. "src/core/lib/iomgr/timer_heap.c",
  457. "src/core/lib/iomgr/timer_uv.c",
  458. "src/core/lib/iomgr/udp_server.c",
  459. "src/core/lib/iomgr/unix_sockets_posix.c",
  460. "src/core/lib/iomgr/unix_sockets_posix_noop.c",
  461. "src/core/lib/iomgr/wakeup_fd_cv.c",
  462. "src/core/lib/iomgr/wakeup_fd_eventfd.c",
  463. "src/core/lib/iomgr/wakeup_fd_nospecial.c",
  464. "src/core/lib/iomgr/wakeup_fd_pipe.c",
  465. "src/core/lib/iomgr/wakeup_fd_posix.c",
  466. "src/core/lib/iomgr/workqueue_uv.c",
  467. "src/core/lib/iomgr/workqueue_windows.c",
  468. "src/core/lib/json/json.c",
  469. "src/core/lib/json/json_reader.c",
  470. "src/core/lib/json/json_string.c",
  471. "src/core/lib/json/json_writer.c",
  472. "src/core/lib/slice/percent_encoding.c",
  473. "src/core/lib/slice/slice.c",
  474. "src/core/lib/slice/slice_buffer.c",
  475. "src/core/lib/slice/slice_string_helpers.c",
  476. "src/core/lib/surface/alarm.c",
  477. "src/core/lib/surface/api_trace.c",
  478. "src/core/lib/surface/byte_buffer.c",
  479. "src/core/lib/surface/byte_buffer_reader.c",
  480. "src/core/lib/surface/call.c",
  481. "src/core/lib/surface/call_details.c",
  482. "src/core/lib/surface/call_log_batch.c",
  483. "src/core/lib/surface/channel.c",
  484. "src/core/lib/surface/channel_init.c",
  485. "src/core/lib/surface/channel_ping.c",
  486. "src/core/lib/surface/channel_stack_type.c",
  487. "src/core/lib/surface/completion_queue.c",
  488. "src/core/lib/surface/event_string.c",
  489. "src/core/lib/surface/lame_client.c",
  490. "src/core/lib/surface/metadata_array.c",
  491. "src/core/lib/surface/server.c",
  492. "src/core/lib/surface/validate_metadata.c",
  493. "src/core/lib/surface/version.c",
  494. "src/core/lib/transport/byte_stream.c",
  495. "src/core/lib/transport/connectivity_state.c",
  496. "src/core/lib/transport/mdstr_hash_table.c",
  497. "src/core/lib/transport/metadata.c",
  498. "src/core/lib/transport/metadata_batch.c",
  499. "src/core/lib/transport/pid_controller.c",
  500. "src/core/lib/transport/service_config.c",
  501. "src/core/lib/transport/static_metadata.c",
  502. "src/core/lib/transport/timeout_encoding.c",
  503. "src/core/lib/transport/transport.c",
  504. "src/core/lib/transport/transport_op_string.c",
  505. ],
  506. hdrs = [
  507. "src/core/lib/channel/channel_args.h",
  508. "src/core/lib/channel/channel_stack.h",
  509. "src/core/lib/channel/channel_stack_builder.h",
  510. "src/core/lib/channel/compress_filter.h",
  511. "src/core/lib/channel/connected_channel.h",
  512. "src/core/lib/channel/context.h",
  513. "src/core/lib/channel/deadline_filter.h",
  514. "src/core/lib/channel/handshaker.h",
  515. "src/core/lib/channel/handshaker_factory.h",
  516. "src/core/lib/channel/handshaker_registry.h",
  517. "src/core/lib/channel/http_client_filter.h",
  518. "src/core/lib/channel/http_server_filter.h",
  519. "src/core/lib/channel/message_size_filter.h",
  520. "src/core/lib/compression/algorithm_metadata.h",
  521. "src/core/lib/compression/message_compress.h",
  522. "src/core/lib/debug/trace.h",
  523. "src/core/lib/http/format_request.h",
  524. "src/core/lib/http/httpcli.h",
  525. "src/core/lib/http/parser.h",
  526. "src/core/lib/iomgr/closure.h",
  527. "src/core/lib/iomgr/combiner.h",
  528. "src/core/lib/iomgr/endpoint.h",
  529. "src/core/lib/iomgr/endpoint_pair.h",
  530. "src/core/lib/iomgr/error.h",
  531. "src/core/lib/iomgr/ev_epoll_linux.h",
  532. "src/core/lib/iomgr/ev_poll_posix.h",
  533. "src/core/lib/iomgr/ev_posix.h",
  534. "src/core/lib/iomgr/exec_ctx.h",
  535. "src/core/lib/iomgr/executor.h",
  536. "src/core/lib/iomgr/iocp_windows.h",
  537. "src/core/lib/iomgr/iomgr.h",
  538. "src/core/lib/iomgr/iomgr_internal.h",
  539. "src/core/lib/iomgr/iomgr_posix.h",
  540. "src/core/lib/iomgr/load_file.h",
  541. "src/core/lib/iomgr/network_status_tracker.h",
  542. "src/core/lib/iomgr/polling_entity.h",
  543. "src/core/lib/iomgr/pollset.h",
  544. "src/core/lib/iomgr/pollset_set.h",
  545. "src/core/lib/iomgr/pollset_set_windows.h",
  546. "src/core/lib/iomgr/pollset_uv.h",
  547. "src/core/lib/iomgr/pollset_windows.h",
  548. "src/core/lib/iomgr/port.h",
  549. "src/core/lib/iomgr/resolve_address.h",
  550. "src/core/lib/iomgr/resource_quota.h",
  551. "src/core/lib/iomgr/sockaddr.h",
  552. "src/core/lib/iomgr/sockaddr_posix.h",
  553. "src/core/lib/iomgr/sockaddr_utils.h",
  554. "src/core/lib/iomgr/sockaddr_windows.h",
  555. "src/core/lib/iomgr/socket_mutator.h",
  556. "src/core/lib/iomgr/socket_utils.h",
  557. "src/core/lib/iomgr/socket_utils_posix.h",
  558. "src/core/lib/iomgr/socket_windows.h",
  559. "src/core/lib/iomgr/tcp_client.h",
  560. "src/core/lib/iomgr/tcp_client_posix.h",
  561. "src/core/lib/iomgr/tcp_posix.h",
  562. "src/core/lib/iomgr/tcp_server.h",
  563. "src/core/lib/iomgr/tcp_uv.h",
  564. "src/core/lib/iomgr/tcp_windows.h",
  565. "src/core/lib/iomgr/time_averaged_stats.h",
  566. "src/core/lib/iomgr/timer.h",
  567. "src/core/lib/iomgr/timer_generic.h",
  568. "src/core/lib/iomgr/timer_heap.h",
  569. "src/core/lib/iomgr/timer_uv.h",
  570. "src/core/lib/iomgr/udp_server.h",
  571. "src/core/lib/iomgr/unix_sockets_posix.h",
  572. "src/core/lib/iomgr/wakeup_fd_cv.h",
  573. "src/core/lib/iomgr/wakeup_fd_pipe.h",
  574. "src/core/lib/iomgr/wakeup_fd_posix.h",
  575. "src/core/lib/iomgr/workqueue.h",
  576. "src/core/lib/iomgr/workqueue_uv.h",
  577. "src/core/lib/iomgr/workqueue_windows.h",
  578. "src/core/lib/json/json.h",
  579. "src/core/lib/json/json_common.h",
  580. "src/core/lib/json/json_reader.h",
  581. "src/core/lib/json/json_writer.h",
  582. "src/core/lib/slice/percent_encoding.h",
  583. "src/core/lib/slice/slice_internal.h",
  584. "src/core/lib/slice/slice_string_helpers.h",
  585. "src/core/lib/surface/api_trace.h",
  586. "src/core/lib/surface/call.h",
  587. "src/core/lib/surface/call_test_only.h",
  588. "src/core/lib/surface/channel.h",
  589. "src/core/lib/surface/channel_init.h",
  590. "src/core/lib/surface/channel_stack_type.h",
  591. "src/core/lib/surface/completion_queue.h",
  592. "src/core/lib/surface/event_string.h",
  593. "src/core/lib/surface/init.h",
  594. "src/core/lib/surface/lame_client.h",
  595. "src/core/lib/surface/server.h",
  596. "src/core/lib/transport/byte_stream.h",
  597. "src/core/lib/transport/connectivity_state.h",
  598. "src/core/lib/transport/mdstr_hash_table.h",
  599. "src/core/lib/transport/metadata.h",
  600. "src/core/lib/transport/metadata_batch.h",
  601. "src/core/lib/transport/pid_controller.h",
  602. "src/core/lib/transport/service_config.h",
  603. "src/core/lib/transport/static_metadata.h",
  604. "src/core/lib/transport/timeout_encoding.h",
  605. "src/core/lib/transport/transport.h",
  606. "src/core/lib/transport/transport_impl.h",
  607. ],
  608. external_deps = [
  609. "zlib",
  610. ],
  611. language = "c",
  612. public_hdrs = [
  613. "include/grpc/byte_buffer.h",
  614. "include/grpc/byte_buffer_reader.h",
  615. "include/grpc/compression.h",
  616. "include/grpc/grpc.h",
  617. "include/grpc/grpc_posix.h",
  618. "include/grpc/grpc_security_constants.h",
  619. "include/grpc/slice.h",
  620. "include/grpc/slice_buffer.h",
  621. "include/grpc/status.h",
  622. ],
  623. deps = [
  624. "gpr_base",
  625. "grpc_codegen",
  626. ],
  627. )
  628. grpc_cc_library(
  629. name = "grpc_client_channel",
  630. language = "c",
  631. srcs = [
  632. "src/core/ext/client_channel/channel_connectivity.c",
  633. "src/core/ext/client_channel/client_channel.c",
  634. "src/core/ext/client_channel/client_channel_factory.c",
  635. "src/core/ext/client_channel/client_channel_plugin.c",
  636. "src/core/ext/client_channel/connector.c",
  637. "src/core/ext/client_channel/default_initial_connect_string.c",
  638. "src/core/ext/client_channel/http_connect_handshaker.c",
  639. "src/core/ext/client_channel/initial_connect_string.c",
  640. "src/core/ext/client_channel/lb_policy.c",
  641. "src/core/ext/client_channel/lb_policy_factory.c",
  642. "src/core/ext/client_channel/lb_policy_registry.c",
  643. "src/core/ext/client_channel/parse_address.c",
  644. "src/core/ext/client_channel/resolver.c",
  645. "src/core/ext/client_channel/resolver_factory.c",
  646. "src/core/ext/client_channel/resolver_registry.c",
  647. "src/core/ext/client_channel/subchannel.c",
  648. "src/core/ext/client_channel/subchannel_index.c",
  649. "src/core/ext/client_channel/uri_parser.c",
  650. ],
  651. hdrs = [
  652. "src/core/ext/client_channel/client_channel.h",
  653. "src/core/ext/client_channel/client_channel_factory.h",
  654. "src/core/ext/client_channel/connector.h",
  655. "src/core/ext/client_channel/http_connect_handshaker.h",
  656. "src/core/ext/client_channel/initial_connect_string.h",
  657. "src/core/ext/client_channel/lb_policy.h",
  658. "src/core/ext/client_channel/lb_policy_factory.h",
  659. "src/core/ext/client_channel/lb_policy_registry.h",
  660. "src/core/ext/client_channel/parse_address.h",
  661. "src/core/ext/client_channel/resolver.h",
  662. "src/core/ext/client_channel/resolver_factory.h",
  663. "src/core/ext/client_channel/resolver_registry.h",
  664. "src/core/ext/client_channel/subchannel.h",
  665. "src/core/ext/client_channel/subchannel_index.h",
  666. "src/core/ext/client_channel/uri_parser.h",
  667. ],
  668. deps = [
  669. "grpc_base",
  670. ],
  671. )
  672. grpc_cc_library(
  673. name = "grpc_codegen",
  674. language = "c",
  675. public_hdrs = [
  676. "include/grpc/impl/codegen/byte_buffer_reader.h",
  677. "include/grpc/impl/codegen/compression_types.h",
  678. "include/grpc/impl/codegen/connectivity_state.h",
  679. "include/grpc/impl/codegen/exec_ctx_fwd.h",
  680. "include/grpc/impl/codegen/grpc_types.h",
  681. "include/grpc/impl/codegen/propagation_bits.h",
  682. "include/grpc/impl/codegen/status.h",
  683. ],
  684. deps = [
  685. "gpr_codegen",
  686. ],
  687. )
  688. grpc_cc_library(
  689. name = "grpc_lb_policy_grpclb",
  690. srcs = [
  691. "src/core/ext/lb_policy/grpclb/grpclb.c",
  692. "src/core/ext/lb_policy/grpclb/load_balancer_api.c",
  693. "src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c",
  694. ],
  695. hdrs = [
  696. "src/core/ext/lb_policy/grpclb/grpclb.h",
  697. "src/core/ext/lb_policy/grpclb/load_balancer_api.h",
  698. "src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h",
  699. ],
  700. external_deps = [
  701. "nanopb",
  702. ],
  703. language = "c",
  704. deps = [
  705. "grpc_base",
  706. "grpc_client_channel",
  707. ],
  708. )
  709. grpc_cc_library(
  710. name = "grpc_lb_policy_pick_first",
  711. srcs = [
  712. "src/core/ext/lb_policy/pick_first/pick_first.c",
  713. ],
  714. language = "c",
  715. deps = [
  716. "grpc_base",
  717. "grpc_client_channel",
  718. ],
  719. )
  720. grpc_cc_library(
  721. name = "grpc_lb_policy_round_robin",
  722. srcs = [
  723. "src/core/ext/lb_policy/round_robin/round_robin.c",
  724. ],
  725. language = "c",
  726. deps = [
  727. "grpc_base",
  728. "grpc_client_channel",
  729. ],
  730. )
  731. grpc_cc_library(
  732. name = "grpc_load_reporting",
  733. srcs = [
  734. "src/core/ext/load_reporting/load_reporting.c",
  735. "src/core/ext/load_reporting/load_reporting_filter.c",
  736. ],
  737. hdrs = [
  738. "src/core/ext/load_reporting/load_reporting.h",
  739. "src/core/ext/load_reporting/load_reporting_filter.h",
  740. ],
  741. language = "c",
  742. deps = [
  743. "grpc_base",
  744. ],
  745. )
  746. grpc_cc_library(
  747. name = "grpc_resolver_dns_native",
  748. srcs = [
  749. "src/core/ext/resolver/dns/native/dns_resolver.c",
  750. ],
  751. language = "c",
  752. deps = [
  753. "grpc_base",
  754. "grpc_client_channel",
  755. ],
  756. )
  757. grpc_cc_library(
  758. name = "grpc_resolver_sockaddr",
  759. srcs = [
  760. "src/core/ext/resolver/sockaddr/sockaddr_resolver.c",
  761. ],
  762. language = "c",
  763. deps = [
  764. "grpc_base",
  765. "grpc_client_channel",
  766. ],
  767. )
  768. grpc_cc_library(
  769. name = "grpc_secure",
  770. srcs = [
  771. "src/core/lib/http/httpcli_security_connector.c",
  772. "src/core/lib/security/context/security_context.c",
  773. "src/core/lib/security/credentials/composite/composite_credentials.c",
  774. "src/core/lib/security/credentials/credentials.c",
  775. "src/core/lib/security/credentials/credentials_metadata.c",
  776. "src/core/lib/security/credentials/fake/fake_credentials.c",
  777. "src/core/lib/security/credentials/google_default/credentials_generic.c",
  778. "src/core/lib/security/credentials/google_default/google_default_credentials.c",
  779. "src/core/lib/security/credentials/iam/iam_credentials.c",
  780. "src/core/lib/security/credentials/jwt/json_token.c",
  781. "src/core/lib/security/credentials/jwt/jwt_credentials.c",
  782. "src/core/lib/security/credentials/jwt/jwt_verifier.c",
  783. "src/core/lib/security/credentials/oauth2/oauth2_credentials.c",
  784. "src/core/lib/security/credentials/plugin/plugin_credentials.c",
  785. "src/core/lib/security/credentials/ssl/ssl_credentials.c",
  786. "src/core/lib/security/transport/client_auth_filter.c",
  787. "src/core/lib/security/transport/secure_endpoint.c",
  788. "src/core/lib/security/transport/security_connector.c",
  789. "src/core/lib/security/transport/security_handshaker.c",
  790. "src/core/lib/security/transport/server_auth_filter.c",
  791. "src/core/lib/security/transport/tsi_error.c",
  792. "src/core/lib/security/util/b64.c",
  793. "src/core/lib/security/util/json_util.c",
  794. "src/core/lib/surface/init_secure.c",
  795. ],
  796. hdrs = [
  797. "src/core/lib/security/context/security_context.h",
  798. "src/core/lib/security/credentials/composite/composite_credentials.h",
  799. "src/core/lib/security/credentials/credentials.h",
  800. "src/core/lib/security/credentials/fake/fake_credentials.h",
  801. "src/core/lib/security/credentials/google_default/google_default_credentials.h",
  802. "src/core/lib/security/credentials/iam/iam_credentials.h",
  803. "src/core/lib/security/credentials/jwt/json_token.h",
  804. "src/core/lib/security/credentials/jwt/jwt_credentials.h",
  805. "src/core/lib/security/credentials/jwt/jwt_verifier.h",
  806. "src/core/lib/security/credentials/oauth2/oauth2_credentials.h",
  807. "src/core/lib/security/credentials/plugin/plugin_credentials.h",
  808. "src/core/lib/security/credentials/ssl/ssl_credentials.h",
  809. "src/core/lib/security/transport/auth_filters.h",
  810. "src/core/lib/security/transport/secure_endpoint.h",
  811. "src/core/lib/security/transport/security_connector.h",
  812. "src/core/lib/security/transport/security_handshaker.h",
  813. "src/core/lib/security/transport/tsi_error.h",
  814. "src/core/lib/security/util/b64.h",
  815. "src/core/lib/security/util/json_util.h",
  816. ],
  817. language = "c",
  818. public_hdrs = [
  819. "include/grpc/grpc_security.h",
  820. ],
  821. deps = [
  822. "grpc_base",
  823. "grpc_transport_chttp2_alpn",
  824. "tsi",
  825. ],
  826. )
  827. grpc_cc_library(
  828. name = "grpc_transport_chttp2",
  829. srcs = [
  830. "src/core/ext/transport/chttp2/transport/bin_decoder.c",
  831. "src/core/ext/transport/chttp2/transport/bin_encoder.c",
  832. "src/core/ext/transport/chttp2/transport/chttp2_plugin.c",
  833. "src/core/ext/transport/chttp2/transport/chttp2_transport.c",
  834. "src/core/ext/transport/chttp2/transport/frame_data.c",
  835. "src/core/ext/transport/chttp2/transport/frame_goaway.c",
  836. "src/core/ext/transport/chttp2/transport/frame_ping.c",
  837. "src/core/ext/transport/chttp2/transport/frame_rst_stream.c",
  838. "src/core/ext/transport/chttp2/transport/frame_settings.c",
  839. "src/core/ext/transport/chttp2/transport/frame_window_update.c",
  840. "src/core/ext/transport/chttp2/transport/hpack_encoder.c",
  841. "src/core/ext/transport/chttp2/transport/hpack_parser.c",
  842. "src/core/ext/transport/chttp2/transport/hpack_table.c",
  843. "src/core/ext/transport/chttp2/transport/huffsyms.c",
  844. "src/core/ext/transport/chttp2/transport/incoming_metadata.c",
  845. "src/core/ext/transport/chttp2/transport/parsing.c",
  846. "src/core/ext/transport/chttp2/transport/status_conversion.c",
  847. "src/core/ext/transport/chttp2/transport/stream_lists.c",
  848. "src/core/ext/transport/chttp2/transport/stream_map.c",
  849. "src/core/ext/transport/chttp2/transport/varint.c",
  850. "src/core/ext/transport/chttp2/transport/writing.c",
  851. ],
  852. hdrs = [
  853. "src/core/ext/transport/chttp2/transport/bin_decoder.h",
  854. "src/core/ext/transport/chttp2/transport/bin_encoder.h",
  855. "src/core/ext/transport/chttp2/transport/chttp2_transport.h",
  856. "src/core/ext/transport/chttp2/transport/frame.h",
  857. "src/core/ext/transport/chttp2/transport/frame_data.h",
  858. "src/core/ext/transport/chttp2/transport/frame_goaway.h",
  859. "src/core/ext/transport/chttp2/transport/frame_ping.h",
  860. "src/core/ext/transport/chttp2/transport/frame_rst_stream.h",
  861. "src/core/ext/transport/chttp2/transport/frame_settings.h",
  862. "src/core/ext/transport/chttp2/transport/frame_window_update.h",
  863. "src/core/ext/transport/chttp2/transport/hpack_encoder.h",
  864. "src/core/ext/transport/chttp2/transport/hpack_parser.h",
  865. "src/core/ext/transport/chttp2/transport/hpack_table.h",
  866. "src/core/ext/transport/chttp2/transport/http2_errors.h",
  867. "src/core/ext/transport/chttp2/transport/huffsyms.h",
  868. "src/core/ext/transport/chttp2/transport/incoming_metadata.h",
  869. "src/core/ext/transport/chttp2/transport/internal.h",
  870. "src/core/ext/transport/chttp2/transport/status_conversion.h",
  871. "src/core/ext/transport/chttp2/transport/stream_map.h",
  872. "src/core/ext/transport/chttp2/transport/varint.h",
  873. ],
  874. language = "c",
  875. deps = [
  876. "grpc_base",
  877. "grpc_transport_chttp2_alpn",
  878. ],
  879. )
  880. grpc_cc_library(
  881. name = "grpc_transport_chttp2_alpn",
  882. srcs = [
  883. "src/core/ext/transport/chttp2/alpn/alpn.c",
  884. ],
  885. hdrs = [
  886. "src/core/ext/transport/chttp2/alpn/alpn.h",
  887. ],
  888. language = "c",
  889. deps = [
  890. "gpr",
  891. ],
  892. )
  893. grpc_cc_library(
  894. name = "grpc_transport_chttp2_client_connector",
  895. hdrs = [
  896. "src/core/ext/transport/chttp2/client/chttp2_connector.h",
  897. ],
  898. srcs = [
  899. "src/core/ext/transport/chttp2/client/chttp2_connector.c",
  900. ],
  901. language = "c",
  902. deps = [
  903. "grpc_transport_chttp2",
  904. "grpc_base",
  905. "grpc_client_channel",
  906. ],
  907. )
  908. grpc_cc_library(
  909. name = "grpc_transport_chttp2_client_insecure",
  910. srcs = [
  911. "src/core/ext/transport/chttp2/client/insecure/channel_create.c",
  912. "src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c",
  913. ],
  914. language = "c",
  915. deps = [
  916. "grpc_base",
  917. "grpc_client_channel",
  918. "grpc_transport_chttp2",
  919. "grpc_transport_chttp2_client_connector",
  920. ],
  921. )
  922. grpc_cc_library(
  923. name = "grpc_transport_chttp2_client_secure",
  924. srcs = [
  925. "src/core/ext/transport/chttp2/client/secure/secure_channel_create.c",
  926. ],
  927. language = "c",
  928. deps = [
  929. "grpc_base",
  930. "grpc_client_channel",
  931. "grpc_secure",
  932. "grpc_transport_chttp2",
  933. "grpc_transport_chttp2_client_connector",
  934. ],
  935. )
  936. grpc_cc_library(
  937. name = "grpc_transport_chttp2_server",
  938. srcs = [
  939. "src/core/ext/transport/chttp2/server/chttp2_server.c",
  940. ],
  941. hdrs = [
  942. "src/core/ext/transport/chttp2/server/chttp2_server.h",
  943. ],
  944. language = "c",
  945. deps = [
  946. "grpc_base",
  947. "grpc_transport_chttp2",
  948. ],
  949. )
  950. grpc_cc_library(
  951. name = "grpc_transport_chttp2_server_insecure",
  952. srcs = [
  953. "src/core/ext/transport/chttp2/server/insecure/server_chttp2.c",
  954. "src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c",
  955. ],
  956. language = "c",
  957. deps = [
  958. "grpc_base",
  959. "grpc_transport_chttp2",
  960. "grpc_transport_chttp2_server",
  961. ],
  962. )
  963. grpc_cc_library(
  964. name = "grpc_transport_chttp2_server_secure",
  965. srcs = [
  966. "src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c",
  967. ],
  968. language = "c",
  969. deps = [
  970. "grpc_base",
  971. "grpc_secure",
  972. "grpc_transport_chttp2",
  973. "grpc_transport_chttp2_server",
  974. ],
  975. )
  976. grpc_cc_library(
  977. name = "grpc_transport_cronet_client_secure",
  978. srcs = [
  979. "src/core/ext/transport/cronet/client/secure/cronet_channel_create.c",
  980. "src/core/ext/transport/cronet/transport/cronet_api_dummy.c",
  981. "src/core/ext/transport/cronet/transport/cronet_transport.c",
  982. ],
  983. hdrs = [
  984. "third_party/objective_c/Cronet/cronet_c_for_grpc.h",
  985. ],
  986. language = "c",
  987. public_hdrs = [
  988. "include/grpc/grpc_cronet.h",
  989. "include/grpc/grpc_security.h",
  990. "include/grpc/grpc_security_constants.h",
  991. ],
  992. deps = [
  993. "grpc_base",
  994. "grpc_transport_chttp2",
  995. ],
  996. )
  997. grpc_cc_library(
  998. name = "tsi",
  999. srcs = [
  1000. "src/core/lib/tsi/fake_transport_security.c",
  1001. "src/core/lib/tsi/ssl_transport_security.c",
  1002. "src/core/lib/tsi/transport_security.c",
  1003. ],
  1004. hdrs = [
  1005. "src/core/lib/tsi/fake_transport_security.h",
  1006. "src/core/lib/tsi/ssl_transport_security.h",
  1007. "src/core/lib/tsi/ssl_types.h",
  1008. "src/core/lib/tsi/transport_security.h",
  1009. "src/core/lib/tsi/transport_security_interface.h",
  1010. ],
  1011. external_deps = [
  1012. "libssl",
  1013. ],
  1014. language = "c",
  1015. deps = [
  1016. "gpr",
  1017. ],
  1018. )
  1019. grpc_cc_library(
  1020. name = "grpc++_base",
  1021. srcs = [
  1022. "src/cpp/client/channel_cc.cc",
  1023. "src/cpp/client/client_context.cc",
  1024. "src/cpp/client/create_channel.cc",
  1025. "src/cpp/client/create_channel_internal.cc",
  1026. "src/cpp/client/create_channel_posix.cc",
  1027. "src/cpp/client/credentials_cc.cc",
  1028. "src/cpp/client/generic_stub.cc",
  1029. "src/cpp/common/channel_arguments.cc",
  1030. "src/cpp/common/channel_filter.cc",
  1031. "src/cpp/common/completion_queue_cc.cc",
  1032. "src/cpp/common/core_codegen.cc",
  1033. "src/cpp/common/rpc_method.cc",
  1034. "src/cpp/server/async_generic_service.cc",
  1035. "src/cpp/server/create_default_thread_pool.cc",
  1036. "src/cpp/server/dynamic_thread_pool.cc",
  1037. "src/cpp/server/server_builder.cc",
  1038. "src/cpp/server/server_cc.cc",
  1039. "src/cpp/server/server_context.cc",
  1040. "src/cpp/server/server_credentials.cc",
  1041. "src/cpp/server/server_posix.cc",
  1042. "src/cpp/util/byte_buffer_cc.cc",
  1043. "src/cpp/util/slice_cc.cc",
  1044. "src/cpp/util/status.cc",
  1045. "src/cpp/util/string_ref.cc",
  1046. "src/cpp/util/time_cc.cc",
  1047. ],
  1048. hdrs = [
  1049. "src/cpp/client/create_channel_internal.h",
  1050. "src/cpp/common/channel_filter.h",
  1051. "src/cpp/server/dynamic_thread_pool.h",
  1052. "src/cpp/server/thread_pool_interface.h",
  1053. "src/cpp/thread_manager/thread_manager.h",
  1054. ],
  1055. language = "c++",
  1056. public_hdrs = [
  1057. "include/grpc++/alarm.h",
  1058. "include/grpc++/channel.h",
  1059. "include/grpc++/client_context.h",
  1060. "include/grpc++/completion_queue.h",
  1061. "include/grpc++/create_channel.h",
  1062. "include/grpc++/create_channel_posix.h",
  1063. "include/grpc++/generic/async_generic_service.h",
  1064. "include/grpc++/generic/generic_stub.h",
  1065. "include/grpc++/grpc++.h",
  1066. "include/grpc++/impl/call.h",
  1067. "include/grpc++/impl/client_unary_call.h",
  1068. "include/grpc++/impl/codegen/core_codegen.h",
  1069. "include/grpc++/impl/grpc_library.h",
  1070. "include/grpc++/impl/method_handler_impl.h",
  1071. "include/grpc++/impl/rpc_method.h",
  1072. "include/grpc++/impl/rpc_service_method.h",
  1073. "include/grpc++/impl/serialization_traits.h",
  1074. "include/grpc++/impl/server_builder_option.h",
  1075. "include/grpc++/impl/server_builder_plugin.h",
  1076. "include/grpc++/impl/server_initializer.h",
  1077. "include/grpc++/impl/service_type.h",
  1078. "include/grpc++/impl/sync_cxx11.h",
  1079. "include/grpc++/impl/sync_no_cxx11.h",
  1080. "include/grpc++/resource_quota.h",
  1081. "include/grpc++/security/auth_context.h",
  1082. "include/grpc++/security/auth_metadata_processor.h",
  1083. "include/grpc++/security/credentials.h",
  1084. "include/grpc++/security/server_credentials.h",
  1085. "include/grpc++/server.h",
  1086. "include/grpc++/server_builder.h",
  1087. "include/grpc++/server_context.h",
  1088. "include/grpc++/server_posix.h",
  1089. "include/grpc++/support/async_stream.h",
  1090. "include/grpc++/support/async_unary_call.h",
  1091. "include/grpc++/support/byte_buffer.h",
  1092. "include/grpc++/support/channel_arguments.h",
  1093. "include/grpc++/support/config.h",
  1094. "include/grpc++/support/slice.h",
  1095. "include/grpc++/support/status.h",
  1096. "include/grpc++/support/status_code_enum.h",
  1097. "include/grpc++/support/string_ref.h",
  1098. "include/grpc++/support/stub_options.h",
  1099. "include/grpc++/support/sync_stream.h",
  1100. "include/grpc++/support/time.h",
  1101. ],
  1102. deps = [
  1103. "grpc",
  1104. "grpc++_codegen_base",
  1105. ],
  1106. )
  1107. grpc_cc_library(
  1108. name = "grpc++_codegen_base",
  1109. language = "c++",
  1110. public_hdrs = [
  1111. "include/grpc++/impl/codegen/async_stream.h",
  1112. "include/grpc++/impl/codegen/async_unary_call.h",
  1113. "include/grpc++/impl/codegen/call.h",
  1114. "include/grpc++/impl/codegen/call_hook.h",
  1115. "include/grpc++/impl/codegen/channel_interface.h",
  1116. "include/grpc++/impl/codegen/client_context.h",
  1117. "include/grpc++/impl/codegen/client_unary_call.h",
  1118. "include/grpc++/impl/codegen/completion_queue.h",
  1119. "include/grpc++/impl/codegen/completion_queue_tag.h",
  1120. "include/grpc++/impl/codegen/config.h",
  1121. "include/grpc++/impl/codegen/core_codegen_interface.h",
  1122. "include/grpc++/impl/codegen/create_auth_context.h",
  1123. "include/grpc++/impl/codegen/grpc_library.h",
  1124. "include/grpc++/impl/codegen/method_handler_impl.h",
  1125. "include/grpc++/impl/codegen/rpc_method.h",
  1126. "include/grpc++/impl/codegen/rpc_service_method.h",
  1127. "include/grpc++/impl/codegen/security/auth_context.h",
  1128. "include/grpc++/impl/codegen/serialization_traits.h",
  1129. "include/grpc++/impl/codegen/server_context.h",
  1130. "include/grpc++/impl/codegen/server_interface.h",
  1131. "include/grpc++/impl/codegen/service_type.h",
  1132. "include/grpc++/impl/codegen/status.h",
  1133. "include/grpc++/impl/codegen/status_code_enum.h",
  1134. "include/grpc++/impl/codegen/status_helper.h",
  1135. "include/grpc++/impl/codegen/string_ref.h",
  1136. "include/grpc++/impl/codegen/stub_options.h",
  1137. "include/grpc++/impl/codegen/sync_stream.h",
  1138. "include/grpc++/impl/codegen/time.h",
  1139. ],
  1140. deps = [
  1141. "grpc_codegen",
  1142. ],
  1143. )
  1144. grpc_cc_library(
  1145. name = "grpc++_codegen_base_src",
  1146. srcs = [
  1147. "src/cpp/codegen/codegen_init.cc",
  1148. ],
  1149. language = "c++",
  1150. deps = [
  1151. "grpc++_codegen_base",
  1152. ],
  1153. )
  1154. grpc_cc_library(
  1155. name = "grpc++_codegen_proto",
  1156. language = "c++",
  1157. public_hdrs = [
  1158. "include/grpc++/impl/codegen/proto_utils.h",
  1159. ],
  1160. deps = [
  1161. "grpc++_codegen_base",
  1162. "grpc++_config_proto",
  1163. ],
  1164. )
  1165. grpc_cc_library(
  1166. name = "grpc++_config_proto",
  1167. language = "c++",
  1168. public_hdrs = [
  1169. "include/grpc++/impl/codegen/config_protobuf.h",
  1170. ],
  1171. )
  1172. grpc_cc_library(
  1173. name = "thrift_util",
  1174. language = "c++",
  1175. public_hdrs = [
  1176. "include/grpc++/impl/codegen/thrift_serializer.h",
  1177. "include/grpc++/impl/codegen/thrift_utils.h",
  1178. ],
  1179. deps = [
  1180. "grpc++_codegen_base",
  1181. ],
  1182. )