BUILD 55 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633
  1. # gRPC Bazel BUILD file.
  2. #
  3. # Copyright 2016 gRPC authors.
  4. #
  5. # Licensed under the Apache License, Version 2.0 (the "License");
  6. # you may not use this file except in compliance with the License.
  7. # You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing, software
  12. # distributed under the License is distributed on an "AS IS" BASIS,
  13. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. # See the License for the specific language governing permissions and
  15. # limitations under the License.
  16. licenses(["notice"]) # Apache v2
  17. exports_files(["LICENSE"])
  18. package(
  19. default_visibility = ["//visibility:public"],
  20. features = [
  21. "-layering_check",
  22. "-parse_headers",
  23. ],
  24. )
  25. load(
  26. "//bazel:grpc_build_system.bzl",
  27. "grpc_cc_library",
  28. "grpc_proto_plugin",
  29. "grpc_generate_one_off_targets",
  30. )
  31. # This should be updated along with build.yaml
  32. g_stands_for = "generous"
  33. core_version = "5.0.0-dev"
  34. version = "1.8.0-dev"
  35. GPR_PUBLIC_HDRS = [
  36. "include/grpc/support/alloc.h",
  37. "include/grpc/support/atm.h",
  38. "include/grpc/support/atm_gcc_atomic.h",
  39. "include/grpc/support/atm_gcc_sync.h",
  40. "include/grpc/support/atm_windows.h",
  41. "include/grpc/support/avl.h",
  42. "include/grpc/support/cmdline.h",
  43. "include/grpc/support/cpu.h",
  44. "include/grpc/support/histogram.h",
  45. "include/grpc/support/host_port.h",
  46. "include/grpc/support/log.h",
  47. "include/grpc/support/log_windows.h",
  48. "include/grpc/support/port_platform.h",
  49. "include/grpc/support/string_util.h",
  50. "include/grpc/support/subprocess.h",
  51. "include/grpc/support/sync.h",
  52. "include/grpc/support/sync_custom.h",
  53. "include/grpc/support/sync_generic.h",
  54. "include/grpc/support/sync_posix.h",
  55. "include/grpc/support/sync_windows.h",
  56. "include/grpc/support/thd.h",
  57. "include/grpc/support/time.h",
  58. "include/grpc/support/tls.h",
  59. "include/grpc/support/tls_gcc.h",
  60. "include/grpc/support/tls_msvc.h",
  61. "include/grpc/support/tls_pthread.h",
  62. "include/grpc/support/useful.h",
  63. ]
  64. GRPC_PUBLIC_HDRS = [
  65. "include/grpc/byte_buffer.h",
  66. "include/grpc/byte_buffer_reader.h",
  67. "include/grpc/compression.h",
  68. "include/grpc/load_reporting.h",
  69. "include/grpc/grpc.h",
  70. "include/grpc/grpc_posix.h",
  71. "include/grpc/grpc_security_constants.h",
  72. "include/grpc/slice.h",
  73. "include/grpc/slice_buffer.h",
  74. "include/grpc/status.h",
  75. "include/grpc/support/workaround_list.h",
  76. ]
  77. GRPC_SECURE_PUBLIC_HDRS = [
  78. "include/grpc/grpc_security.h",
  79. ]
  80. # TODO(ctiller): layer grpc atop grpc_unsecure, layer grpc++ atop grpc++_unsecure
  81. GRPCXX_SRCS = [
  82. "src/cpp/client/channel_cc.cc",
  83. "src/cpp/client/client_context.cc",
  84. "src/cpp/client/create_channel.cc",
  85. "src/cpp/client/create_channel_internal.cc",
  86. "src/cpp/client/create_channel_posix.cc",
  87. "src/cpp/client/credentials_cc.cc",
  88. "src/cpp/client/generic_stub.cc",
  89. "src/cpp/common/channel_arguments.cc",
  90. "src/cpp/common/channel_filter.cc",
  91. "src/cpp/common/completion_queue_cc.cc",
  92. "src/cpp/common/core_codegen.cc",
  93. "src/cpp/common/resource_quota_cc.cc",
  94. "src/cpp/common/rpc_method.cc",
  95. "src/cpp/common/version_cc.cc",
  96. "src/cpp/server/async_generic_service.cc",
  97. "src/cpp/server/channel_argument_option.cc",
  98. "src/cpp/server/create_default_thread_pool.cc",
  99. "src/cpp/server/dynamic_thread_pool.cc",
  100. "src/cpp/server/health/default_health_check_service.cc",
  101. "src/cpp/server/health/health.pb.c",
  102. "src/cpp/server/health/health_check_service.cc",
  103. "src/cpp/server/health/health_check_service_server_builder_option.cc",
  104. "src/cpp/server/server_builder.cc",
  105. "src/cpp/server/server_cc.cc",
  106. "src/cpp/server/server_context.cc",
  107. "src/cpp/server/server_credentials.cc",
  108. "src/cpp/server/server_posix.cc",
  109. "src/cpp/thread_manager/thread_manager.cc",
  110. "src/cpp/util/byte_buffer_cc.cc",
  111. "src/cpp/util/slice_cc.cc",
  112. "src/cpp/util/status.cc",
  113. "src/cpp/util/string_ref.cc",
  114. "src/cpp/util/time_cc.cc",
  115. ]
  116. GRPCXX_HDRS = [
  117. "src/cpp/client/create_channel_internal.h",
  118. "src/cpp/common/channel_filter.h",
  119. "src/cpp/server/dynamic_thread_pool.h",
  120. "src/cpp/server/health/default_health_check_service.h",
  121. "src/cpp/server/health/health.pb.h",
  122. "src/cpp/server/thread_pool_interface.h",
  123. "src/cpp/thread_manager/thread_manager.h",
  124. ]
  125. GRPCXX_PUBLIC_HDRS = [
  126. "include/grpc++/alarm.h",
  127. "include/grpc++/channel.h",
  128. "include/grpc++/client_context.h",
  129. "include/grpc++/completion_queue.h",
  130. "include/grpc++/create_channel.h",
  131. "include/grpc++/create_channel_posix.h",
  132. "include/grpc++/ext/health_check_service_server_builder_option.h",
  133. "include/grpc++/generic/async_generic_service.h",
  134. "include/grpc++/generic/generic_stub.h",
  135. "include/grpc++/grpc++.h",
  136. "include/grpc++/health_check_service_interface.h",
  137. "include/grpc++/impl/call.h",
  138. "include/grpc++/impl/channel_argument_option.h",
  139. "include/grpc++/impl/client_unary_call.h",
  140. "include/grpc++/impl/codegen/core_codegen.h",
  141. "include/grpc++/impl/grpc_library.h",
  142. "include/grpc++/impl/method_handler_impl.h",
  143. "include/grpc++/impl/rpc_method.h",
  144. "include/grpc++/impl/rpc_service_method.h",
  145. "include/grpc++/impl/serialization_traits.h",
  146. "include/grpc++/impl/server_builder_option.h",
  147. "include/grpc++/impl/server_builder_plugin.h",
  148. "include/grpc++/impl/server_initializer.h",
  149. "include/grpc++/impl/service_type.h",
  150. "include/grpc++/impl/sync_cxx11.h",
  151. "include/grpc++/impl/sync_no_cxx11.h",
  152. "include/grpc++/resource_quota.h",
  153. "include/grpc++/security/auth_context.h",
  154. "include/grpc++/security/auth_metadata_processor.h",
  155. "include/grpc++/security/credentials.h",
  156. "include/grpc++/security/server_credentials.h",
  157. "include/grpc++/server.h",
  158. "include/grpc++/server_builder.h",
  159. "include/grpc++/server_context.h",
  160. "include/grpc++/server_posix.h",
  161. "include/grpc++/support/async_stream.h",
  162. "include/grpc++/support/async_unary_call.h",
  163. "include/grpc++/support/byte_buffer.h",
  164. "include/grpc++/support/channel_arguments.h",
  165. "include/grpc++/support/config.h",
  166. "include/grpc++/support/slice.h",
  167. "include/grpc++/support/status.h",
  168. "include/grpc++/support/status_code_enum.h",
  169. "include/grpc++/support/string_ref.h",
  170. "include/grpc++/support/stub_options.h",
  171. "include/grpc++/support/sync_stream.h",
  172. "include/grpc++/support/time.h",
  173. ]
  174. grpc_cc_library(
  175. name = "gpr",
  176. language = "c++",
  177. public_hdrs = GPR_PUBLIC_HDRS,
  178. standalone = True,
  179. deps = [
  180. "gpr_base",
  181. ],
  182. )
  183. grpc_cc_library(
  184. name = "grpc_unsecure",
  185. srcs = [
  186. "src/core/lib/surface/init.cc",
  187. "src/core/lib/surface/init_unsecure.cc",
  188. "src/core/plugin_registry/grpc_unsecure_plugin_registry.cc",
  189. ],
  190. language = "c++",
  191. public_hdrs = GRPC_PUBLIC_HDRS,
  192. standalone = True,
  193. deps = [
  194. "grpc_common",
  195. "grpc_lb_policy_grpclb",
  196. ],
  197. )
  198. grpc_cc_library(
  199. name = "grpc",
  200. srcs = [
  201. "src/core/lib/surface/init.cc",
  202. "src/core/plugin_registry/grpc_plugin_registry.cc",
  203. ],
  204. language = "c++",
  205. public_hdrs = GRPC_PUBLIC_HDRS + GRPC_SECURE_PUBLIC_HDRS,
  206. standalone = True,
  207. deps = [
  208. "grpc_common",
  209. "grpc_lb_policy_grpclb_secure",
  210. "grpc_secure",
  211. "grpc_transport_chttp2_client_secure",
  212. "grpc_transport_chttp2_server_secure",
  213. ],
  214. )
  215. grpc_cc_library(
  216. name = "grpc_cronet",
  217. srcs = [
  218. "src/core/lib/surface/init.cc",
  219. "src/core/plugin_registry/grpc_cronet_plugin_registry.cc",
  220. ],
  221. language = "c++",
  222. deps = [
  223. "grpc_base",
  224. "grpc_http_filters",
  225. "grpc_transport_chttp2_client_secure",
  226. "grpc_transport_cronet_client_secure",
  227. ],
  228. )
  229. grpc_cc_library(
  230. name = "grpc++",
  231. srcs = [
  232. "src/cpp/client/insecure_credentials.cc",
  233. "src/cpp/client/secure_credentials.cc",
  234. "src/cpp/common/auth_property_iterator.cc",
  235. "src/cpp/common/secure_auth_context.cc",
  236. "src/cpp/common/secure_channel_arguments.cc",
  237. "src/cpp/common/secure_create_auth_context.cc",
  238. "src/cpp/server/insecure_server_credentials.cc",
  239. "src/cpp/server/secure_server_credentials.cc",
  240. ],
  241. hdrs = [
  242. "src/cpp/client/secure_credentials.h",
  243. "src/cpp/common/secure_auth_context.h",
  244. "src/cpp/server/secure_server_credentials.h",
  245. ],
  246. language = "c++",
  247. public_hdrs = GRPCXX_PUBLIC_HDRS,
  248. standalone = True,
  249. deps = [
  250. "gpr",
  251. "grpc",
  252. "grpc++_base",
  253. "grpc++_codegen_base",
  254. "grpc++_codegen_base_src",
  255. "grpc++_codegen_proto",
  256. ],
  257. )
  258. grpc_cc_library(
  259. name = "grpc++_unsecure",
  260. srcs = [
  261. "src/cpp/client/insecure_credentials.cc",
  262. "src/cpp/common/insecure_create_auth_context.cc",
  263. "src/cpp/server/insecure_server_credentials.cc",
  264. ],
  265. language = "c++",
  266. standalone = True,
  267. deps = [
  268. "gpr",
  269. "grpc++_base_unsecure",
  270. "grpc++_codegen_base",
  271. "grpc++_codegen_base_src",
  272. "grpc++_codegen_proto",
  273. "grpc_unsecure",
  274. ],
  275. )
  276. grpc_cc_library(
  277. name = "grpc++_error_details",
  278. srcs = [
  279. "src/cpp/util/error_details.cc",
  280. ],
  281. hdrs = [
  282. "include/grpc++/support/error_details.h",
  283. ],
  284. language = "c++",
  285. standalone = True,
  286. deps = [
  287. "grpc++",
  288. "//src/proto/grpc/status:status_proto",
  289. ],
  290. )
  291. grpc_cc_library(
  292. name = "grpc_plugin_support",
  293. srcs = [
  294. "src/compiler/cpp_generator.cc",
  295. "src/compiler/csharp_generator.cc",
  296. "src/compiler/node_generator.cc",
  297. "src/compiler/objective_c_generator.cc",
  298. "src/compiler/php_generator.cc",
  299. "src/compiler/python_generator.cc",
  300. "src/compiler/ruby_generator.cc",
  301. ],
  302. hdrs = [
  303. "src/compiler/config.h",
  304. "src/compiler/cpp_generator.h",
  305. "src/compiler/cpp_generator_helpers.h",
  306. "src/compiler/csharp_generator.h",
  307. "src/compiler/csharp_generator_helpers.h",
  308. "src/compiler/generator_helpers.h",
  309. "src/compiler/node_generator.h",
  310. "src/compiler/node_generator_helpers.h",
  311. "src/compiler/objective_c_generator.h",
  312. "src/compiler/objective_c_generator_helpers.h",
  313. "src/compiler/php_generator.h",
  314. "src/compiler/php_generator_helpers.h",
  315. "src/compiler/protobuf_plugin.h",
  316. "src/compiler/python_generator.h",
  317. "src/compiler/python_generator_helpers.h",
  318. "src/compiler/python_private_generator.h",
  319. "src/compiler/ruby_generator.h",
  320. "src/compiler/ruby_generator_helpers-inl.h",
  321. "src/compiler/ruby_generator_map-inl.h",
  322. "src/compiler/ruby_generator_string-inl.h",
  323. "src/compiler/schema_interface.h",
  324. ],
  325. external_deps = [
  326. "protobuf_clib",
  327. ],
  328. language = "c++",
  329. deps = [
  330. "grpc++_config_proto",
  331. ],
  332. )
  333. grpc_proto_plugin(
  334. name = "grpc_cpp_plugin",
  335. srcs = ["src/compiler/cpp_plugin.cc"],
  336. deps = [":grpc_plugin_support"],
  337. )
  338. grpc_proto_plugin(
  339. name = "grpc_csharp_plugin",
  340. srcs = ["src/compiler/csharp_plugin.cc"],
  341. deps = [":grpc_plugin_support"],
  342. )
  343. grpc_proto_plugin(
  344. name = "grpc_node_plugin",
  345. srcs = ["src/compiler/node_plugin.cc"],
  346. deps = [":grpc_plugin_support"],
  347. )
  348. grpc_proto_plugin(
  349. name = "grpc_objective_c_plugin",
  350. srcs = ["src/compiler/objective_c_plugin.cc"],
  351. deps = [":grpc_plugin_support"],
  352. )
  353. grpc_proto_plugin(
  354. name = "grpc_php_plugin",
  355. srcs = ["src/compiler/php_plugin.cc"],
  356. deps = [":grpc_plugin_support"],
  357. )
  358. grpc_proto_plugin(
  359. name = "grpc_python_plugin",
  360. srcs = ["src/compiler/python_plugin.cc"],
  361. deps = [":grpc_plugin_support"],
  362. )
  363. grpc_proto_plugin(
  364. name = "grpc_ruby_plugin",
  365. srcs = ["src/compiler/ruby_plugin.cc"],
  366. deps = [":grpc_plugin_support"],
  367. )
  368. grpc_cc_library(
  369. name = "grpc_csharp_ext",
  370. srcs = [
  371. "src/csharp/ext/grpc_csharp_ext.c",
  372. ],
  373. language = "csharp",
  374. deps = [
  375. "gpr",
  376. "grpc",
  377. ],
  378. )
  379. grpc_cc_library(
  380. name = "census",
  381. srcs = [
  382. "src/core/ext/census/base_resources.cc",
  383. "src/core/ext/census/context.cc",
  384. "src/core/ext/census/gen/census.pb.c",
  385. "src/core/ext/census/gen/trace_context.pb.c",
  386. "src/core/ext/census/grpc_context.cc",
  387. "src/core/ext/census/grpc_filter.cc",
  388. "src/core/ext/census/grpc_plugin.cc",
  389. "src/core/ext/census/initialize.cc",
  390. "src/core/ext/census/intrusive_hash_map.cc",
  391. "src/core/ext/census/mlog.cc",
  392. "src/core/ext/census/operation.cc",
  393. "src/core/ext/census/placeholders.cc",
  394. "src/core/ext/census/resource.cc",
  395. "src/core/ext/census/trace_context.cc",
  396. "src/core/ext/census/tracing.cc",
  397. ],
  398. hdrs = [
  399. "src/core/ext/census/aggregation.h",
  400. "src/core/ext/census/base_resources.h",
  401. "src/core/ext/census/census_interface.h",
  402. "src/core/ext/census/census_rpc_stats.h",
  403. "src/core/ext/census/gen/census.pb.h",
  404. "src/core/ext/census/gen/trace_context.pb.h",
  405. "src/core/ext/census/grpc_filter.h",
  406. "src/core/ext/census/intrusive_hash_map.h",
  407. "src/core/ext/census/intrusive_hash_map_internal.h",
  408. "src/core/ext/census/mlog.h",
  409. "src/core/ext/census/resource.h",
  410. "src/core/ext/census/rpc_metric_id.h",
  411. "src/core/ext/census/trace_context.h",
  412. "src/core/ext/census/trace_label.h",
  413. "src/core/ext/census/trace_propagation.h",
  414. "src/core/ext/census/trace_status.h",
  415. "src/core/ext/census/trace_string.h",
  416. "src/core/ext/census/tracing.h",
  417. ],
  418. external_deps = [
  419. "nanopb",
  420. "libssl",
  421. ],
  422. language = "c++",
  423. public_hdrs = [
  424. "include/grpc/census.h",
  425. ],
  426. deps = [
  427. "grpc_base",
  428. ],
  429. )
  430. grpc_cc_library(
  431. name = "gpr_base",
  432. srcs = [
  433. "src/core/lib/profiling/basic_timers.cc",
  434. "src/core/lib/profiling/stap_timers.cc",
  435. "src/core/lib/support/alloc.cc",
  436. "src/core/lib/support/arena.cc",
  437. "src/core/lib/support/atm.cc",
  438. "src/core/lib/support/avl.cc",
  439. "src/core/lib/support/cmdline.cc",
  440. "src/core/lib/support/cpu_iphone.cc",
  441. "src/core/lib/support/cpu_linux.cc",
  442. "src/core/lib/support/cpu_posix.cc",
  443. "src/core/lib/support/cpu_windows.cc",
  444. "src/core/lib/support/env_linux.cc",
  445. "src/core/lib/support/env_posix.cc",
  446. "src/core/lib/support/env_windows.cc",
  447. "src/core/lib/support/histogram.cc",
  448. "src/core/lib/support/host_port.cc",
  449. "src/core/lib/support/log.cc",
  450. "src/core/lib/support/log_android.cc",
  451. "src/core/lib/support/log_linux.cc",
  452. "src/core/lib/support/log_posix.cc",
  453. "src/core/lib/support/log_windows.cc",
  454. "src/core/lib/support/mpscq.cc",
  455. "src/core/lib/support/murmur_hash.cc",
  456. "src/core/lib/support/stack_lockfree.cc",
  457. "src/core/lib/support/string.cc",
  458. "src/core/lib/support/string_posix.cc",
  459. "src/core/lib/support/string_util_windows.cc",
  460. "src/core/lib/support/string_windows.cc",
  461. "src/core/lib/support/subprocess_posix.cc",
  462. "src/core/lib/support/subprocess_windows.cc",
  463. "src/core/lib/support/sync.cc",
  464. "src/core/lib/support/sync_posix.cc",
  465. "src/core/lib/support/sync_windows.cc",
  466. "src/core/lib/support/thd.cc",
  467. "src/core/lib/support/thd_posix.cc",
  468. "src/core/lib/support/thd_windows.cc",
  469. "src/core/lib/support/time.cc",
  470. "src/core/lib/support/time_posix.cc",
  471. "src/core/lib/support/time_precise.cc",
  472. "src/core/lib/support/time_windows.cc",
  473. "src/core/lib/support/tls_pthread.cc",
  474. "src/core/lib/support/tmpfile_msys.cc",
  475. "src/core/lib/support/tmpfile_posix.cc",
  476. "src/core/lib/support/tmpfile_windows.cc",
  477. "src/core/lib/support/wrap_memcpy.cc",
  478. ],
  479. hdrs = [
  480. "src/core/lib/profiling/timers.h",
  481. "src/core/lib/support/arena.h",
  482. "src/core/lib/support/atomic.h",
  483. "src/core/lib/support/atomic_with_atm.h",
  484. "src/core/lib/support/atomic_with_std.h",
  485. "src/core/lib/support/env.h",
  486. "src/core/lib/support/memory.h",
  487. "src/core/lib/support/vector.h",
  488. "src/core/lib/support/manual_constructor.h",
  489. "src/core/lib/support/mpscq.h",
  490. "src/core/lib/support/murmur_hash.h",
  491. "src/core/lib/support/spinlock.h",
  492. "src/core/lib/support/stack_lockfree.h",
  493. "src/core/lib/support/string.h",
  494. "src/core/lib/support/string_windows.h",
  495. "src/core/lib/support/time_precise.h",
  496. "src/core/lib/support/tmpfile.h",
  497. ],
  498. language = "c++",
  499. public_hdrs = GPR_PUBLIC_HDRS,
  500. deps = [
  501. "gpr_codegen",
  502. "@com_google_absl//absl/container:inlined_vector"
  503. ],
  504. )
  505. grpc_cc_library(
  506. name = "gpr_codegen",
  507. language = "c++",
  508. public_hdrs = [
  509. "include/grpc/impl/codegen/atm.h",
  510. "include/grpc/impl/codegen/atm_gcc_atomic.h",
  511. "include/grpc/impl/codegen/atm_gcc_sync.h",
  512. "include/grpc/impl/codegen/atm_windows.h",
  513. "include/grpc/impl/codegen/gpr_slice.h",
  514. "include/grpc/impl/codegen/gpr_types.h",
  515. "include/grpc/impl/codegen/port_platform.h",
  516. "include/grpc/impl/codegen/sync.h",
  517. "include/grpc/impl/codegen/sync_custom.h",
  518. "include/grpc/impl/codegen/sync_generic.h",
  519. "include/grpc/impl/codegen/sync_posix.h",
  520. "include/grpc/impl/codegen/sync_windows.h",
  521. ],
  522. )
  523. grpc_cc_library(
  524. name = "grpc_trace",
  525. srcs = ["src/core/lib/debug/trace.cc"],
  526. hdrs = ["src/core/lib/debug/trace.h"],
  527. language = "c++",
  528. public_hdrs = GRPC_PUBLIC_HDRS,
  529. deps = [
  530. "grpc_codegen",
  531. ":gpr",
  532. ],
  533. )
  534. grpc_cc_library(
  535. name = "grpc_base_c",
  536. srcs = [
  537. "src/core/lib/backoff/backoff.cc",
  538. "src/core/lib/channel/channel_args.cc",
  539. "src/core/lib/channel/channel_stack.cc",
  540. "src/core/lib/channel/channel_stack_builder.cc",
  541. "src/core/lib/channel/connected_channel.cc",
  542. "src/core/lib/channel/handshaker.cc",
  543. "src/core/lib/channel/handshaker_factory.cc",
  544. "src/core/lib/channel/handshaker_registry.cc",
  545. "src/core/lib/compression/compression.cc",
  546. "src/core/lib/compression/message_compress.cc",
  547. "src/core/lib/compression/stream_compression.cc",
  548. "src/core/lib/compression/stream_compression_gzip.cc",
  549. "src/core/lib/compression/stream_compression_identity.cc",
  550. "src/core/lib/debug/stats.cc",
  551. "src/core/lib/debug/stats_data.cc",
  552. "src/core/lib/http/format_request.cc",
  553. "src/core/lib/http/httpcli.cc",
  554. "src/core/lib/http/parser.cc",
  555. "src/core/lib/iomgr/call_combiner.cc",
  556. "src/core/lib/iomgr/closure.cc",
  557. "src/core/lib/iomgr/combiner.cc",
  558. "src/core/lib/iomgr/endpoint.cc",
  559. "src/core/lib/iomgr/endpoint_pair_posix.cc",
  560. "src/core/lib/iomgr/endpoint_pair_uv.cc",
  561. "src/core/lib/iomgr/endpoint_pair_windows.cc",
  562. "src/core/lib/iomgr/error.cc",
  563. "src/core/lib/iomgr/ev_epoll1_linux.cc",
  564. "src/core/lib/iomgr/ev_epollex_linux.cc",
  565. "src/core/lib/iomgr/ev_epollsig_linux.cc",
  566. "src/core/lib/iomgr/ev_poll_posix.cc",
  567. "src/core/lib/iomgr/ev_posix.cc",
  568. "src/core/lib/iomgr/ev_windows.cc",
  569. "src/core/lib/iomgr/exec_ctx.cc",
  570. "src/core/lib/iomgr/executor.cc",
  571. "src/core/lib/iomgr/gethostname_fallback.cc",
  572. "src/core/lib/iomgr/gethostname_host_name_max.cc",
  573. "src/core/lib/iomgr/gethostname_sysconf.cc",
  574. "src/core/lib/iomgr/iocp_windows.cc",
  575. "src/core/lib/iomgr/iomgr.cc",
  576. "src/core/lib/iomgr/iomgr_posix.cc",
  577. "src/core/lib/iomgr/iomgr_uv.cc",
  578. "src/core/lib/iomgr/iomgr_windows.cc",
  579. "src/core/lib/iomgr/is_epollexclusive_available.cc",
  580. "src/core/lib/iomgr/load_file.cc",
  581. "src/core/lib/iomgr/lockfree_event.cc",
  582. "src/core/lib/iomgr/network_status_tracker.cc",
  583. "src/core/lib/iomgr/polling_entity.cc",
  584. "src/core/lib/iomgr/pollset_set_uv.cc",
  585. "src/core/lib/iomgr/pollset_set_windows.cc",
  586. "src/core/lib/iomgr/pollset_uv.cc",
  587. "src/core/lib/iomgr/pollset_windows.cc",
  588. "src/core/lib/iomgr/resolve_address_posix.cc",
  589. "src/core/lib/iomgr/resolve_address_uv.cc",
  590. "src/core/lib/iomgr/resolve_address_windows.cc",
  591. "src/core/lib/iomgr/resource_quota.cc",
  592. "src/core/lib/iomgr/sockaddr_utils.cc",
  593. "src/core/lib/iomgr/socket_factory_posix.cc",
  594. "src/core/lib/iomgr/socket_mutator.cc",
  595. "src/core/lib/iomgr/socket_utils_common_posix.cc",
  596. "src/core/lib/iomgr/socket_utils_linux.cc",
  597. "src/core/lib/iomgr/socket_utils_posix.cc",
  598. "src/core/lib/iomgr/socket_utils_uv.cc",
  599. "src/core/lib/iomgr/socket_utils_windows.cc",
  600. "src/core/lib/iomgr/socket_windows.cc",
  601. "src/core/lib/iomgr/tcp_client_posix.cc",
  602. "src/core/lib/iomgr/tcp_client_uv.cc",
  603. "src/core/lib/iomgr/tcp_client_windows.cc",
  604. "src/core/lib/iomgr/tcp_posix.cc",
  605. "src/core/lib/iomgr/tcp_server_posix.cc",
  606. "src/core/lib/iomgr/tcp_server_utils_posix_common.cc",
  607. "src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc",
  608. "src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc",
  609. "src/core/lib/iomgr/tcp_server_uv.cc",
  610. "src/core/lib/iomgr/tcp_server_windows.cc",
  611. "src/core/lib/iomgr/tcp_uv.cc",
  612. "src/core/lib/iomgr/tcp_windows.cc",
  613. "src/core/lib/iomgr/time_averaged_stats.cc",
  614. "src/core/lib/iomgr/timer_generic.cc",
  615. "src/core/lib/iomgr/timer_heap.cc",
  616. "src/core/lib/iomgr/timer_manager.cc",
  617. "src/core/lib/iomgr/timer_uv.cc",
  618. "src/core/lib/iomgr/udp_server.cc",
  619. "src/core/lib/iomgr/unix_sockets_posix.cc",
  620. "src/core/lib/iomgr/unix_sockets_posix_noop.cc",
  621. "src/core/lib/iomgr/wakeup_fd_cv.cc",
  622. "src/core/lib/iomgr/wakeup_fd_eventfd.cc",
  623. "src/core/lib/iomgr/wakeup_fd_nospecial.cc",
  624. "src/core/lib/iomgr/wakeup_fd_pipe.cc",
  625. "src/core/lib/iomgr/wakeup_fd_posix.cc",
  626. "src/core/lib/json/json.cc",
  627. "src/core/lib/json/json_reader.cc",
  628. "src/core/lib/json/json_string.cc",
  629. "src/core/lib/json/json_writer.cc",
  630. "src/core/lib/slice/b64.cc",
  631. "src/core/lib/slice/percent_encoding.cc",
  632. "src/core/lib/slice/slice.cc",
  633. "src/core/lib/slice/slice_buffer.cc",
  634. "src/core/lib/slice/slice_hash_table.cc",
  635. "src/core/lib/slice/slice_intern.cc",
  636. "src/core/lib/slice/slice_string_helpers.cc",
  637. "src/core/lib/surface/alarm.cc",
  638. "src/core/lib/surface/api_trace.cc",
  639. "src/core/lib/surface/byte_buffer.cc",
  640. "src/core/lib/surface/byte_buffer_reader.cc",
  641. "src/core/lib/surface/call.cc",
  642. "src/core/lib/surface/call_details.cc",
  643. "src/core/lib/surface/call_log_batch.cc",
  644. "src/core/lib/surface/channel.cc",
  645. "src/core/lib/surface/channel_init.cc",
  646. "src/core/lib/surface/channel_ping.cc",
  647. "src/core/lib/surface/channel_stack_type.cc",
  648. "src/core/lib/surface/completion_queue.cc",
  649. "src/core/lib/surface/completion_queue_factory.cc",
  650. "src/core/lib/surface/event_string.cc",
  651. "src/core/lib/surface/metadata_array.cc",
  652. "src/core/lib/surface/server.cc",
  653. "src/core/lib/surface/validate_metadata.cc",
  654. "src/core/lib/surface/version.cc",
  655. "src/core/lib/transport/bdp_estimator.cc",
  656. "src/core/lib/transport/byte_stream.cc",
  657. "src/core/lib/transport/connectivity_state.cc",
  658. "src/core/lib/transport/error_utils.cc",
  659. "src/core/lib/transport/metadata.cc",
  660. "src/core/lib/transport/metadata_batch.cc",
  661. "src/core/lib/transport/pid_controller.cc",
  662. "src/core/lib/transport/service_config.cc",
  663. "src/core/lib/transport/static_metadata.cc",
  664. "src/core/lib/transport/status_conversion.cc",
  665. "src/core/lib/transport/timeout_encoding.cc",
  666. "src/core/lib/transport/transport.cc",
  667. "src/core/lib/transport/transport_op_string.cc",
  668. ],
  669. hdrs = [
  670. "src/core/lib/channel/channel_args.h",
  671. "src/core/lib/channel/channel_stack.h",
  672. "src/core/lib/channel/channel_stack_builder.h",
  673. "src/core/lib/channel/connected_channel.h",
  674. "src/core/lib/channel/context.h",
  675. "src/core/lib/channel/handshaker.h",
  676. "src/core/lib/channel/handshaker_factory.h",
  677. "src/core/lib/channel/handshaker_registry.h",
  678. "src/core/lib/compression/algorithm_metadata.h",
  679. "src/core/lib/compression/message_compress.h",
  680. "src/core/lib/compression/stream_compression.h",
  681. "src/core/lib/compression/stream_compression_gzip.h",
  682. "src/core/lib/compression/stream_compression_identity.h",
  683. "src/core/lib/debug/stats.h",
  684. "src/core/lib/debug/stats_data.h",
  685. "src/core/lib/http/format_request.h",
  686. "src/core/lib/http/httpcli.h",
  687. "src/core/lib/http/parser.h",
  688. "src/core/lib/iomgr/call_combiner.h",
  689. "src/core/lib/iomgr/closure.h",
  690. "src/core/lib/iomgr/combiner.h",
  691. "src/core/lib/iomgr/endpoint.h",
  692. "src/core/lib/iomgr/endpoint_pair.h",
  693. "src/core/lib/iomgr/error.h",
  694. "src/core/lib/iomgr/error_internal.h",
  695. "src/core/lib/iomgr/ev_epoll1_linux.h",
  696. "src/core/lib/iomgr/ev_epollex_linux.h",
  697. "src/core/lib/iomgr/ev_epollsig_linux.h",
  698. "src/core/lib/iomgr/ev_poll_posix.h",
  699. "src/core/lib/iomgr/ev_posix.h",
  700. "src/core/lib/iomgr/exec_ctx.h",
  701. "src/core/lib/iomgr/executor.h",
  702. "src/core/lib/iomgr/gethostname.h",
  703. "src/core/lib/iomgr/iocp_windows.h",
  704. "src/core/lib/iomgr/iomgr.h",
  705. "src/core/lib/iomgr/iomgr_internal.h",
  706. "src/core/lib/iomgr/iomgr_posix.h",
  707. "src/core/lib/iomgr/iomgr_uv.h",
  708. "src/core/lib/iomgr/is_epollexclusive_available.h",
  709. "src/core/lib/iomgr/load_file.h",
  710. "src/core/lib/iomgr/lockfree_event.h",
  711. "src/core/lib/iomgr/nameser.h",
  712. "src/core/lib/iomgr/network_status_tracker.h",
  713. "src/core/lib/iomgr/polling_entity.h",
  714. "src/core/lib/iomgr/pollset.h",
  715. "src/core/lib/iomgr/pollset_set.h",
  716. "src/core/lib/iomgr/pollset_set_windows.h",
  717. "src/core/lib/iomgr/pollset_uv.h",
  718. "src/core/lib/iomgr/pollset_windows.h",
  719. "src/core/lib/iomgr/port.h",
  720. "src/core/lib/iomgr/resolve_address.h",
  721. "src/core/lib/iomgr/resource_quota.h",
  722. "src/core/lib/iomgr/sockaddr.h",
  723. "src/core/lib/iomgr/sockaddr_posix.h",
  724. "src/core/lib/iomgr/sockaddr_utils.h",
  725. "src/core/lib/iomgr/sockaddr_windows.h",
  726. "src/core/lib/iomgr/socket_factory_posix.h",
  727. "src/core/lib/iomgr/socket_mutator.h",
  728. "src/core/lib/iomgr/socket_utils.h",
  729. "src/core/lib/iomgr/socket_utils_posix.h",
  730. "src/core/lib/iomgr/socket_windows.h",
  731. "src/core/lib/iomgr/sys_epoll_wrapper.h",
  732. "src/core/lib/iomgr/block_annotate.h",
  733. "src/core/lib/iomgr/tcp_client.h",
  734. "src/core/lib/iomgr/tcp_client_posix.h",
  735. "src/core/lib/iomgr/tcp_posix.h",
  736. "src/core/lib/iomgr/tcp_server.h",
  737. "src/core/lib/iomgr/tcp_server_utils_posix.h",
  738. "src/core/lib/iomgr/tcp_uv.h",
  739. "src/core/lib/iomgr/tcp_windows.h",
  740. "src/core/lib/iomgr/time_averaged_stats.h",
  741. "src/core/lib/iomgr/timer.h",
  742. "src/core/lib/iomgr/timer_generic.h",
  743. "src/core/lib/iomgr/timer_heap.h",
  744. "src/core/lib/iomgr/timer_manager.h",
  745. "src/core/lib/iomgr/timer_uv.h",
  746. "src/core/lib/iomgr/udp_server.h",
  747. "src/core/lib/iomgr/unix_sockets_posix.h",
  748. "src/core/lib/iomgr/wakeup_fd_cv.h",
  749. "src/core/lib/iomgr/wakeup_fd_pipe.h",
  750. "src/core/lib/iomgr/wakeup_fd_posix.h",
  751. "src/core/lib/json/json.h",
  752. "src/core/lib/json/json_common.h",
  753. "src/core/lib/json/json_reader.h",
  754. "src/core/lib/json/json_writer.h",
  755. "src/core/lib/slice/b64.h",
  756. "src/core/lib/slice/percent_encoding.h",
  757. "src/core/lib/slice/slice_hash_table.h",
  758. "src/core/lib/slice/slice_internal.h",
  759. "src/core/lib/slice/slice_string_helpers.h",
  760. "src/core/lib/surface/alarm_internal.h",
  761. "src/core/lib/surface/api_trace.h",
  762. "src/core/lib/surface/call.h",
  763. "src/core/lib/surface/call_test_only.h",
  764. "src/core/lib/surface/channel.h",
  765. "src/core/lib/surface/channel_init.h",
  766. "src/core/lib/surface/channel_stack_type.h",
  767. "src/core/lib/surface/completion_queue.h",
  768. "src/core/lib/surface/completion_queue_factory.h",
  769. "src/core/lib/surface/event_string.h",
  770. "src/core/lib/surface/init.h",
  771. "src/core/lib/surface/lame_client.h",
  772. "src/core/lib/surface/server.h",
  773. "src/core/lib/surface/validate_metadata.h",
  774. "src/core/lib/transport/bdp_estimator.h",
  775. "src/core/lib/transport/byte_stream.h",
  776. "src/core/lib/transport/connectivity_state.h",
  777. "src/core/lib/transport/error_utils.h",
  778. "src/core/lib/transport/http2_errors.h",
  779. "src/core/lib/transport/metadata.h",
  780. "src/core/lib/transport/metadata_batch.h",
  781. "src/core/lib/transport/pid_controller.h",
  782. "src/core/lib/transport/service_config.h",
  783. "src/core/lib/transport/static_metadata.h",
  784. "src/core/lib/transport/status_conversion.h",
  785. "src/core/lib/transport/timeout_encoding.h",
  786. "src/core/lib/transport/transport.h",
  787. "src/core/lib/transport/transport_impl.h",
  788. "src/core/lib/backoff/backoff.h",
  789. ],
  790. external_deps = [
  791. "zlib",
  792. ],
  793. language = "c++",
  794. public_hdrs = GRPC_PUBLIC_HDRS,
  795. deps = [
  796. "gpr_base",
  797. "grpc_codegen",
  798. "grpc_trace",
  799. ],
  800. )
  801. grpc_cc_library(
  802. name = "grpc_base",
  803. srcs = [
  804. "src/core/lib/surface/lame_client.cc",
  805. ],
  806. language = "c++",
  807. deps = [
  808. "grpc_base_c",
  809. ],
  810. )
  811. grpc_cc_library(
  812. name = "grpc_common",
  813. language = "c++",
  814. deps = [
  815. "grpc_base",
  816. # standard plugins
  817. "census",
  818. "grpc_deadline_filter",
  819. "grpc_lb_policy_pick_first",
  820. "grpc_lb_policy_round_robin",
  821. "grpc_server_load_reporting",
  822. "grpc_max_age_filter",
  823. "grpc_message_size_filter",
  824. "grpc_resolver_dns_ares",
  825. "grpc_resolver_fake",
  826. "grpc_resolver_dns_native",
  827. "grpc_resolver_sockaddr",
  828. "grpc_transport_chttp2_client_insecure",
  829. "grpc_transport_chttp2_server_insecure",
  830. "grpc_transport_inproc",
  831. "grpc_workaround_cronet_compression_filter",
  832. "grpc_server_backward_compatibility",
  833. ],
  834. )
  835. grpc_cc_library(
  836. name = "grpc_client_channel",
  837. srcs = [
  838. "src/core/ext/filters/client_channel/backup_poller.cc",
  839. "src/core/ext/filters/client_channel/channel_connectivity.cc",
  840. "src/core/ext/filters/client_channel/client_channel.cc",
  841. "src/core/ext/filters/client_channel/client_channel_factory.cc",
  842. "src/core/ext/filters/client_channel/client_channel_plugin.cc",
  843. "src/core/ext/filters/client_channel/connector.cc",
  844. "src/core/ext/filters/client_channel/http_connect_handshaker.cc",
  845. "src/core/ext/filters/client_channel/http_proxy.cc",
  846. "src/core/ext/filters/client_channel/lb_policy.cc",
  847. "src/core/ext/filters/client_channel/lb_policy_factory.cc",
  848. "src/core/ext/filters/client_channel/lb_policy_registry.cc",
  849. "src/core/ext/filters/client_channel/parse_address.cc",
  850. "src/core/ext/filters/client_channel/proxy_mapper.cc",
  851. "src/core/ext/filters/client_channel/proxy_mapper_registry.cc",
  852. "src/core/ext/filters/client_channel/resolver.cc",
  853. "src/core/ext/filters/client_channel/resolver_factory.cc",
  854. "src/core/ext/filters/client_channel/resolver_registry.cc",
  855. "src/core/ext/filters/client_channel/retry_throttle.cc",
  856. "src/core/ext/filters/client_channel/subchannel.cc",
  857. "src/core/ext/filters/client_channel/subchannel_index.cc",
  858. "src/core/ext/filters/client_channel/uri_parser.cc",
  859. ],
  860. hdrs = [
  861. "src/core/ext/filters/client_channel/backup_poller.h",
  862. "src/core/ext/filters/client_channel/client_channel.h",
  863. "src/core/ext/filters/client_channel/client_channel_factory.h",
  864. "src/core/ext/filters/client_channel/connector.h",
  865. "src/core/ext/filters/client_channel/http_connect_handshaker.h",
  866. "src/core/ext/filters/client_channel/http_proxy.h",
  867. "src/core/ext/filters/client_channel/lb_policy.h",
  868. "src/core/ext/filters/client_channel/lb_policy_factory.h",
  869. "src/core/ext/filters/client_channel/lb_policy_registry.h",
  870. "src/core/ext/filters/client_channel/parse_address.h",
  871. "src/core/ext/filters/client_channel/proxy_mapper.h",
  872. "src/core/ext/filters/client_channel/proxy_mapper_registry.h",
  873. "src/core/ext/filters/client_channel/resolver.h",
  874. "src/core/ext/filters/client_channel/resolver_factory.h",
  875. "src/core/ext/filters/client_channel/resolver_registry.h",
  876. "src/core/ext/filters/client_channel/retry_throttle.h",
  877. "src/core/ext/filters/client_channel/subchannel.h",
  878. "src/core/ext/filters/client_channel/subchannel_index.h",
  879. "src/core/ext/filters/client_channel/uri_parser.h",
  880. ],
  881. language = "c++",
  882. deps = [
  883. "grpc_base",
  884. "grpc_deadline_filter",
  885. ],
  886. )
  887. grpc_cc_library(
  888. name = "grpc_max_age_filter",
  889. srcs = [
  890. "src/core/ext/filters/max_age/max_age_filter.cc",
  891. ],
  892. hdrs = [
  893. "src/core/ext/filters/max_age/max_age_filter.h",
  894. ],
  895. language = "c++",
  896. deps = [
  897. "grpc_base",
  898. ],
  899. )
  900. grpc_cc_library(
  901. name = "grpc_deadline_filter",
  902. srcs = [
  903. "src/core/ext/filters/deadline/deadline_filter.cc",
  904. ],
  905. hdrs = [
  906. "src/core/ext/filters/deadline/deadline_filter.h",
  907. ],
  908. language = "c++",
  909. deps = [
  910. "grpc_base",
  911. ],
  912. )
  913. grpc_cc_library(
  914. name = "grpc_message_size_filter",
  915. srcs = [
  916. "src/core/ext/filters/message_size/message_size_filter.cc",
  917. ],
  918. hdrs = [
  919. "src/core/ext/filters/message_size/message_size_filter.h",
  920. ],
  921. language = "c++",
  922. deps = [
  923. "grpc_base",
  924. ],
  925. )
  926. grpc_cc_library(
  927. name = "grpc_http_filters",
  928. srcs = [
  929. "src/core/ext/filters/http/client/http_client_filter.cc",
  930. "src/core/ext/filters/http/http_filters_plugin.cc",
  931. "src/core/ext/filters/http/message_compress/message_compress_filter.cc",
  932. "src/core/ext/filters/http/server/http_server_filter.cc",
  933. ],
  934. hdrs = [
  935. "src/core/ext/filters/http/client/http_client_filter.h",
  936. "src/core/ext/filters/http/message_compress/message_compress_filter.h",
  937. "src/core/ext/filters/http/server/http_server_filter.h",
  938. ],
  939. language = "c++",
  940. deps = [
  941. "grpc_base",
  942. ],
  943. )
  944. grpc_cc_library(
  945. name = "grpc_workaround_cronet_compression_filter",
  946. srcs = [
  947. "src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc",
  948. ],
  949. hdrs = [
  950. "src/core/ext/filters/workarounds/workaround_cronet_compression_filter.h",
  951. ],
  952. language = "c++",
  953. deps = [
  954. "grpc_base",
  955. "grpc_server_backward_compatibility",
  956. ],
  957. )
  958. grpc_cc_library(
  959. name = "grpc_codegen",
  960. language = "c++",
  961. public_hdrs = [
  962. "include/grpc/impl/codegen/byte_buffer.h",
  963. "include/grpc/impl/codegen/byte_buffer_reader.h",
  964. "include/grpc/impl/codegen/compression_types.h",
  965. "include/grpc/impl/codegen/connectivity_state.h",
  966. "include/grpc/impl/codegen/exec_ctx_fwd.h",
  967. "include/grpc/impl/codegen/grpc_types.h",
  968. "include/grpc/impl/codegen/propagation_bits.h",
  969. "include/grpc/impl/codegen/status.h",
  970. "include/grpc/impl/codegen/slice.h",
  971. ],
  972. deps = [
  973. "gpr_codegen",
  974. ],
  975. )
  976. grpc_cc_library(
  977. name = "grpc_lb_policy_grpclb",
  978. srcs = [
  979. "src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc",
  980. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc",
  981. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.cc",
  982. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc",
  983. "src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc",
  984. "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c",
  985. ],
  986. hdrs = [
  987. "src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h",
  988. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h",
  989. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h",
  990. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h",
  991. "src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h",
  992. "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h",
  993. ],
  994. external_deps = [
  995. "nanopb",
  996. ],
  997. language = "c++",
  998. deps = [
  999. "grpc_base",
  1000. "grpc_client_channel",
  1001. "grpc_resolver_fake",
  1002. ],
  1003. )
  1004. grpc_cc_library(
  1005. name = "grpc_lb_policy_grpclb_secure",
  1006. srcs = [
  1007. "src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc",
  1008. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc",
  1009. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc",
  1010. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc",
  1011. "src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc",
  1012. "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c",
  1013. ],
  1014. hdrs = [
  1015. "src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h",
  1016. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h",
  1017. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h",
  1018. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h",
  1019. "src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h",
  1020. "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h",
  1021. ],
  1022. external_deps = [
  1023. "nanopb",
  1024. ],
  1025. language = "c++",
  1026. deps = [
  1027. "grpc_base",
  1028. "grpc_client_channel",
  1029. "grpc_resolver_fake",
  1030. "grpc_secure",
  1031. ],
  1032. )
  1033. grpc_cc_library(
  1034. name = "grpc_lb_policy_pick_first",
  1035. srcs = [
  1036. "src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc",
  1037. ],
  1038. language = "c++",
  1039. deps = [
  1040. "grpc_base",
  1041. "grpc_client_channel",
  1042. ],
  1043. )
  1044. grpc_cc_library(
  1045. name = "grpc_lb_policy_round_robin",
  1046. srcs = [
  1047. "src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc",
  1048. ],
  1049. language = "c++",
  1050. deps = [
  1051. "grpc_base",
  1052. "grpc_client_channel",
  1053. ],
  1054. )
  1055. grpc_cc_library(
  1056. name = "grpc_server_load_reporting",
  1057. srcs = [
  1058. "src/core/ext/filters/load_reporting/server_load_reporting_filter.cc",
  1059. "src/core/ext/filters/load_reporting/server_load_reporting_plugin.cc",
  1060. ],
  1061. hdrs = [
  1062. "src/core/ext/filters/load_reporting/server_load_reporting_filter.h",
  1063. "src/core/ext/filters/load_reporting/server_load_reporting_plugin.h",
  1064. ],
  1065. language = "c++",
  1066. deps = [
  1067. "grpc_base",
  1068. ],
  1069. )
  1070. grpc_cc_library(
  1071. name = "grpc_resolver_dns_native",
  1072. srcs = [
  1073. "src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc",
  1074. ],
  1075. language = "c++",
  1076. deps = [
  1077. "grpc_base",
  1078. "grpc_client_channel",
  1079. ],
  1080. )
  1081. grpc_cc_library(
  1082. name = "grpc_resolver_dns_ares",
  1083. srcs = [
  1084. "src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc",
  1085. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc",
  1086. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc",
  1087. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_fallback.cc",
  1088. ],
  1089. hdrs = [
  1090. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h",
  1091. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h",
  1092. ],
  1093. external_deps = [
  1094. "cares",
  1095. ],
  1096. language = "c++",
  1097. deps = [
  1098. "grpc_base",
  1099. "grpc_client_channel",
  1100. ],
  1101. )
  1102. grpc_cc_library(
  1103. name = "grpc_resolver_sockaddr",
  1104. srcs = [
  1105. "src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc",
  1106. ],
  1107. language = "c++",
  1108. deps = [
  1109. "grpc_base",
  1110. "grpc_client_channel",
  1111. ],
  1112. )
  1113. grpc_cc_library(
  1114. name = "grpc_resolver_fake",
  1115. srcs = ["src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc"],
  1116. hdrs = ["src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h"],
  1117. language = "c++",
  1118. visibility = ["//test:__subpackages__"],
  1119. deps = [
  1120. "grpc_base",
  1121. "grpc_client_channel",
  1122. ],
  1123. )
  1124. grpc_cc_library(
  1125. name = "grpc_secure",
  1126. srcs = [
  1127. "src/core/lib/http/httpcli_security_connector.cc",
  1128. "src/core/lib/security/context/security_context.cc",
  1129. "src/core/lib/security/credentials/composite/composite_credentials.cc",
  1130. "src/core/lib/security/credentials/credentials.cc",
  1131. "src/core/lib/security/credentials/credentials_metadata.cc",
  1132. "src/core/lib/security/credentials/fake/fake_credentials.cc",
  1133. "src/core/lib/security/credentials/google_default/credentials_generic.cc",
  1134. "src/core/lib/security/credentials/google_default/google_default_credentials.cc",
  1135. "src/core/lib/security/credentials/iam/iam_credentials.cc",
  1136. "src/core/lib/security/credentials/jwt/json_token.cc",
  1137. "src/core/lib/security/credentials/jwt/jwt_credentials.cc",
  1138. "src/core/lib/security/credentials/jwt/jwt_verifier.cc",
  1139. "src/core/lib/security/credentials/oauth2/oauth2_credentials.cc",
  1140. "src/core/lib/security/credentials/plugin/plugin_credentials.cc",
  1141. "src/core/lib/security/credentials/ssl/ssl_credentials.cc",
  1142. "src/core/lib/security/transport/client_auth_filter.cc",
  1143. "src/core/lib/security/transport/lb_targets_info.cc",
  1144. "src/core/lib/security/transport/secure_endpoint.cc",
  1145. "src/core/lib/security/transport/security_connector.cc",
  1146. "src/core/lib/security/transport/security_handshaker.cc",
  1147. "src/core/lib/security/transport/server_auth_filter.cc",
  1148. "src/core/lib/security/transport/tsi_error.cc",
  1149. "src/core/lib/security/util/json_util.cc",
  1150. "src/core/lib/surface/init_secure.cc",
  1151. ],
  1152. hdrs = [
  1153. "src/core/lib/security/context/security_context.h",
  1154. "src/core/lib/security/credentials/composite/composite_credentials.h",
  1155. "src/core/lib/security/credentials/credentials.h",
  1156. "src/core/lib/security/credentials/fake/fake_credentials.h",
  1157. "src/core/lib/security/credentials/google_default/google_default_credentials.h",
  1158. "src/core/lib/security/credentials/iam/iam_credentials.h",
  1159. "src/core/lib/security/credentials/jwt/json_token.h",
  1160. "src/core/lib/security/credentials/jwt/jwt_credentials.h",
  1161. "src/core/lib/security/credentials/jwt/jwt_verifier.h",
  1162. "src/core/lib/security/credentials/oauth2/oauth2_credentials.h",
  1163. "src/core/lib/security/credentials/plugin/plugin_credentials.h",
  1164. "src/core/lib/security/credentials/ssl/ssl_credentials.h",
  1165. "src/core/lib/security/transport/auth_filters.h",
  1166. "src/core/lib/security/transport/lb_targets_info.h",
  1167. "src/core/lib/security/transport/secure_endpoint.h",
  1168. "src/core/lib/security/transport/security_connector.h",
  1169. "src/core/lib/security/transport/security_handshaker.h",
  1170. "src/core/lib/security/transport/tsi_error.h",
  1171. "src/core/lib/security/util/json_util.h",
  1172. ],
  1173. language = "c++",
  1174. public_hdrs = GRPC_SECURE_PUBLIC_HDRS,
  1175. deps = [
  1176. "grpc_base",
  1177. "grpc_transport_chttp2_alpn",
  1178. "tsi",
  1179. ],
  1180. )
  1181. grpc_cc_library(
  1182. name = "grpc_transport_chttp2",
  1183. srcs = [
  1184. "src/core/ext/transport/chttp2/transport/bin_decoder.cc",
  1185. "src/core/ext/transport/chttp2/transport/bin_encoder.cc",
  1186. "src/core/ext/transport/chttp2/transport/chttp2_plugin.cc",
  1187. "src/core/ext/transport/chttp2/transport/chttp2_transport.cc",
  1188. "src/core/ext/transport/chttp2/transport/flow_control.cc",
  1189. "src/core/ext/transport/chttp2/transport/frame_data.cc",
  1190. "src/core/ext/transport/chttp2/transport/frame_goaway.cc",
  1191. "src/core/ext/transport/chttp2/transport/frame_ping.cc",
  1192. "src/core/ext/transport/chttp2/transport/frame_rst_stream.cc",
  1193. "src/core/ext/transport/chttp2/transport/frame_settings.cc",
  1194. "src/core/ext/transport/chttp2/transport/frame_window_update.cc",
  1195. "src/core/ext/transport/chttp2/transport/hpack_encoder.cc",
  1196. "src/core/ext/transport/chttp2/transport/hpack_parser.cc",
  1197. "src/core/ext/transport/chttp2/transport/hpack_table.cc",
  1198. "src/core/ext/transport/chttp2/transport/http2_settings.cc",
  1199. "src/core/ext/transport/chttp2/transport/huffsyms.cc",
  1200. "src/core/ext/transport/chttp2/transport/incoming_metadata.cc",
  1201. "src/core/ext/transport/chttp2/transport/parsing.cc",
  1202. "src/core/ext/transport/chttp2/transport/stream_lists.cc",
  1203. "src/core/ext/transport/chttp2/transport/stream_map.cc",
  1204. "src/core/ext/transport/chttp2/transport/varint.cc",
  1205. "src/core/ext/transport/chttp2/transport/writing.cc",
  1206. ],
  1207. hdrs = [
  1208. "src/core/ext/transport/chttp2/transport/bin_decoder.h",
  1209. "src/core/ext/transport/chttp2/transport/bin_encoder.h",
  1210. "src/core/ext/transport/chttp2/transport/chttp2_transport.h",
  1211. "src/core/ext/transport/chttp2/transport/frame.h",
  1212. "src/core/ext/transport/chttp2/transport/flow_control.h",
  1213. "src/core/ext/transport/chttp2/transport/frame_data.h",
  1214. "src/core/ext/transport/chttp2/transport/frame_goaway.h",
  1215. "src/core/ext/transport/chttp2/transport/frame_ping.h",
  1216. "src/core/ext/transport/chttp2/transport/frame_rst_stream.h",
  1217. "src/core/ext/transport/chttp2/transport/frame_settings.h",
  1218. "src/core/ext/transport/chttp2/transport/frame_window_update.h",
  1219. "src/core/ext/transport/chttp2/transport/hpack_encoder.h",
  1220. "src/core/ext/transport/chttp2/transport/hpack_parser.h",
  1221. "src/core/ext/transport/chttp2/transport/hpack_table.h",
  1222. "src/core/ext/transport/chttp2/transport/http2_settings.h",
  1223. "src/core/ext/transport/chttp2/transport/huffsyms.h",
  1224. "src/core/ext/transport/chttp2/transport/incoming_metadata.h",
  1225. "src/core/ext/transport/chttp2/transport/internal.h",
  1226. "src/core/ext/transport/chttp2/transport/stream_map.h",
  1227. "src/core/ext/transport/chttp2/transport/varint.h",
  1228. ],
  1229. language = "c++",
  1230. deps = [
  1231. "grpc_base",
  1232. "grpc_http_filters",
  1233. "grpc_transport_chttp2_alpn",
  1234. ],
  1235. )
  1236. grpc_cc_library(
  1237. name = "grpc_transport_chttp2_alpn",
  1238. srcs = [
  1239. "src/core/ext/transport/chttp2/alpn/alpn.cc",
  1240. ],
  1241. hdrs = [
  1242. "src/core/ext/transport/chttp2/alpn/alpn.h",
  1243. ],
  1244. language = "c++",
  1245. deps = [
  1246. "gpr",
  1247. ],
  1248. )
  1249. grpc_cc_library(
  1250. name = "grpc_transport_chttp2_client_connector",
  1251. srcs = [
  1252. "src/core/ext/transport/chttp2/client/chttp2_connector.cc",
  1253. ],
  1254. hdrs = [
  1255. "src/core/ext/transport/chttp2/client/chttp2_connector.h",
  1256. ],
  1257. language = "c++",
  1258. deps = [
  1259. "grpc_base",
  1260. "grpc_client_channel",
  1261. "grpc_transport_chttp2",
  1262. ],
  1263. )
  1264. grpc_cc_library(
  1265. name = "grpc_transport_chttp2_client_insecure",
  1266. srcs = [
  1267. "src/core/ext/transport/chttp2/client/insecure/channel_create.cc",
  1268. "src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc",
  1269. ],
  1270. language = "c++",
  1271. deps = [
  1272. "grpc_base",
  1273. "grpc_client_channel",
  1274. "grpc_transport_chttp2",
  1275. "grpc_transport_chttp2_client_connector",
  1276. ],
  1277. )
  1278. grpc_cc_library(
  1279. name = "grpc_transport_chttp2_client_secure",
  1280. srcs = [
  1281. "src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc",
  1282. ],
  1283. language = "c++",
  1284. deps = [
  1285. "grpc_base",
  1286. "grpc_client_channel",
  1287. "grpc_secure",
  1288. "grpc_transport_chttp2",
  1289. "grpc_transport_chttp2_client_connector",
  1290. ],
  1291. )
  1292. grpc_cc_library(
  1293. name = "grpc_transport_chttp2_server",
  1294. srcs = [
  1295. "src/core/ext/transport/chttp2/server/chttp2_server.cc",
  1296. ],
  1297. hdrs = [
  1298. "src/core/ext/transport/chttp2/server/chttp2_server.h",
  1299. ],
  1300. language = "c++",
  1301. deps = [
  1302. "grpc_base",
  1303. "grpc_transport_chttp2",
  1304. ],
  1305. )
  1306. grpc_cc_library(
  1307. name = "grpc_transport_chttp2_server_insecure",
  1308. srcs = [
  1309. "src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc",
  1310. "src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc",
  1311. ],
  1312. language = "c++",
  1313. deps = [
  1314. "grpc_base",
  1315. "grpc_transport_chttp2",
  1316. "grpc_transport_chttp2_server",
  1317. ],
  1318. )
  1319. grpc_cc_library(
  1320. name = "grpc_transport_chttp2_server_secure",
  1321. srcs = [
  1322. "src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc",
  1323. ],
  1324. language = "c++",
  1325. deps = [
  1326. "grpc_base",
  1327. "grpc_secure",
  1328. "grpc_transport_chttp2",
  1329. "grpc_transport_chttp2_server",
  1330. ],
  1331. )
  1332. grpc_cc_library(
  1333. name = "grpc_transport_cronet_client_secure",
  1334. srcs = [
  1335. "src/core/ext/transport/cronet/client/secure/cronet_channel_create.cc",
  1336. "src/core/ext/transport/cronet/transport/cronet_api_dummy.cc",
  1337. "src/core/ext/transport/cronet/transport/cronet_transport.cc",
  1338. ],
  1339. hdrs = [
  1340. "src/core/ext/transport/cronet/transport/cronet_transport.h",
  1341. "third_party/objective_c/Cronet/bidirectional_stream_c.h",
  1342. ],
  1343. language = "c++",
  1344. public_hdrs = [
  1345. "include/grpc/grpc_cronet.h",
  1346. "include/grpc/grpc_security.h",
  1347. "include/grpc/grpc_security_constants.h",
  1348. ],
  1349. deps = [
  1350. "grpc_base",
  1351. "grpc_transport_chttp2",
  1352. ],
  1353. )
  1354. grpc_cc_library(
  1355. name = "grpc_transport_inproc",
  1356. srcs = [
  1357. "src/core/ext/transport/inproc/inproc_plugin.cc",
  1358. "src/core/ext/transport/inproc/inproc_transport.cc",
  1359. ],
  1360. hdrs = [
  1361. "src/core/ext/transport/inproc/inproc_transport.h",
  1362. ],
  1363. language = "c++",
  1364. deps = [
  1365. "grpc_base",
  1366. ],
  1367. )
  1368. grpc_cc_library(
  1369. name = "tsi_interface",
  1370. srcs = [
  1371. "src/core/tsi/transport_security.cc",
  1372. "src/core/tsi/transport_security_adapter.cc",
  1373. ],
  1374. hdrs = [
  1375. "src/core/tsi/transport_security.h",
  1376. "src/core/tsi/transport_security_adapter.h",
  1377. "src/core/tsi/transport_security_interface.h",
  1378. ],
  1379. language = "c++",
  1380. deps = [
  1381. "gpr",
  1382. "grpc_trace",
  1383. ],
  1384. )
  1385. grpc_cc_library(
  1386. name = "tsi",
  1387. srcs = [
  1388. "src/core/tsi/fake_transport_security.cc",
  1389. "src/core/tsi/gts_transport_security.cc",
  1390. "src/core/tsi/ssl_transport_security.cc",
  1391. "src/core/tsi/transport_security_grpc.cc",
  1392. ],
  1393. hdrs = [
  1394. "src/core/tsi/fake_transport_security.h",
  1395. "src/core/tsi/gts_transport_security.h",
  1396. "src/core/tsi/ssl_transport_security.h",
  1397. "src/core/tsi/ssl_types.h",
  1398. "src/core/tsi/transport_security_grpc.h",
  1399. ],
  1400. external_deps = [
  1401. "libssl",
  1402. ],
  1403. language = "c++",
  1404. deps = [
  1405. "grpc_base",
  1406. "tsi_interface",
  1407. ],
  1408. )
  1409. grpc_cc_library(
  1410. name = "grpc++_base",
  1411. srcs = GRPCXX_SRCS,
  1412. hdrs = GRPCXX_HDRS,
  1413. language = "c++",
  1414. public_hdrs = GRPCXX_PUBLIC_HDRS,
  1415. deps = [
  1416. "grpc",
  1417. "grpc++_codegen_base",
  1418. ],
  1419. )
  1420. grpc_cc_library(
  1421. name = "grpc++_base_unsecure",
  1422. srcs = GRPCXX_SRCS,
  1423. hdrs = GRPCXX_HDRS,
  1424. language = "c++",
  1425. public_hdrs = GRPCXX_PUBLIC_HDRS,
  1426. deps = [
  1427. "grpc++_codegen_base",
  1428. "grpc_unsecure",
  1429. ],
  1430. )
  1431. grpc_cc_library(
  1432. name = "grpc++_codegen_base",
  1433. language = "c++",
  1434. public_hdrs = [
  1435. "include/grpc++/impl/codegen/async_stream.h",
  1436. "include/grpc++/impl/codegen/async_unary_call.h",
  1437. "include/grpc++/impl/codegen/byte_buffer.h",
  1438. "include/grpc++/impl/codegen/call.h",
  1439. "include/grpc++/impl/codegen/call_hook.h",
  1440. "include/grpc++/impl/codegen/channel_interface.h",
  1441. "include/grpc++/impl/codegen/client_context.h",
  1442. "include/grpc++/impl/codegen/client_unary_call.h",
  1443. "include/grpc++/impl/codegen/completion_queue.h",
  1444. "include/grpc++/impl/codegen/completion_queue_tag.h",
  1445. "include/grpc++/impl/codegen/config.h",
  1446. "include/grpc++/impl/codegen/core_codegen_interface.h",
  1447. "include/grpc++/impl/codegen/create_auth_context.h",
  1448. "include/grpc++/impl/codegen/grpc_library.h",
  1449. "include/grpc++/impl/codegen/metadata_map.h",
  1450. "include/grpc++/impl/codegen/method_handler_impl.h",
  1451. "include/grpc++/impl/codegen/rpc_method.h",
  1452. "include/grpc++/impl/codegen/rpc_service_method.h",
  1453. "include/grpc++/impl/codegen/security/auth_context.h",
  1454. "include/grpc++/impl/codegen/serialization_traits.h",
  1455. "include/grpc++/impl/codegen/server_context.h",
  1456. "include/grpc++/impl/codegen/server_interface.h",
  1457. "include/grpc++/impl/codegen/service_type.h",
  1458. "include/grpc++/impl/codegen/slice.h",
  1459. "include/grpc++/impl/codegen/status.h",
  1460. "include/grpc++/impl/codegen/status_code_enum.h",
  1461. "include/grpc++/impl/codegen/string_ref.h",
  1462. "include/grpc++/impl/codegen/stub_options.h",
  1463. "include/grpc++/impl/codegen/sync_stream.h",
  1464. "include/grpc++/impl/codegen/time.h",
  1465. ],
  1466. deps = [
  1467. "grpc_codegen",
  1468. ],
  1469. )
  1470. grpc_cc_library(
  1471. name = "grpc++_codegen_base_src",
  1472. srcs = [
  1473. "src/cpp/codegen/codegen_init.cc",
  1474. ],
  1475. language = "c++",
  1476. deps = [
  1477. "grpc++_codegen_base",
  1478. ],
  1479. )
  1480. grpc_cc_library(
  1481. name = "grpc++_codegen_proto",
  1482. language = "c++",
  1483. public_hdrs = [
  1484. "include/grpc++/impl/codegen/proto_utils.h",
  1485. ],
  1486. deps = [
  1487. "grpc++_codegen_base",
  1488. "grpc++_config_proto",
  1489. ],
  1490. )
  1491. grpc_cc_library(
  1492. name = "grpc++_config_proto",
  1493. external_deps = [
  1494. "protobuf",
  1495. ],
  1496. language = "c++",
  1497. public_hdrs = [
  1498. "include/grpc++/impl/codegen/config_protobuf.h",
  1499. ],
  1500. )
  1501. grpc_cc_library(
  1502. name = "grpc++_reflection",
  1503. srcs = [
  1504. "src/cpp/ext/proto_server_reflection.cc",
  1505. "src/cpp/ext/proto_server_reflection_plugin.cc",
  1506. ],
  1507. hdrs = [
  1508. "src/cpp/ext/proto_server_reflection.h",
  1509. ],
  1510. language = "c++",
  1511. public_hdrs = [
  1512. "include/grpc++/ext/proto_server_reflection_plugin.h",
  1513. ],
  1514. deps = [
  1515. ":grpc++",
  1516. "//src/proto/grpc/reflection/v1alpha:reflection_proto",
  1517. ],
  1518. alwayslink = 1,
  1519. )
  1520. grpc_cc_library(
  1521. name = "grpc++_test",
  1522. public_hdrs = [
  1523. "include/grpc++/test/mock_stream.h",
  1524. "include/grpc++/test/server_context_test_spouse.h",
  1525. ],
  1526. deps = [
  1527. ":grpc++",
  1528. ],
  1529. )
  1530. grpc_cc_library(
  1531. name = "grpc_server_backward_compatibility",
  1532. srcs = [
  1533. "src/core/ext/filters/workarounds/workaround_utils.cc",
  1534. ],
  1535. hdrs = [
  1536. "src/core/ext/filters/workarounds/workaround_utils.h",
  1537. ],
  1538. language = "c++",
  1539. deps = [
  1540. "grpc_base",
  1541. ],
  1542. )
  1543. grpc_cc_library(
  1544. name = "grpc++_core_stats",
  1545. srcs = [
  1546. "src/cpp/util/core_stats.cc",
  1547. ],
  1548. hdrs = [
  1549. "src/cpp/util/core_stats.h",
  1550. ],
  1551. language = "c++",
  1552. deps = [
  1553. ":grpc++",
  1554. "//src/proto/grpc/core:stats_proto",
  1555. ],
  1556. )
  1557. grpc_generate_one_off_targets()