BUILD 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324
  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_secure",
  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. "src/cpp/client/secure_credentials.h",
  119. "src/cpp/common/secure_auth_context.h",
  120. "src/cpp/server/secure_server_credentials.h",
  121. ],
  122. language = "c++",
  123. standalone = True,
  124. deps = [
  125. "gpr",
  126. "grpc",
  127. "grpc++_base",
  128. "grpc++_codegen_base",
  129. "grpc++_codegen_base_src",
  130. "grpc++_codegen_proto",
  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. "src/core/ext/census/trace_label.h",
  265. "src/core/ext/census/trace_propagation.h",
  266. "src/core/ext/census/trace_status.h",
  267. "src/core/ext/census/trace_string.h",
  268. "src/core/ext/census/tracing.h",
  269. ],
  270. external_deps = [
  271. "nanopb",
  272. "libssl",
  273. ],
  274. language = "c",
  275. public_hdrs = [
  276. "include/grpc/census.h",
  277. ],
  278. deps = [
  279. "grpc_base",
  280. ],
  281. )
  282. grpc_cc_library(
  283. name = "gpr_base",
  284. srcs = [
  285. "src/core/lib/profiling/basic_timers.c",
  286. "src/core/lib/profiling/stap_timers.c",
  287. "src/core/lib/support/arena.c",
  288. "src/core/lib/support/alloc.c",
  289. "src/core/lib/support/avl.c",
  290. "src/core/lib/support/backoff.c",
  291. "src/core/lib/support/cmdline.c",
  292. "src/core/lib/support/cpu_iphone.c",
  293. "src/core/lib/support/cpu_linux.c",
  294. "src/core/lib/support/cpu_posix.c",
  295. "src/core/lib/support/cpu_windows.c",
  296. "src/core/lib/support/env_linux.c",
  297. "src/core/lib/support/env_posix.c",
  298. "src/core/lib/support/env_windows.c",
  299. "src/core/lib/support/histogram.c",
  300. "src/core/lib/support/host_port.c",
  301. "src/core/lib/support/log.c",
  302. "src/core/lib/support/log_android.c",
  303. "src/core/lib/support/log_linux.c",
  304. "src/core/lib/support/log_posix.c",
  305. "src/core/lib/support/log_windows.c",
  306. "src/core/lib/support/mpscq.c",
  307. "src/core/lib/support/murmur_hash.c",
  308. "src/core/lib/support/stack_lockfree.c",
  309. "src/core/lib/support/string.c",
  310. "src/core/lib/support/string_posix.c",
  311. "src/core/lib/support/string_util_windows.c",
  312. "src/core/lib/support/string_windows.c",
  313. "src/core/lib/support/subprocess_posix.c",
  314. "src/core/lib/support/subprocess_windows.c",
  315. "src/core/lib/support/sync.c",
  316. "src/core/lib/support/sync_posix.c",
  317. "src/core/lib/support/sync_windows.c",
  318. "src/core/lib/support/thd.c",
  319. "src/core/lib/support/thd_posix.c",
  320. "src/core/lib/support/thd_windows.c",
  321. "src/core/lib/support/time.c",
  322. "src/core/lib/support/time_posix.c",
  323. "src/core/lib/support/time_precise.c",
  324. "src/core/lib/support/time_windows.c",
  325. "src/core/lib/support/tls_pthread.c",
  326. "src/core/lib/support/tmpfile_msys.c",
  327. "src/core/lib/support/tmpfile_posix.c",
  328. "src/core/lib/support/tmpfile_windows.c",
  329. "src/core/lib/support/wrap_memcpy.c",
  330. ],
  331. hdrs = [
  332. "src/core/lib/support/arena.h",
  333. "src/core/lib/profiling/timers.h",
  334. "src/core/lib/support/backoff.h",
  335. "src/core/lib/support/block_annotate.h",
  336. "src/core/lib/support/env.h",
  337. "src/core/lib/support/mpscq.h",
  338. "src/core/lib/support/murmur_hash.h",
  339. "src/core/lib/support/spinlock.h",
  340. "src/core/lib/support/stack_lockfree.h",
  341. "src/core/lib/support/string.h",
  342. "src/core/lib/support/string_windows.h",
  343. "src/core/lib/support/thd_internal.h",
  344. "src/core/lib/support/time_precise.h",
  345. "src/core/lib/support/tmpfile.h",
  346. ],
  347. language = "c",
  348. public_hdrs = [
  349. "include/grpc/support/alloc.h",
  350. "include/grpc/support/atm.h",
  351. "include/grpc/support/atm_gcc_atomic.h",
  352. "include/grpc/support/atm_gcc_sync.h",
  353. "include/grpc/support/atm_windows.h",
  354. "include/grpc/support/avl.h",
  355. "include/grpc/support/cmdline.h",
  356. "include/grpc/support/cpu.h",
  357. "include/grpc/support/histogram.h",
  358. "include/grpc/support/host_port.h",
  359. "include/grpc/support/log.h",
  360. "include/grpc/support/log_windows.h",
  361. "include/grpc/support/port_platform.h",
  362. "include/grpc/support/string_util.h",
  363. "include/grpc/support/subprocess.h",
  364. "include/grpc/support/sync.h",
  365. "include/grpc/support/sync_generic.h",
  366. "include/grpc/support/sync_posix.h",
  367. "include/grpc/support/sync_windows.h",
  368. "include/grpc/support/thd.h",
  369. "include/grpc/support/time.h",
  370. "include/grpc/support/tls.h",
  371. "include/grpc/support/tls_gcc.h",
  372. "include/grpc/support/tls_msvc.h",
  373. "include/grpc/support/tls_pthread.h",
  374. "include/grpc/support/useful.h",
  375. ],
  376. deps = [
  377. "gpr_codegen",
  378. ],
  379. )
  380. grpc_cc_library(
  381. name = "gpr_codegen",
  382. language = "c",
  383. public_hdrs = [
  384. "include/grpc/impl/codegen/atm.h",
  385. "include/grpc/impl/codegen/atm_gcc_atomic.h",
  386. "include/grpc/impl/codegen/atm_gcc_sync.h",
  387. "include/grpc/impl/codegen/atm_windows.h",
  388. "include/grpc/impl/codegen/gpr_slice.h",
  389. "include/grpc/impl/codegen/gpr_types.h",
  390. "include/grpc/impl/codegen/port_platform.h",
  391. "include/grpc/impl/codegen/slice.h",
  392. "include/grpc/impl/codegen/sync.h",
  393. "include/grpc/impl/codegen/sync_generic.h",
  394. "include/grpc/impl/codegen/sync_posix.h",
  395. "include/grpc/impl/codegen/sync_windows.h",
  396. ],
  397. )
  398. grpc_cc_library(
  399. name = "grpc_base",
  400. srcs = [
  401. "src/core/lib/channel/channel_args.c",
  402. "src/core/lib/channel/channel_stack.c",
  403. "src/core/lib/channel/channel_stack_builder.c",
  404. "src/core/lib/channel/compress_filter.c",
  405. "src/core/lib/channel/connected_channel.c",
  406. "src/core/lib/channel/deadline_filter.c",
  407. "src/core/lib/channel/handshaker.c",
  408. "src/core/lib/channel/handshaker_factory.c",
  409. "src/core/lib/channel/handshaker_registry.c",
  410. "src/core/lib/channel/http_client_filter.c",
  411. "src/core/lib/channel/http_server_filter.c",
  412. "src/core/lib/channel/message_size_filter.c",
  413. "src/core/lib/compression/compression.c",
  414. "src/core/lib/compression/message_compress.c",
  415. "src/core/lib/debug/trace.c",
  416. "src/core/lib/http/format_request.c",
  417. "src/core/lib/http/httpcli.c",
  418. "src/core/lib/http/parser.c",
  419. "src/core/lib/iomgr/closure.c",
  420. "src/core/lib/iomgr/combiner.c",
  421. "src/core/lib/iomgr/endpoint.c",
  422. "src/core/lib/iomgr/endpoint_pair_posix.c",
  423. "src/core/lib/iomgr/endpoint_pair_uv.c",
  424. "src/core/lib/iomgr/endpoint_pair_windows.c",
  425. "src/core/lib/iomgr/error.c",
  426. "src/core/lib/iomgr/ev_epoll_linux.c",
  427. "src/core/lib/iomgr/ev_poll_posix.c",
  428. "src/core/lib/iomgr/ev_posix.c",
  429. "src/core/lib/iomgr/exec_ctx.c",
  430. "src/core/lib/iomgr/executor.c",
  431. "src/core/lib/iomgr/iocp_windows.c",
  432. "src/core/lib/iomgr/iomgr.c",
  433. "src/core/lib/iomgr/iomgr_posix.c",
  434. "src/core/lib/iomgr/iomgr_uv.c",
  435. "src/core/lib/iomgr/iomgr_windows.c",
  436. "src/core/lib/iomgr/load_file.c",
  437. "src/core/lib/iomgr/network_status_tracker.c",
  438. "src/core/lib/iomgr/polling_entity.c",
  439. "src/core/lib/iomgr/pollset_set_uv.c",
  440. "src/core/lib/iomgr/pollset_set_windows.c",
  441. "src/core/lib/iomgr/pollset_uv.c",
  442. "src/core/lib/iomgr/pollset_windows.c",
  443. "src/core/lib/iomgr/resolve_address_posix.c",
  444. "src/core/lib/iomgr/resolve_address_uv.c",
  445. "src/core/lib/iomgr/resolve_address_windows.c",
  446. "src/core/lib/iomgr/resource_quota.c",
  447. "src/core/lib/iomgr/sockaddr_utils.c",
  448. "src/core/lib/iomgr/socket_mutator.c",
  449. "src/core/lib/iomgr/socket_utils_common_posix.c",
  450. "src/core/lib/iomgr/socket_utils_linux.c",
  451. "src/core/lib/iomgr/socket_utils_posix.c",
  452. "src/core/lib/iomgr/socket_utils_uv.c",
  453. "src/core/lib/iomgr/socket_utils_windows.c",
  454. "src/core/lib/iomgr/socket_windows.c",
  455. "src/core/lib/iomgr/tcp_client_posix.c",
  456. "src/core/lib/iomgr/tcp_client_uv.c",
  457. "src/core/lib/iomgr/tcp_client_windows.c",
  458. "src/core/lib/iomgr/tcp_posix.c",
  459. "src/core/lib/iomgr/tcp_server_posix.c",
  460. "src/core/lib/iomgr/tcp_server_uv.c",
  461. "src/core/lib/iomgr/tcp_server_windows.c",
  462. "src/core/lib/iomgr/tcp_uv.c",
  463. "src/core/lib/iomgr/tcp_windows.c",
  464. "src/core/lib/iomgr/time_averaged_stats.c",
  465. "src/core/lib/iomgr/timer_generic.c",
  466. "src/core/lib/iomgr/timer_heap.c",
  467. "src/core/lib/iomgr/timer_uv.c",
  468. "src/core/lib/iomgr/udp_server.c",
  469. "src/core/lib/iomgr/unix_sockets_posix.c",
  470. "src/core/lib/iomgr/unix_sockets_posix_noop.c",
  471. "src/core/lib/iomgr/wakeup_fd_cv.c",
  472. "src/core/lib/iomgr/wakeup_fd_eventfd.c",
  473. "src/core/lib/iomgr/wakeup_fd_nospecial.c",
  474. "src/core/lib/iomgr/wakeup_fd_pipe.c",
  475. "src/core/lib/iomgr/wakeup_fd_posix.c",
  476. "src/core/lib/iomgr/workqueue_uv.c",
  477. "src/core/lib/iomgr/workqueue_windows.c",
  478. "src/core/lib/json/json.c",
  479. "src/core/lib/json/json_reader.c",
  480. "src/core/lib/json/json_string.c",
  481. "src/core/lib/json/json_writer.c",
  482. "src/core/lib/slice/percent_encoding.c",
  483. "src/core/lib/slice/slice.c",
  484. "src/core/lib/slice/slice_buffer.c",
  485. "src/core/lib/slice/slice_hash_table.c",
  486. "src/core/lib/slice/slice_intern.c",
  487. "src/core/lib/slice/slice_string_helpers.c",
  488. "src/core/lib/surface/alarm.c",
  489. "src/core/lib/surface/api_trace.c",
  490. "src/core/lib/surface/byte_buffer.c",
  491. "src/core/lib/surface/byte_buffer_reader.c",
  492. "src/core/lib/surface/call.c",
  493. "src/core/lib/surface/call_details.c",
  494. "src/core/lib/surface/call_log_batch.c",
  495. "src/core/lib/surface/channel.c",
  496. "src/core/lib/surface/channel_init.c",
  497. "src/core/lib/surface/channel_ping.c",
  498. "src/core/lib/surface/channel_stack_type.c",
  499. "src/core/lib/surface/completion_queue.c",
  500. "src/core/lib/surface/event_string.c",
  501. "src/core/lib/surface/lame_client.c",
  502. "src/core/lib/surface/metadata_array.c",
  503. "src/core/lib/surface/server.c",
  504. "src/core/lib/surface/validate_metadata.c",
  505. "src/core/lib/surface/version.c",
  506. "src/core/lib/transport/bdp_estimator.c",
  507. "src/core/lib/transport/byte_stream.c",
  508. "src/core/lib/transport/connectivity_state.c",
  509. "src/core/lib/transport/error_utils.c",
  510. "src/core/lib/transport/metadata.c",
  511. "src/core/lib/transport/metadata_batch.c",
  512. "src/core/lib/transport/pid_controller.c",
  513. "src/core/lib/transport/service_config.c",
  514. "src/core/lib/transport/static_metadata.c",
  515. "src/core/lib/transport/status_conversion.c",
  516. "src/core/lib/transport/timeout_encoding.c",
  517. "src/core/lib/transport/transport.c",
  518. "src/core/lib/transport/transport_op_string.c",
  519. ],
  520. hdrs = [
  521. "src/core/lib/channel/channel_args.h",
  522. "src/core/lib/channel/channel_stack.h",
  523. "src/core/lib/channel/channel_stack_builder.h",
  524. "src/core/lib/channel/compress_filter.h",
  525. "src/core/lib/channel/connected_channel.h",
  526. "src/core/lib/channel/context.h",
  527. "src/core/lib/channel/deadline_filter.h",
  528. "src/core/lib/channel/handshaker.h",
  529. "src/core/lib/channel/handshaker_factory.h",
  530. "src/core/lib/channel/handshaker_registry.h",
  531. "src/core/lib/channel/http_client_filter.h",
  532. "src/core/lib/channel/http_server_filter.h",
  533. "src/core/lib/channel/message_size_filter.h",
  534. "src/core/lib/compression/algorithm_metadata.h",
  535. "src/core/lib/compression/message_compress.h",
  536. "src/core/lib/debug/trace.h",
  537. "src/core/lib/http/format_request.h",
  538. "src/core/lib/http/httpcli.h",
  539. "src/core/lib/http/parser.h",
  540. "src/core/lib/iomgr/closure.h",
  541. "src/core/lib/iomgr/combiner.h",
  542. "src/core/lib/iomgr/endpoint.h",
  543. "src/core/lib/iomgr/endpoint_pair.h",
  544. "src/core/lib/iomgr/error.h",
  545. "src/core/lib/iomgr/error_internal.h",
  546. "src/core/lib/iomgr/ev_epoll_linux.h",
  547. "src/core/lib/iomgr/ev_poll_posix.h",
  548. "src/core/lib/iomgr/ev_posix.h",
  549. "src/core/lib/iomgr/exec_ctx.h",
  550. "src/core/lib/iomgr/executor.h",
  551. "src/core/lib/iomgr/iocp_windows.h",
  552. "src/core/lib/iomgr/iomgr.h",
  553. "src/core/lib/iomgr/iomgr_internal.h",
  554. "src/core/lib/iomgr/iomgr_posix.h",
  555. "src/core/lib/iomgr/load_file.h",
  556. "src/core/lib/iomgr/network_status_tracker.h",
  557. "src/core/lib/iomgr/polling_entity.h",
  558. "src/core/lib/iomgr/pollset.h",
  559. "src/core/lib/iomgr/pollset_set.h",
  560. "src/core/lib/iomgr/pollset_set_windows.h",
  561. "src/core/lib/iomgr/pollset_uv.h",
  562. "src/core/lib/iomgr/pollset_windows.h",
  563. "src/core/lib/iomgr/port.h",
  564. "src/core/lib/iomgr/resolve_address.h",
  565. "src/core/lib/iomgr/resource_quota.h",
  566. "src/core/lib/iomgr/sockaddr.h",
  567. "src/core/lib/iomgr/sockaddr_posix.h",
  568. "src/core/lib/iomgr/sockaddr_utils.h",
  569. "src/core/lib/iomgr/sockaddr_windows.h",
  570. "src/core/lib/iomgr/socket_mutator.h",
  571. "src/core/lib/iomgr/socket_utils.h",
  572. "src/core/lib/iomgr/socket_utils_posix.h",
  573. "src/core/lib/iomgr/socket_windows.h",
  574. "src/core/lib/iomgr/tcp_client.h",
  575. "src/core/lib/iomgr/tcp_client_posix.h",
  576. "src/core/lib/iomgr/tcp_posix.h",
  577. "src/core/lib/iomgr/tcp_server.h",
  578. "src/core/lib/iomgr/tcp_uv.h",
  579. "src/core/lib/iomgr/tcp_windows.h",
  580. "src/core/lib/iomgr/time_averaged_stats.h",
  581. "src/core/lib/iomgr/timer.h",
  582. "src/core/lib/iomgr/timer_generic.h",
  583. "src/core/lib/iomgr/timer_heap.h",
  584. "src/core/lib/iomgr/timer_uv.h",
  585. "src/core/lib/iomgr/udp_server.h",
  586. "src/core/lib/iomgr/unix_sockets_posix.h",
  587. "src/core/lib/iomgr/wakeup_fd_cv.h",
  588. "src/core/lib/iomgr/wakeup_fd_pipe.h",
  589. "src/core/lib/iomgr/wakeup_fd_posix.h",
  590. "src/core/lib/iomgr/workqueue.h",
  591. "src/core/lib/iomgr/workqueue_uv.h",
  592. "src/core/lib/iomgr/workqueue_windows.h",
  593. "src/core/lib/json/json.h",
  594. "src/core/lib/json/json_common.h",
  595. "src/core/lib/json/json_reader.h",
  596. "src/core/lib/json/json_writer.h",
  597. "src/core/lib/slice/percent_encoding.h",
  598. "src/core/lib/slice/slice_hash_table.h",
  599. "src/core/lib/slice/slice_internal.h",
  600. "src/core/lib/slice/slice_string_helpers.h",
  601. "src/core/lib/surface/api_trace.h",
  602. "src/core/lib/surface/call.h",
  603. "src/core/lib/surface/call_test_only.h",
  604. "src/core/lib/surface/channel.h",
  605. "src/core/lib/surface/channel_init.h",
  606. "src/core/lib/surface/channel_stack_type.h",
  607. "src/core/lib/surface/completion_queue.h",
  608. "src/core/lib/surface/event_string.h",
  609. "src/core/lib/surface/init.h",
  610. "src/core/lib/surface/lame_client.h",
  611. "src/core/lib/surface/server.h",
  612. "src/core/lib/surface/validate_metadata.h",
  613. "src/core/lib/transport/bdp_estimator.h",
  614. "src/core/lib/transport/byte_stream.h",
  615. "src/core/lib/transport/connectivity_state.h",
  616. "src/core/lib/transport/error_utils.h",
  617. "src/core/lib/transport/http2_errors.h",
  618. "src/core/lib/transport/metadata.h",
  619. "src/core/lib/transport/metadata_batch.h",
  620. "src/core/lib/transport/pid_controller.h",
  621. "src/core/lib/transport/service_config.h",
  622. "src/core/lib/transport/static_metadata.h",
  623. "src/core/lib/transport/status_conversion.h",
  624. "src/core/lib/transport/timeout_encoding.h",
  625. "src/core/lib/transport/transport.h",
  626. "src/core/lib/transport/transport_impl.h",
  627. ],
  628. external_deps = [
  629. "zlib",
  630. ],
  631. language = "c",
  632. public_hdrs = [
  633. "include/grpc/byte_buffer.h",
  634. "include/grpc/byte_buffer_reader.h",
  635. "include/grpc/compression.h",
  636. "include/grpc/load_reporting.h",
  637. "include/grpc/grpc.h",
  638. "include/grpc/grpc_posix.h",
  639. "include/grpc/grpc_security_constants.h",
  640. "include/grpc/slice.h",
  641. "include/grpc/slice_buffer.h",
  642. "include/grpc/status.h",
  643. ],
  644. deps = [
  645. "gpr_base",
  646. "grpc_codegen",
  647. ],
  648. )
  649. grpc_cc_library(
  650. name = "grpc_client_channel",
  651. srcs = [
  652. "src/core/ext/client_channel/channel_connectivity.c",
  653. "src/core/ext/client_channel/client_channel.c",
  654. "src/core/ext/client_channel/client_channel_factory.c",
  655. "src/core/ext/client_channel/client_channel_plugin.c",
  656. "src/core/ext/client_channel/connector.c",
  657. "src/core/ext/client_channel/default_initial_connect_string.c",
  658. "src/core/ext/client_channel/http_connect_handshaker.c",
  659. "src/core/ext/client_channel/http_proxy.c",
  660. "src/core/ext/client_channel/initial_connect_string.c",
  661. "src/core/ext/client_channel/lb_policy.c",
  662. "src/core/ext/client_channel/lb_policy_factory.c",
  663. "src/core/ext/client_channel/lb_policy_registry.c",
  664. "src/core/ext/client_channel/parse_address.c",
  665. "src/core/ext/client_channel/proxy_mapper.c",
  666. "src/core/ext/client_channel/proxy_mapper_registry.c",
  667. "src/core/ext/client_channel/resolver.c",
  668. "src/core/ext/client_channel/resolver_factory.c",
  669. "src/core/ext/client_channel/resolver_registry.c",
  670. "src/core/ext/client_channel/subchannel.c",
  671. "src/core/ext/client_channel/subchannel_index.c",
  672. "src/core/ext/client_channel/uri_parser.c",
  673. ],
  674. hdrs = [
  675. "src/core/ext/client_channel/client_channel.h",
  676. "src/core/ext/client_channel/client_channel_factory.h",
  677. "src/core/ext/client_channel/connector.h",
  678. "src/core/ext/client_channel/http_connect_handshaker.h",
  679. "src/core/ext/client_channel/http_proxy.h",
  680. "src/core/ext/client_channel/initial_connect_string.h",
  681. "src/core/ext/client_channel/lb_policy.h",
  682. "src/core/ext/client_channel/lb_policy_factory.h",
  683. "src/core/ext/client_channel/lb_policy_registry.h",
  684. "src/core/ext/client_channel/parse_address.h",
  685. "src/core/ext/client_channel/proxy_mapper.h",
  686. "src/core/ext/client_channel/proxy_mapper_registry.h",
  687. "src/core/ext/client_channel/resolver.h",
  688. "src/core/ext/client_channel/resolver_factory.h",
  689. "src/core/ext/client_channel/resolver_registry.h",
  690. "src/core/ext/client_channel/subchannel.h",
  691. "src/core/ext/client_channel/subchannel_index.h",
  692. "src/core/ext/client_channel/uri_parser.h",
  693. ],
  694. language = "c",
  695. deps = [
  696. "grpc_base",
  697. ],
  698. )
  699. grpc_cc_library(
  700. name = "grpc_codegen",
  701. language = "c",
  702. public_hdrs = [
  703. "include/grpc/impl/codegen/byte_buffer_reader.h",
  704. "include/grpc/impl/codegen/compression_types.h",
  705. "include/grpc/impl/codegen/connectivity_state.h",
  706. "include/grpc/impl/codegen/exec_ctx_fwd.h",
  707. "include/grpc/impl/codegen/grpc_types.h",
  708. "include/grpc/impl/codegen/propagation_bits.h",
  709. "include/grpc/impl/codegen/status.h",
  710. ],
  711. deps = [
  712. "gpr_codegen",
  713. ],
  714. )
  715. grpc_cc_library(
  716. name = "grpc_lb_policy_grpclb",
  717. srcs = [
  718. "src/core/ext/lb_policy/grpclb/grpclb.c",
  719. "src/core/ext/lb_policy/grpclb/grpclb_channel.c",
  720. "src/core/ext/lb_policy/grpclb/load_balancer_api.c",
  721. "src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c",
  722. ],
  723. hdrs = [
  724. "src/core/ext/lb_policy/grpclb/grpclb.h",
  725. "src/core/ext/lb_policy/grpclb/grpclb_channel.h",
  726. "src/core/ext/lb_policy/grpclb/load_balancer_api.h",
  727. "src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h",
  728. ],
  729. external_deps = [
  730. "nanopb",
  731. ],
  732. language = "c",
  733. deps = [
  734. "grpc_base",
  735. "grpc_client_channel",
  736. ],
  737. )
  738. grpc_cc_library(
  739. name = "grpc_lb_policy_grpclb_secure",
  740. srcs = [
  741. "src/core/ext/lb_policy/grpclb/grpclb.c",
  742. "src/core/ext/lb_policy/grpclb/grpclb_channel_secure.c",
  743. "src/core/ext/lb_policy/grpclb/load_balancer_api.c",
  744. "src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c",
  745. ],
  746. hdrs = [
  747. "src/core/ext/lb_policy/grpclb/grpclb.h",
  748. "src/core/ext/lb_policy/grpclb/grpclb_channel.h",
  749. "src/core/ext/lb_policy/grpclb/load_balancer_api.h",
  750. "src/core/ext/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h",
  751. ],
  752. external_deps = [
  753. "nanopb",
  754. ],
  755. language = "c",
  756. deps = [
  757. "grpc_base",
  758. "grpc_client_channel",
  759. "grpc_secure",
  760. ],
  761. )
  762. grpc_cc_library(
  763. name = "grpc_lb_policy_pick_first",
  764. srcs = [
  765. "src/core/ext/lb_policy/pick_first/pick_first.c",
  766. ],
  767. language = "c",
  768. deps = [
  769. "grpc_base",
  770. "grpc_client_channel",
  771. ],
  772. )
  773. grpc_cc_library(
  774. name = "grpc_lb_policy_round_robin",
  775. srcs = [
  776. "src/core/ext/lb_policy/round_robin/round_robin.c",
  777. ],
  778. language = "c",
  779. deps = [
  780. "grpc_base",
  781. "grpc_client_channel",
  782. ],
  783. )
  784. grpc_cc_library(
  785. name = "grpc_load_reporting",
  786. srcs = [
  787. "src/core/ext/load_reporting/load_reporting.c",
  788. "src/core/ext/load_reporting/load_reporting_filter.c",
  789. ],
  790. hdrs = [
  791. "src/core/ext/load_reporting/load_reporting.h",
  792. "src/core/ext/load_reporting/load_reporting_filter.h",
  793. ],
  794. language = "c",
  795. deps = [
  796. "grpc_base",
  797. ],
  798. )
  799. grpc_cc_library(
  800. name = "grpc_resolver_dns_native",
  801. srcs = [
  802. "src/core/ext/resolver/dns/native/dns_resolver.c",
  803. ],
  804. language = "c",
  805. deps = [
  806. "grpc_base",
  807. "grpc_client_channel",
  808. ],
  809. )
  810. grpc_cc_library(
  811. name = "grpc_resolver_sockaddr",
  812. srcs = [
  813. "src/core/ext/resolver/sockaddr/sockaddr_resolver.c",
  814. ],
  815. language = "c",
  816. deps = [
  817. "grpc_base",
  818. "grpc_client_channel",
  819. ],
  820. )
  821. grpc_cc_library(
  822. name = "grpc_secure",
  823. srcs = [
  824. "src/core/lib/http/httpcli_security_connector.c",
  825. "src/core/lib/security/context/security_context.c",
  826. "src/core/lib/security/credentials/composite/composite_credentials.c",
  827. "src/core/lib/security/credentials/credentials.c",
  828. "src/core/lib/security/credentials/credentials_metadata.c",
  829. "src/core/lib/security/credentials/fake/fake_credentials.c",
  830. "src/core/lib/security/credentials/google_default/credentials_generic.c",
  831. "src/core/lib/security/credentials/google_default/google_default_credentials.c",
  832. "src/core/lib/security/credentials/iam/iam_credentials.c",
  833. "src/core/lib/security/credentials/jwt/json_token.c",
  834. "src/core/lib/security/credentials/jwt/jwt_credentials.c",
  835. "src/core/lib/security/credentials/jwt/jwt_verifier.c",
  836. "src/core/lib/security/credentials/oauth2/oauth2_credentials.c",
  837. "src/core/lib/security/credentials/plugin/plugin_credentials.c",
  838. "src/core/lib/security/credentials/ssl/ssl_credentials.c",
  839. "src/core/lib/security/transport/client_auth_filter.c",
  840. "src/core/lib/security/transport/lb_targets_info.c",
  841. "src/core/lib/security/transport/secure_endpoint.c",
  842. "src/core/lib/security/transport/security_connector.c",
  843. "src/core/lib/security/transport/security_handshaker.c",
  844. "src/core/lib/security/transport/server_auth_filter.c",
  845. "src/core/lib/security/transport/tsi_error.c",
  846. "src/core/lib/security/util/b64.c",
  847. "src/core/lib/security/util/json_util.c",
  848. "src/core/lib/surface/init_secure.c",
  849. ],
  850. hdrs = [
  851. "src/core/lib/security/context/security_context.h",
  852. "src/core/lib/security/credentials/composite/composite_credentials.h",
  853. "src/core/lib/security/credentials/credentials.h",
  854. "src/core/lib/security/credentials/fake/fake_credentials.h",
  855. "src/core/lib/security/credentials/google_default/google_default_credentials.h",
  856. "src/core/lib/security/credentials/iam/iam_credentials.h",
  857. "src/core/lib/security/credentials/jwt/json_token.h",
  858. "src/core/lib/security/credentials/jwt/jwt_credentials.h",
  859. "src/core/lib/security/credentials/jwt/jwt_verifier.h",
  860. "src/core/lib/security/credentials/oauth2/oauth2_credentials.h",
  861. "src/core/lib/security/credentials/plugin/plugin_credentials.h",
  862. "src/core/lib/security/credentials/ssl/ssl_credentials.h",
  863. "src/core/lib/security/transport/auth_filters.h",
  864. "src/core/lib/security/transport/lb_targets_info.h",
  865. "src/core/lib/security/transport/secure_endpoint.h",
  866. "src/core/lib/security/transport/security_connector.h",
  867. "src/core/lib/security/transport/security_handshaker.h",
  868. "src/core/lib/security/transport/tsi_error.h",
  869. "src/core/lib/security/util/b64.h",
  870. "src/core/lib/security/util/json_util.h",
  871. ],
  872. language = "c",
  873. public_hdrs = [
  874. "include/grpc/grpc_security.h",
  875. ],
  876. deps = [
  877. "grpc_base",
  878. "grpc_transport_chttp2_alpn",
  879. "tsi",
  880. ],
  881. )
  882. grpc_cc_library(
  883. name = "grpc_transport_chttp2",
  884. srcs = [
  885. "src/core/ext/transport/chttp2/transport/bin_decoder.c",
  886. "src/core/ext/transport/chttp2/transport/bin_encoder.c",
  887. "src/core/ext/transport/chttp2/transport/chttp2_plugin.c",
  888. "src/core/ext/transport/chttp2/transport/chttp2_transport.c",
  889. "src/core/ext/transport/chttp2/transport/frame_data.c",
  890. "src/core/ext/transport/chttp2/transport/frame_goaway.c",
  891. "src/core/ext/transport/chttp2/transport/frame_ping.c",
  892. "src/core/ext/transport/chttp2/transport/frame_rst_stream.c",
  893. "src/core/ext/transport/chttp2/transport/frame_settings.c",
  894. "src/core/ext/transport/chttp2/transport/frame_window_update.c",
  895. "src/core/ext/transport/chttp2/transport/hpack_encoder.c",
  896. "src/core/ext/transport/chttp2/transport/hpack_parser.c",
  897. "src/core/ext/transport/chttp2/transport/hpack_table.c",
  898. "src/core/ext/transport/chttp2/transport/huffsyms.c",
  899. "src/core/ext/transport/chttp2/transport/incoming_metadata.c",
  900. "src/core/ext/transport/chttp2/transport/parsing.c",
  901. "src/core/ext/transport/chttp2/transport/stream_lists.c",
  902. "src/core/ext/transport/chttp2/transport/stream_map.c",
  903. "src/core/ext/transport/chttp2/transport/varint.c",
  904. "src/core/ext/transport/chttp2/transport/writing.c",
  905. ],
  906. hdrs = [
  907. "src/core/ext/transport/chttp2/transport/bin_decoder.h",
  908. "src/core/ext/transport/chttp2/transport/bin_encoder.h",
  909. "src/core/ext/transport/chttp2/transport/chttp2_transport.h",
  910. "src/core/ext/transport/chttp2/transport/frame.h",
  911. "src/core/ext/transport/chttp2/transport/frame_data.h",
  912. "src/core/ext/transport/chttp2/transport/frame_goaway.h",
  913. "src/core/ext/transport/chttp2/transport/frame_ping.h",
  914. "src/core/ext/transport/chttp2/transport/frame_rst_stream.h",
  915. "src/core/ext/transport/chttp2/transport/frame_settings.h",
  916. "src/core/ext/transport/chttp2/transport/frame_window_update.h",
  917. "src/core/ext/transport/chttp2/transport/hpack_encoder.h",
  918. "src/core/ext/transport/chttp2/transport/hpack_parser.h",
  919. "src/core/ext/transport/chttp2/transport/hpack_table.h",
  920. "src/core/ext/transport/chttp2/transport/huffsyms.h",
  921. "src/core/ext/transport/chttp2/transport/incoming_metadata.h",
  922. "src/core/ext/transport/chttp2/transport/internal.h",
  923. "src/core/ext/transport/chttp2/transport/stream_map.h",
  924. "src/core/ext/transport/chttp2/transport/varint.h",
  925. ],
  926. language = "c",
  927. deps = [
  928. "grpc_base",
  929. "grpc_transport_chttp2_alpn",
  930. ],
  931. )
  932. grpc_cc_library(
  933. name = "grpc_transport_chttp2_alpn",
  934. srcs = [
  935. "src/core/ext/transport/chttp2/alpn/alpn.c",
  936. ],
  937. hdrs = [
  938. "src/core/ext/transport/chttp2/alpn/alpn.h",
  939. ],
  940. language = "c",
  941. deps = [
  942. "gpr",
  943. ],
  944. )
  945. grpc_cc_library(
  946. name = "grpc_transport_chttp2_client_connector",
  947. srcs = [
  948. "src/core/ext/transport/chttp2/client/chttp2_connector.c",
  949. ],
  950. hdrs = [
  951. "src/core/ext/transport/chttp2/client/chttp2_connector.h",
  952. ],
  953. language = "c",
  954. deps = [
  955. "grpc_base",
  956. "grpc_client_channel",
  957. "grpc_transport_chttp2",
  958. ],
  959. )
  960. grpc_cc_library(
  961. name = "grpc_transport_chttp2_client_insecure",
  962. srcs = [
  963. "src/core/ext/transport/chttp2/client/insecure/channel_create.c",
  964. "src/core/ext/transport/chttp2/client/insecure/channel_create_posix.c",
  965. ],
  966. language = "c",
  967. deps = [
  968. "grpc_base",
  969. "grpc_client_channel",
  970. "grpc_transport_chttp2",
  971. "grpc_transport_chttp2_client_connector",
  972. ],
  973. )
  974. grpc_cc_library(
  975. name = "grpc_transport_chttp2_client_secure",
  976. srcs = [
  977. "src/core/ext/transport/chttp2/client/secure/secure_channel_create.c",
  978. ],
  979. language = "c",
  980. deps = [
  981. "grpc_base",
  982. "grpc_client_channel",
  983. "grpc_secure",
  984. "grpc_transport_chttp2",
  985. "grpc_transport_chttp2_client_connector",
  986. ],
  987. )
  988. grpc_cc_library(
  989. name = "grpc_transport_chttp2_server",
  990. srcs = [
  991. "src/core/ext/transport/chttp2/server/chttp2_server.c",
  992. ],
  993. hdrs = [
  994. "src/core/ext/transport/chttp2/server/chttp2_server.h",
  995. ],
  996. language = "c",
  997. deps = [
  998. "grpc_base",
  999. "grpc_transport_chttp2",
  1000. ],
  1001. )
  1002. grpc_cc_library(
  1003. name = "grpc_transport_chttp2_server_insecure",
  1004. srcs = [
  1005. "src/core/ext/transport/chttp2/server/insecure/server_chttp2.c",
  1006. "src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.c",
  1007. ],
  1008. language = "c",
  1009. deps = [
  1010. "grpc_base",
  1011. "grpc_transport_chttp2",
  1012. "grpc_transport_chttp2_server",
  1013. ],
  1014. )
  1015. grpc_cc_library(
  1016. name = "grpc_transport_chttp2_server_secure",
  1017. srcs = [
  1018. "src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.c",
  1019. ],
  1020. language = "c",
  1021. deps = [
  1022. "grpc_base",
  1023. "grpc_secure",
  1024. "grpc_transport_chttp2",
  1025. "grpc_transport_chttp2_server",
  1026. ],
  1027. )
  1028. grpc_cc_library(
  1029. name = "grpc_transport_cronet_client_secure",
  1030. srcs = [
  1031. "src/core/ext/transport/cronet/client/secure/cronet_channel_create.c",
  1032. "src/core/ext/transport/cronet/transport/cronet_api_dummy.c",
  1033. "src/core/ext/transport/cronet/transport/cronet_transport.c",
  1034. ],
  1035. hdrs = [
  1036. "src/core/ext/transport/cronet/transport/cronet_transport.h",
  1037. "third_party/objective_c/Cronet/bidirectional_stream_c.h",
  1038. ],
  1039. language = "c",
  1040. public_hdrs = [
  1041. "include/grpc/grpc_cronet.h",
  1042. "include/grpc/grpc_security.h",
  1043. "include/grpc/grpc_security_constants.h",
  1044. ],
  1045. deps = [
  1046. "grpc_base",
  1047. "grpc_transport_chttp2",
  1048. ],
  1049. )
  1050. grpc_cc_library(
  1051. name = "tsi",
  1052. srcs = [
  1053. "src/core/lib/tsi/fake_transport_security.c",
  1054. "src/core/lib/tsi/ssl_transport_security.c",
  1055. "src/core/lib/tsi/transport_security.c",
  1056. ],
  1057. hdrs = [
  1058. "src/core/lib/tsi/fake_transport_security.h",
  1059. "src/core/lib/tsi/ssl_transport_security.h",
  1060. "src/core/lib/tsi/ssl_types.h",
  1061. "src/core/lib/tsi/transport_security.h",
  1062. "src/core/lib/tsi/transport_security_interface.h",
  1063. ],
  1064. external_deps = [
  1065. "libssl",
  1066. ],
  1067. language = "c",
  1068. deps = [
  1069. "gpr",
  1070. ],
  1071. )
  1072. grpc_cc_library(
  1073. name = "grpc++_base",
  1074. srcs = [
  1075. "src/cpp/client/channel_cc.cc",
  1076. "src/cpp/client/client_context.cc",
  1077. "src/cpp/client/create_channel.cc",
  1078. "src/cpp/client/create_channel_internal.cc",
  1079. "src/cpp/client/create_channel_posix.cc",
  1080. "src/cpp/client/credentials_cc.cc",
  1081. "src/cpp/client/generic_stub.cc",
  1082. "src/cpp/common/channel_arguments.cc",
  1083. "src/cpp/common/channel_filter.cc",
  1084. "src/cpp/common/completion_queue_cc.cc",
  1085. "src/cpp/common/core_codegen.cc",
  1086. "src/cpp/common/resource_quota_cc.cc",
  1087. "src/cpp/common/rpc_method.cc",
  1088. "src/cpp/common/version_cc.cc",
  1089. "src/cpp/server/async_generic_service.cc",
  1090. "src/cpp/server/channel_argument_option.cc",
  1091. "src/cpp/server/create_default_thread_pool.cc",
  1092. "src/cpp/server/dynamic_thread_pool.cc",
  1093. "src/cpp/server/health/default_health_check_service.cc",
  1094. "src/cpp/server/health/health.pb.c",
  1095. "src/cpp/server/health/health_check_service.cc",
  1096. "src/cpp/server/health/health_check_service_server_builder_option.cc",
  1097. "src/cpp/server/server_builder.cc",
  1098. "src/cpp/server/server_cc.cc",
  1099. "src/cpp/server/server_context.cc",
  1100. "src/cpp/server/server_credentials.cc",
  1101. "src/cpp/server/server_posix.cc",
  1102. "src/cpp/thread_manager/thread_manager.cc",
  1103. "src/cpp/util/byte_buffer_cc.cc",
  1104. "src/cpp/util/slice_cc.cc",
  1105. "src/cpp/util/status.cc",
  1106. "src/cpp/util/string_ref.cc",
  1107. "src/cpp/util/time_cc.cc",
  1108. ],
  1109. hdrs = [
  1110. "src/cpp/client/create_channel_internal.h",
  1111. "src/cpp/common/channel_filter.h",
  1112. "src/cpp/server/dynamic_thread_pool.h",
  1113. "src/cpp/server/health/default_health_check_service.h",
  1114. "src/cpp/server/health/health.pb.h",
  1115. "src/cpp/server/thread_pool_interface.h",
  1116. "src/cpp/thread_manager/thread_manager.h",
  1117. ],
  1118. language = "c++",
  1119. public_hdrs = [
  1120. "include/grpc++/alarm.h",
  1121. "include/grpc++/channel.h",
  1122. "include/grpc++/client_context.h",
  1123. "include/grpc++/completion_queue.h",
  1124. "include/grpc++/create_channel.h",
  1125. "include/grpc++/create_channel_posix.h",
  1126. "include/grpc++/ext/health_check_service_server_builder_option.h",
  1127. "include/grpc++/generic/async_generic_service.h",
  1128. "include/grpc++/generic/generic_stub.h",
  1129. "include/grpc++/grpc++.h",
  1130. "include/grpc++/health_check_service_interface.h",
  1131. "include/grpc++/impl/call.h",
  1132. "include/grpc++/impl/channel_argument_option.h",
  1133. "include/grpc++/impl/client_unary_call.h",
  1134. "include/grpc++/impl/codegen/core_codegen.h",
  1135. "include/grpc++/impl/grpc_library.h",
  1136. "include/grpc++/impl/method_handler_impl.h",
  1137. "include/grpc++/impl/rpc_method.h",
  1138. "include/grpc++/impl/rpc_service_method.h",
  1139. "include/grpc++/impl/serialization_traits.h",
  1140. "include/grpc++/impl/server_builder_option.h",
  1141. "include/grpc++/impl/server_builder_plugin.h",
  1142. "include/grpc++/impl/server_initializer.h",
  1143. "include/grpc++/impl/service_type.h",
  1144. "include/grpc++/impl/sync_cxx11.h",
  1145. "include/grpc++/impl/sync_no_cxx11.h",
  1146. "include/grpc++/resource_quota.h",
  1147. "include/grpc++/security/auth_context.h",
  1148. "include/grpc++/security/auth_metadata_processor.h",
  1149. "include/grpc++/security/credentials.h",
  1150. "include/grpc++/security/server_credentials.h",
  1151. "include/grpc++/server.h",
  1152. "include/grpc++/server_builder.h",
  1153. "include/grpc++/server_context.h",
  1154. "include/grpc++/server_posix.h",
  1155. "include/grpc++/support/async_stream.h",
  1156. "include/grpc++/support/async_unary_call.h",
  1157. "include/grpc++/support/byte_buffer.h",
  1158. "include/grpc++/support/channel_arguments.h",
  1159. "include/grpc++/support/config.h",
  1160. "include/grpc++/support/slice.h",
  1161. "include/grpc++/support/status.h",
  1162. "include/grpc++/support/status_code_enum.h",
  1163. "include/grpc++/support/string_ref.h",
  1164. "include/grpc++/support/stub_options.h",
  1165. "include/grpc++/support/sync_stream.h",
  1166. "include/grpc++/support/time.h",
  1167. ],
  1168. deps = [
  1169. "grpc",
  1170. "grpc++_codegen_base",
  1171. ],
  1172. )
  1173. grpc_cc_library(
  1174. name = "grpc++_codegen_base",
  1175. language = "c++",
  1176. public_hdrs = [
  1177. "include/grpc++/impl/codegen/async_stream.h",
  1178. "include/grpc++/impl/codegen/async_unary_call.h",
  1179. "include/grpc++/impl/codegen/call.h",
  1180. "include/grpc++/impl/codegen/call_hook.h",
  1181. "include/grpc++/impl/codegen/channel_interface.h",
  1182. "include/grpc++/impl/codegen/client_context.h",
  1183. "include/grpc++/impl/codegen/client_unary_call.h",
  1184. "include/grpc++/impl/codegen/completion_queue.h",
  1185. "include/grpc++/impl/codegen/completion_queue_tag.h",
  1186. "include/grpc++/impl/codegen/config.h",
  1187. "include/grpc++/impl/codegen/core_codegen_interface.h",
  1188. "include/grpc++/impl/codegen/create_auth_context.h",
  1189. "include/grpc++/impl/codegen/grpc_library.h",
  1190. "include/grpc++/impl/codegen/metadata_map.h",
  1191. "include/grpc++/impl/codegen/method_handler_impl.h",
  1192. "include/grpc++/impl/codegen/rpc_method.h",
  1193. "include/grpc++/impl/codegen/rpc_service_method.h",
  1194. "include/grpc++/impl/codegen/security/auth_context.h",
  1195. "include/grpc++/impl/codegen/serialization_traits.h",
  1196. "include/grpc++/impl/codegen/server_context.h",
  1197. "include/grpc++/impl/codegen/server_interface.h",
  1198. "include/grpc++/impl/codegen/service_type.h",
  1199. "include/grpc++/impl/codegen/slice.h",
  1200. "include/grpc++/impl/codegen/status.h",
  1201. "include/grpc++/impl/codegen/status_code_enum.h",
  1202. "include/grpc++/impl/codegen/status_helper.h",
  1203. "include/grpc++/impl/codegen/string_ref.h",
  1204. "include/grpc++/impl/codegen/stub_options.h",
  1205. "include/grpc++/impl/codegen/sync_stream.h",
  1206. "include/grpc++/impl/codegen/time.h",
  1207. ],
  1208. deps = [
  1209. "grpc_codegen",
  1210. ],
  1211. )
  1212. grpc_cc_library(
  1213. name = "grpc++_codegen_base_src",
  1214. srcs = [
  1215. "src/cpp/codegen/codegen_init.cc",
  1216. ],
  1217. language = "c++",
  1218. deps = [
  1219. "grpc++_codegen_base",
  1220. ],
  1221. )
  1222. grpc_cc_library(
  1223. name = "grpc++_codegen_proto",
  1224. language = "c++",
  1225. public_hdrs = [
  1226. "include/grpc++/impl/codegen/proto_utils.h",
  1227. ],
  1228. deps = [
  1229. "grpc++_codegen_base",
  1230. "grpc++_config_proto",
  1231. ],
  1232. )
  1233. grpc_cc_library(
  1234. name = "grpc++_config_proto",
  1235. external_deps = [
  1236. "protobuf",
  1237. ],
  1238. language = "c++",
  1239. public_hdrs = [
  1240. "include/grpc++/impl/codegen/config_protobuf.h",
  1241. ],
  1242. )
  1243. grpc_cc_library(
  1244. name = "thrift_util",
  1245. language = "c++",
  1246. public_hdrs = [
  1247. "include/grpc++/impl/codegen/thrift_serializer.h",
  1248. "include/grpc++/impl/codegen/thrift_utils.h",
  1249. ],
  1250. deps = [
  1251. "grpc++_codegen_base",
  1252. ],
  1253. )
  1254. grpc_cc_library(
  1255. name = "grpc++_reflection",
  1256. srcs = [
  1257. "src/cpp/ext/proto_server_reflection.cc",
  1258. "src/cpp/ext/proto_server_reflection_plugin.cc",
  1259. ],
  1260. hdrs = [
  1261. "src/cpp/ext/proto_server_reflection.h",
  1262. ],
  1263. language = "c++",
  1264. public_hdrs = [
  1265. "include/grpc++/ext/proto_server_reflection_plugin.h",
  1266. ],
  1267. deps = [
  1268. ":grpc++",
  1269. "//src/proto/grpc/reflection/v1alpha:reflection_proto",
  1270. ],
  1271. )