BUILD 55 KB

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