BUILD 77 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278
  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_generate_one_off_targets",
  29. "grpc_proto_plugin",
  30. )
  31. config_setting(
  32. name = "grpc_no_ares",
  33. values = {"define": "grpc_no_ares=true"},
  34. )
  35. config_setting(
  36. name = "grpc_allow_exceptions",
  37. values = {"define": "GRPC_ALLOW_EXCEPTIONS=1"},
  38. )
  39. config_setting(
  40. name = "grpc_disallow_exceptions",
  41. values = {"define": "GRPC_ALLOW_EXCEPTIONS=0"},
  42. )
  43. config_setting(
  44. name = "remote_execution",
  45. values = {"define": "GRPC_PORT_ISOLATED_RUNTIME=1"},
  46. )
  47. config_setting(
  48. name = "windows",
  49. values = {"cpu": "x64_windows"},
  50. )
  51. config_setting(
  52. name = "windows_msvc",
  53. values = {"cpu": "x64_windows_msvc"},
  54. )
  55. # This should be updated along with build.yaml
  56. g_stands_for = "goose"
  57. core_version = "7.0.0-dev"
  58. version = "1.18.0-dev"
  59. GPR_PUBLIC_HDRS = [
  60. "include/grpc/support/alloc.h",
  61. "include/grpc/support/atm.h",
  62. "include/grpc/support/atm_gcc_atomic.h",
  63. "include/grpc/support/atm_gcc_sync.h",
  64. "include/grpc/support/atm_windows.h",
  65. "include/grpc/support/cpu.h",
  66. "include/grpc/support/log.h",
  67. "include/grpc/support/log_windows.h",
  68. "include/grpc/support/port_platform.h",
  69. "include/grpc/support/string_util.h",
  70. "include/grpc/support/sync.h",
  71. "include/grpc/support/sync_custom.h",
  72. "include/grpc/support/sync_generic.h",
  73. "include/grpc/support/sync_posix.h",
  74. "include/grpc/support/sync_windows.h",
  75. "include/grpc/support/thd_id.h",
  76. "include/grpc/support/time.h",
  77. ]
  78. GRPC_PUBLIC_HDRS = [
  79. "include/grpc/byte_buffer.h",
  80. "include/grpc/byte_buffer_reader.h",
  81. "include/grpc/compression.h",
  82. "include/grpc/fork.h",
  83. "include/grpc/grpc.h",
  84. "include/grpc/grpc_posix.h",
  85. "include/grpc/grpc_security_constants.h",
  86. "include/grpc/slice.h",
  87. "include/grpc/slice_buffer.h",
  88. "include/grpc/status.h",
  89. "include/grpc/load_reporting.h",
  90. "include/grpc/support/workaround_list.h",
  91. ]
  92. GRPC_SECURE_PUBLIC_HDRS = [
  93. "include/grpc/grpc_security.h",
  94. ]
  95. # TODO(ctiller): layer grpc atop grpc_unsecure, layer grpc++ atop grpc++_unsecure
  96. GRPCXX_SRCS = [
  97. "src/cpp/client/channel_cc.cc",
  98. "src/cpp/client/client_context.cc",
  99. "src/cpp/client/client_interceptor.cc",
  100. "src/cpp/client/create_channel.cc",
  101. "src/cpp/client/create_channel_internal.cc",
  102. "src/cpp/client/create_channel_posix.cc",
  103. "src/cpp/client/credentials_cc.cc",
  104. "src/cpp/client/generic_stub.cc",
  105. "src/cpp/common/alarm.cc",
  106. "src/cpp/common/channel_arguments.cc",
  107. "src/cpp/common/channel_filter.cc",
  108. "src/cpp/common/completion_queue_cc.cc",
  109. "src/cpp/common/core_codegen.cc",
  110. "src/cpp/common/resource_quota_cc.cc",
  111. "src/cpp/common/rpc_method.cc",
  112. "src/cpp/common/version_cc.cc",
  113. "src/cpp/server/async_generic_service.cc",
  114. "src/cpp/server/channel_argument_option.cc",
  115. "src/cpp/server/create_default_thread_pool.cc",
  116. "src/cpp/server/dynamic_thread_pool.cc",
  117. "src/cpp/server/health/default_health_check_service.cc",
  118. "src/cpp/server/health/health_check_service.cc",
  119. "src/cpp/server/health/health_check_service_server_builder_option.cc",
  120. "src/cpp/server/server_builder.cc",
  121. "src/cpp/server/server_cc.cc",
  122. "src/cpp/server/server_context.cc",
  123. "src/cpp/server/server_credentials.cc",
  124. "src/cpp/server/server_posix.cc",
  125. "src/cpp/thread_manager/thread_manager.cc",
  126. "src/cpp/util/byte_buffer_cc.cc",
  127. "src/cpp/util/status.cc",
  128. "src/cpp/util/string_ref.cc",
  129. "src/cpp/util/time_cc.cc",
  130. ]
  131. GRPCXX_HDRS = [
  132. "src/cpp/client/create_channel_internal.h",
  133. "src/cpp/common/channel_filter.h",
  134. "src/cpp/server/dynamic_thread_pool.h",
  135. "src/cpp/server/health/default_health_check_service.h",
  136. "src/cpp/server/thread_pool_interface.h",
  137. "src/cpp/thread_manager/thread_manager.h",
  138. ]
  139. GRPCXX_PUBLIC_HDRS = [
  140. "include/grpc++/alarm.h",
  141. "include/grpc++/channel.h",
  142. "include/grpc++/client_context.h",
  143. "include/grpc++/completion_queue.h",
  144. "include/grpc++/create_channel.h",
  145. "include/grpc++/create_channel_posix.h",
  146. "include/grpc++/ext/health_check_service_server_builder_option.h",
  147. "include/grpc++/generic/async_generic_service.h",
  148. "include/grpc++/generic/generic_stub.h",
  149. "include/grpc++/grpc++.h",
  150. "include/grpc++/health_check_service_interface.h",
  151. "include/grpc++/impl/call.h",
  152. "include/grpc++/impl/channel_argument_option.h",
  153. "include/grpc++/impl/client_unary_call.h",
  154. "include/grpc++/impl/codegen/core_codegen.h",
  155. "include/grpc++/impl/grpc_library.h",
  156. "include/grpc++/impl/method_handler_impl.h",
  157. "include/grpc++/impl/rpc_method.h",
  158. "include/grpc++/impl/rpc_service_method.h",
  159. "include/grpc++/impl/serialization_traits.h",
  160. "include/grpc++/impl/server_builder_option.h",
  161. "include/grpc++/impl/server_builder_plugin.h",
  162. "include/grpc++/impl/server_initializer.h",
  163. "include/grpc++/impl/service_type.h",
  164. "include/grpc++/impl/sync_cxx11.h",
  165. "include/grpc++/impl/sync_no_cxx11.h",
  166. "include/grpc++/resource_quota.h",
  167. "include/grpc++/security/auth_context.h",
  168. "include/grpc++/security/auth_metadata_processor.h",
  169. "include/grpc++/security/credentials.h",
  170. "include/grpc++/security/server_credentials.h",
  171. "include/grpc++/server.h",
  172. "include/grpc++/server_builder.h",
  173. "include/grpc++/server_context.h",
  174. "include/grpc++/server_posix.h",
  175. "include/grpc++/support/async_stream.h",
  176. "include/grpc++/support/async_unary_call.h",
  177. "include/grpc++/support/byte_buffer.h",
  178. "include/grpc++/support/channel_arguments.h",
  179. "include/grpc++/support/config.h",
  180. "include/grpc++/support/slice.h",
  181. "include/grpc++/support/status.h",
  182. "include/grpc++/support/status_code_enum.h",
  183. "include/grpc++/support/string_ref.h",
  184. "include/grpc++/support/stub_options.h",
  185. "include/grpc++/support/sync_stream.h",
  186. "include/grpc++/support/time.h",
  187. "include/grpcpp/alarm.h",
  188. "include/grpcpp/alarm_impl.h",
  189. "include/grpcpp/channel.h",
  190. "include/grpcpp/client_context.h",
  191. "include/grpcpp/completion_queue.h",
  192. "include/grpcpp/create_channel.h",
  193. "include/grpcpp/create_channel_posix.h",
  194. "include/grpcpp/ext/health_check_service_server_builder_option.h",
  195. "include/grpcpp/generic/async_generic_service.h",
  196. "include/grpcpp/generic/generic_stub.h",
  197. "include/grpcpp/grpcpp.h",
  198. "include/grpcpp/health_check_service_interface.h",
  199. "include/grpcpp/impl/call.h",
  200. "include/grpcpp/impl/channel_argument_option.h",
  201. "include/grpcpp/impl/client_unary_call.h",
  202. "include/grpcpp/impl/codegen/core_codegen.h",
  203. "include/grpcpp/impl/grpc_library.h",
  204. "include/grpcpp/impl/method_handler_impl.h",
  205. "include/grpcpp/impl/rpc_method.h",
  206. "include/grpcpp/impl/rpc_service_method.h",
  207. "include/grpcpp/impl/serialization_traits.h",
  208. "include/grpcpp/impl/server_builder_option.h",
  209. "include/grpcpp/impl/server_builder_plugin.h",
  210. "include/grpcpp/impl/server_initializer.h",
  211. "include/grpcpp/impl/service_type.h",
  212. "include/grpcpp/impl/sync_cxx11.h",
  213. "include/grpcpp/impl/sync_no_cxx11.h",
  214. "include/grpcpp/resource_quota.h",
  215. "include/grpcpp/security/auth_context.h",
  216. "include/grpcpp/security/auth_metadata_processor.h",
  217. "include/grpcpp/security/credentials.h",
  218. "include/grpcpp/security/server_credentials.h",
  219. "include/grpcpp/server.h",
  220. "include/grpcpp/server_builder.h",
  221. "include/grpcpp/server_context.h",
  222. "include/grpcpp/server_posix.h",
  223. "include/grpcpp/support/async_stream.h",
  224. "include/grpcpp/support/async_unary_call.h",
  225. "include/grpcpp/support/byte_buffer.h",
  226. "include/grpcpp/support/channel_arguments.h",
  227. "include/grpcpp/support/client_callback.h",
  228. "include/grpcpp/support/config.h",
  229. "include/grpcpp/support/proto_buffer_reader.h",
  230. "include/grpcpp/support/proto_buffer_writer.h",
  231. "include/grpcpp/support/server_callback.h",
  232. "include/grpcpp/support/slice.h",
  233. "include/grpcpp/support/status.h",
  234. "include/grpcpp/support/status_code_enum.h",
  235. "include/grpcpp/support/string_ref.h",
  236. "include/grpcpp/support/stub_options.h",
  237. "include/grpcpp/support/sync_stream.h",
  238. "include/grpcpp/support/time.h",
  239. ]
  240. grpc_cc_library(
  241. name = "gpr",
  242. language = "c++",
  243. public_hdrs = GPR_PUBLIC_HDRS,
  244. standalone = True,
  245. deps = [
  246. "gpr_base",
  247. ],
  248. )
  249. grpc_cc_library(
  250. name = "grpc_unsecure",
  251. srcs = [
  252. "src/core/lib/surface/init.cc",
  253. "src/core/lib/surface/init_unsecure.cc",
  254. "src/core/plugin_registry/grpc_unsecure_plugin_registry.cc",
  255. ],
  256. language = "c++",
  257. public_hdrs = GRPC_PUBLIC_HDRS,
  258. standalone = True,
  259. deps = [
  260. "grpc_common",
  261. "grpc_lb_policy_grpclb",
  262. "grpc_lb_policy_xds",
  263. ],
  264. )
  265. grpc_cc_library(
  266. name = "grpc",
  267. srcs = [
  268. "src/core/lib/surface/init.cc",
  269. "src/core/plugin_registry/grpc_plugin_registry.cc",
  270. ],
  271. language = "c++",
  272. public_hdrs = GRPC_PUBLIC_HDRS + GRPC_SECURE_PUBLIC_HDRS,
  273. standalone = True,
  274. deps = [
  275. "grpc_common",
  276. "grpc_lb_policy_grpclb_secure",
  277. "grpc_lb_policy_xds_secure",
  278. "grpc_secure",
  279. "grpc_transport_chttp2_client_secure",
  280. "grpc_transport_chttp2_server_secure",
  281. ],
  282. )
  283. grpc_cc_library(
  284. name = "grpc_cronet",
  285. srcs = [
  286. "src/core/lib/surface/init.cc",
  287. "src/core/plugin_registry/grpc_cronet_plugin_registry.cc",
  288. ],
  289. language = "c++",
  290. deps = [
  291. "grpc_base",
  292. "grpc_http_filters",
  293. "grpc_transport_chttp2_client_secure",
  294. "grpc_transport_cronet_client_secure",
  295. ],
  296. )
  297. grpc_cc_library(
  298. name = "grpc++_public_hdrs",
  299. hdrs = GRPCXX_PUBLIC_HDRS,
  300. )
  301. grpc_cc_library(
  302. name = "grpc++",
  303. srcs = [
  304. "src/cpp/client/insecure_credentials.cc",
  305. "src/cpp/client/secure_credentials.cc",
  306. "src/cpp/common/auth_property_iterator.cc",
  307. "src/cpp/common/secure_auth_context.cc",
  308. "src/cpp/common/secure_channel_arguments.cc",
  309. "src/cpp/common/secure_create_auth_context.cc",
  310. "src/cpp/server/insecure_server_credentials.cc",
  311. "src/cpp/server/secure_server_credentials.cc",
  312. ],
  313. hdrs = [
  314. "src/cpp/client/secure_credentials.h",
  315. "src/cpp/common/secure_auth_context.h",
  316. "src/cpp/server/secure_server_credentials.h",
  317. ],
  318. language = "c++",
  319. public_hdrs = GRPCXX_PUBLIC_HDRS,
  320. standalone = True,
  321. deps = [
  322. "gpr",
  323. "grpc",
  324. "grpc++_base",
  325. "grpc++_codegen_base",
  326. "grpc++_codegen_base_src",
  327. "grpc++_codegen_proto",
  328. ],
  329. )
  330. grpc_cc_library(
  331. name = "grpc++_unsecure",
  332. srcs = [
  333. "src/cpp/client/insecure_credentials.cc",
  334. "src/cpp/common/insecure_create_auth_context.cc",
  335. "src/cpp/server/insecure_server_credentials.cc",
  336. ],
  337. language = "c++",
  338. standalone = True,
  339. deps = [
  340. "gpr",
  341. "grpc++_base_unsecure",
  342. "grpc++_codegen_base",
  343. "grpc++_codegen_base_src",
  344. "grpc++_codegen_proto",
  345. "grpc_unsecure",
  346. ],
  347. )
  348. grpc_cc_library(
  349. name = "grpc++_error_details",
  350. srcs = [
  351. "src/cpp/util/error_details.cc",
  352. ],
  353. hdrs = [
  354. "include/grpc++/support/error_details.h",
  355. "include/grpcpp/support/error_details.h",
  356. ],
  357. language = "c++",
  358. standalone = True,
  359. deps = [
  360. "grpc++",
  361. "//src/proto/grpc/status:status_proto",
  362. ],
  363. )
  364. grpc_cc_library(
  365. name = "grpc_plugin_support",
  366. srcs = [
  367. "src/compiler/cpp_generator.cc",
  368. "src/compiler/csharp_generator.cc",
  369. "src/compiler/node_generator.cc",
  370. "src/compiler/objective_c_generator.cc",
  371. "src/compiler/php_generator.cc",
  372. "src/compiler/python_generator.cc",
  373. "src/compiler/ruby_generator.cc",
  374. ],
  375. hdrs = [
  376. "src/compiler/config.h",
  377. "src/compiler/cpp_generator.h",
  378. "src/compiler/cpp_generator_helpers.h",
  379. "src/compiler/csharp_generator.h",
  380. "src/compiler/csharp_generator_helpers.h",
  381. "src/compiler/generator_helpers.h",
  382. "src/compiler/node_generator.h",
  383. "src/compiler/node_generator_helpers.h",
  384. "src/compiler/objective_c_generator.h",
  385. "src/compiler/objective_c_generator_helpers.h",
  386. "src/compiler/php_generator.h",
  387. "src/compiler/php_generator_helpers.h",
  388. "src/compiler/protobuf_plugin.h",
  389. "src/compiler/python_generator.h",
  390. "src/compiler/python_generator_helpers.h",
  391. "src/compiler/python_private_generator.h",
  392. "src/compiler/ruby_generator.h",
  393. "src/compiler/ruby_generator_helpers-inl.h",
  394. "src/compiler/ruby_generator_map-inl.h",
  395. "src/compiler/ruby_generator_string-inl.h",
  396. "src/compiler/schema_interface.h",
  397. ],
  398. external_deps = [
  399. "protobuf_clib",
  400. ],
  401. language = "c++",
  402. deps = [
  403. "grpc++_config_proto",
  404. ],
  405. )
  406. grpc_proto_plugin(
  407. name = "grpc_cpp_plugin",
  408. srcs = ["src/compiler/cpp_plugin.cc"],
  409. deps = [":grpc_plugin_support"],
  410. )
  411. grpc_proto_plugin(
  412. name = "grpc_csharp_plugin",
  413. srcs = ["src/compiler/csharp_plugin.cc"],
  414. deps = [":grpc_plugin_support"],
  415. )
  416. grpc_proto_plugin(
  417. name = "grpc_node_plugin",
  418. srcs = ["src/compiler/node_plugin.cc"],
  419. deps = [":grpc_plugin_support"],
  420. )
  421. grpc_proto_plugin(
  422. name = "grpc_objective_c_plugin",
  423. srcs = ["src/compiler/objective_c_plugin.cc"],
  424. deps = [":grpc_plugin_support"],
  425. )
  426. grpc_proto_plugin(
  427. name = "grpc_php_plugin",
  428. srcs = ["src/compiler/php_plugin.cc"],
  429. deps = [":grpc_plugin_support"],
  430. )
  431. grpc_proto_plugin(
  432. name = "grpc_python_plugin",
  433. srcs = ["src/compiler/python_plugin.cc"],
  434. deps = [":grpc_plugin_support"],
  435. )
  436. grpc_proto_plugin(
  437. name = "grpc_ruby_plugin",
  438. srcs = ["src/compiler/ruby_plugin.cc"],
  439. deps = [":grpc_plugin_support"],
  440. )
  441. grpc_cc_library(
  442. name = "grpc_csharp_ext",
  443. srcs = [
  444. "src/csharp/ext/grpc_csharp_ext.c",
  445. ],
  446. language = "csharp",
  447. deps = [
  448. "gpr",
  449. "grpc",
  450. ],
  451. )
  452. grpc_cc_library(
  453. name = "census",
  454. srcs = [
  455. "src/core/ext/filters/census/grpc_context.cc",
  456. ],
  457. language = "c++",
  458. public_hdrs = [
  459. "include/grpc/census.h",
  460. ],
  461. deps = [
  462. "grpc_base",
  463. ],
  464. )
  465. grpc_cc_library(
  466. name = "gpr_base",
  467. srcs = [
  468. "src/core/lib/gpr/alloc.cc",
  469. "src/core/lib/gpr/arena.cc",
  470. "src/core/lib/gpr/atm.cc",
  471. "src/core/lib/gpr/cpu_iphone.cc",
  472. "src/core/lib/gpr/cpu_linux.cc",
  473. "src/core/lib/gpr/cpu_posix.cc",
  474. "src/core/lib/gpr/cpu_windows.cc",
  475. "src/core/lib/gpr/env_linux.cc",
  476. "src/core/lib/gpr/env_posix.cc",
  477. "src/core/lib/gpr/env_windows.cc",
  478. "src/core/lib/gpr/host_port.cc",
  479. "src/core/lib/gpr/log.cc",
  480. "src/core/lib/gpr/log_android.cc",
  481. "src/core/lib/gpr/log_linux.cc",
  482. "src/core/lib/gpr/log_posix.cc",
  483. "src/core/lib/gpr/log_windows.cc",
  484. "src/core/lib/gpr/mpscq.cc",
  485. "src/core/lib/gpr/murmur_hash.cc",
  486. "src/core/lib/gpr/string.cc",
  487. "src/core/lib/gpr/string_posix.cc",
  488. "src/core/lib/gpr/string_util_windows.cc",
  489. "src/core/lib/gpr/string_windows.cc",
  490. "src/core/lib/gpr/sync.cc",
  491. "src/core/lib/gpr/sync_posix.cc",
  492. "src/core/lib/gpr/sync_windows.cc",
  493. "src/core/lib/gpr/time.cc",
  494. "src/core/lib/gpr/time_posix.cc",
  495. "src/core/lib/gpr/time_precise.cc",
  496. "src/core/lib/gpr/time_windows.cc",
  497. "src/core/lib/gpr/tls_pthread.cc",
  498. "src/core/lib/gpr/tmpfile_msys.cc",
  499. "src/core/lib/gpr/tmpfile_posix.cc",
  500. "src/core/lib/gpr/tmpfile_windows.cc",
  501. "src/core/lib/gpr/wrap_memcpy.cc",
  502. "src/core/lib/gprpp/fork.cc",
  503. "src/core/lib/gprpp/thd_posix.cc",
  504. "src/core/lib/gprpp/thd_windows.cc",
  505. "src/core/lib/profiling/basic_timers.cc",
  506. "src/core/lib/profiling/stap_timers.cc",
  507. ],
  508. hdrs = [
  509. "src/core/lib/gpr/alloc.h",
  510. "src/core/lib/gpr/arena.h",
  511. "src/core/lib/gpr/env.h",
  512. "src/core/lib/gpr/host_port.h",
  513. "src/core/lib/gpr/mpscq.h",
  514. "src/core/lib/gpr/murmur_hash.h",
  515. "src/core/lib/gpr/spinlock.h",
  516. "src/core/lib/gpr/string.h",
  517. "src/core/lib/gpr/string_windows.h",
  518. "src/core/lib/gpr/time_precise.h",
  519. "src/core/lib/gpr/tls.h",
  520. "src/core/lib/gpr/tls_gcc.h",
  521. "src/core/lib/gpr/tls_msvc.h",
  522. "src/core/lib/gpr/tls_pthread.h",
  523. "src/core/lib/gpr/tmpfile.h",
  524. "src/core/lib/gpr/useful.h",
  525. "src/core/lib/gprpp/abstract.h",
  526. "src/core/lib/gprpp/fork.h",
  527. "src/core/lib/gprpp/manual_constructor.h",
  528. "src/core/lib/gprpp/memory.h",
  529. "src/core/lib/gprpp/mutex_lock.h",
  530. "src/core/lib/gprpp/thd.h",
  531. "src/core/lib/profiling/timers.h",
  532. ],
  533. language = "c++",
  534. public_hdrs = GPR_PUBLIC_HDRS,
  535. deps = [
  536. "gpr_codegen",
  537. ],
  538. )
  539. grpc_cc_library(
  540. name = "gpr_codegen",
  541. language = "c++",
  542. public_hdrs = [
  543. "include/grpc/impl/codegen/atm.h",
  544. "include/grpc/impl/codegen/atm_gcc_atomic.h",
  545. "include/grpc/impl/codegen/atm_gcc_sync.h",
  546. "include/grpc/impl/codegen/atm_windows.h",
  547. "include/grpc/impl/codegen/fork.h",
  548. "include/grpc/impl/codegen/gpr_slice.h",
  549. "include/grpc/impl/codegen/gpr_types.h",
  550. "include/grpc/impl/codegen/log.h",
  551. "include/grpc/impl/codegen/port_platform.h",
  552. "include/grpc/impl/codegen/sync.h",
  553. "include/grpc/impl/codegen/sync_custom.h",
  554. "include/grpc/impl/codegen/sync_generic.h",
  555. "include/grpc/impl/codegen/sync_posix.h",
  556. "include/grpc/impl/codegen/sync_windows.h",
  557. ],
  558. )
  559. grpc_cc_library(
  560. name = "grpc_trace",
  561. srcs = ["src/core/lib/debug/trace.cc"],
  562. hdrs = ["src/core/lib/debug/trace.h"],
  563. language = "c++",
  564. public_hdrs = GRPC_PUBLIC_HDRS,
  565. deps = [
  566. "grpc_codegen",
  567. ":gpr",
  568. ],
  569. )
  570. grpc_cc_library(
  571. name = "atomic",
  572. hdrs = [
  573. "src/core/lib/gprpp/atomic_with_atm.h",
  574. "src/core/lib/gprpp/atomic_with_std.h",
  575. ],
  576. language = "c++",
  577. public_hdrs = [
  578. "src/core/lib/gprpp/atomic.h",
  579. ],
  580. deps = [
  581. "gpr",
  582. ],
  583. )
  584. grpc_cc_library(
  585. name = "inlined_vector",
  586. language = "c++",
  587. public_hdrs = [
  588. "src/core/lib/gprpp/inlined_vector.h",
  589. ],
  590. deps = [
  591. "gpr_base",
  592. ],
  593. )
  594. grpc_cc_library(
  595. name = "debug_location",
  596. language = "c++",
  597. public_hdrs = ["src/core/lib/gprpp/debug_location.h"],
  598. )
  599. grpc_cc_library(
  600. name = "orphanable",
  601. language = "c++",
  602. public_hdrs = ["src/core/lib/gprpp/orphanable.h"],
  603. deps = [
  604. "debug_location",
  605. "gpr_base",
  606. "grpc_trace",
  607. "ref_counted",
  608. "ref_counted_ptr",
  609. ],
  610. )
  611. grpc_cc_library(
  612. name = "ref_counted",
  613. language = "c++",
  614. public_hdrs = ["src/core/lib/gprpp/ref_counted.h"],
  615. deps = [
  616. "debug_location",
  617. "gpr_base",
  618. "grpc_trace",
  619. "ref_counted_ptr",
  620. ],
  621. )
  622. grpc_cc_library(
  623. name = "ref_counted_ptr",
  624. language = "c++",
  625. public_hdrs = ["src/core/lib/gprpp/ref_counted_ptr.h"],
  626. deps = [
  627. "gpr_base",
  628. ],
  629. )
  630. grpc_cc_library(
  631. name = "grpc_base_c",
  632. srcs = [
  633. "src/core/lib/avl/avl.cc",
  634. "src/core/lib/backoff/backoff.cc",
  635. "src/core/lib/channel/channel_args.cc",
  636. "src/core/lib/channel/channel_stack.cc",
  637. "src/core/lib/channel/channel_stack_builder.cc",
  638. "src/core/lib/channel/channel_trace.cc",
  639. "src/core/lib/channel/channelz.cc",
  640. "src/core/lib/channel/channelz_registry.cc",
  641. "src/core/lib/channel/connected_channel.cc",
  642. "src/core/lib/channel/handshaker.cc",
  643. "src/core/lib/channel/handshaker_factory.cc",
  644. "src/core/lib/channel/handshaker_registry.cc",
  645. "src/core/lib/channel/status_util.cc",
  646. "src/core/lib/compression/compression.cc",
  647. "src/core/lib/compression/compression_internal.cc",
  648. "src/core/lib/compression/message_compress.cc",
  649. "src/core/lib/compression/stream_compression.cc",
  650. "src/core/lib/compression/stream_compression_gzip.cc",
  651. "src/core/lib/compression/stream_compression_identity.cc",
  652. "src/core/lib/debug/stats.cc",
  653. "src/core/lib/debug/stats_data.cc",
  654. "src/core/lib/http/format_request.cc",
  655. "src/core/lib/http/httpcli.cc",
  656. "src/core/lib/http/parser.cc",
  657. "src/core/lib/iomgr/buffer_list.cc",
  658. "src/core/lib/iomgr/call_combiner.cc",
  659. "src/core/lib/iomgr/combiner.cc",
  660. "src/core/lib/iomgr/endpoint.cc",
  661. "src/core/lib/iomgr/endpoint_pair_posix.cc",
  662. "src/core/lib/iomgr/endpoint_pair_uv.cc",
  663. "src/core/lib/iomgr/endpoint_pair_windows.cc",
  664. "src/core/lib/iomgr/error.cc",
  665. "src/core/lib/iomgr/ev_epoll1_linux.cc",
  666. "src/core/lib/iomgr/ev_epollex_linux.cc",
  667. "src/core/lib/iomgr/ev_poll_posix.cc",
  668. "src/core/lib/iomgr/ev_posix.cc",
  669. "src/core/lib/iomgr/ev_windows.cc",
  670. "src/core/lib/iomgr/exec_ctx.cc",
  671. "src/core/lib/iomgr/executor.cc",
  672. "src/core/lib/iomgr/fork_posix.cc",
  673. "src/core/lib/iomgr/fork_windows.cc",
  674. "src/core/lib/iomgr/gethostname_fallback.cc",
  675. "src/core/lib/iomgr/gethostname_host_name_max.cc",
  676. "src/core/lib/iomgr/gethostname_sysconf.cc",
  677. "src/core/lib/iomgr/internal_errqueue.cc",
  678. "src/core/lib/iomgr/iocp_windows.cc",
  679. "src/core/lib/iomgr/iomgr.cc",
  680. "src/core/lib/iomgr/iomgr_custom.cc",
  681. "src/core/lib/iomgr/iomgr_internal.cc",
  682. "src/core/lib/iomgr/iomgr_posix.cc",
  683. "src/core/lib/iomgr/iomgr_windows.cc",
  684. "src/core/lib/iomgr/is_epollexclusive_available.cc",
  685. "src/core/lib/iomgr/load_file.cc",
  686. "src/core/lib/iomgr/lockfree_event.cc",
  687. "src/core/lib/iomgr/network_status_tracker.cc",
  688. "src/core/lib/iomgr/polling_entity.cc",
  689. "src/core/lib/iomgr/pollset.cc",
  690. "src/core/lib/iomgr/pollset_custom.cc",
  691. "src/core/lib/iomgr/pollset_set.cc",
  692. "src/core/lib/iomgr/pollset_set_custom.cc",
  693. "src/core/lib/iomgr/pollset_set_windows.cc",
  694. "src/core/lib/iomgr/pollset_uv.cc",
  695. "src/core/lib/iomgr/pollset_windows.cc",
  696. "src/core/lib/iomgr/resolve_address.cc",
  697. "src/core/lib/iomgr/resolve_address_custom.cc",
  698. "src/core/lib/iomgr/resolve_address_posix.cc",
  699. "src/core/lib/iomgr/resolve_address_windows.cc",
  700. "src/core/lib/iomgr/resource_quota.cc",
  701. "src/core/lib/iomgr/sockaddr_utils.cc",
  702. "src/core/lib/iomgr/socket_factory_posix.cc",
  703. "src/core/lib/iomgr/socket_mutator.cc",
  704. "src/core/lib/iomgr/socket_utils_common_posix.cc",
  705. "src/core/lib/iomgr/socket_utils_linux.cc",
  706. "src/core/lib/iomgr/socket_utils_posix.cc",
  707. "src/core/lib/iomgr/socket_utils_windows.cc",
  708. "src/core/lib/iomgr/socket_windows.cc",
  709. "src/core/lib/iomgr/tcp_client.cc",
  710. "src/core/lib/iomgr/tcp_client_custom.cc",
  711. "src/core/lib/iomgr/tcp_client_posix.cc",
  712. "src/core/lib/iomgr/tcp_client_windows.cc",
  713. "src/core/lib/iomgr/tcp_custom.cc",
  714. "src/core/lib/iomgr/tcp_posix.cc",
  715. "src/core/lib/iomgr/tcp_server.cc",
  716. "src/core/lib/iomgr/tcp_server_custom.cc",
  717. "src/core/lib/iomgr/tcp_server_posix.cc",
  718. "src/core/lib/iomgr/tcp_server_utils_posix_common.cc",
  719. "src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc",
  720. "src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc",
  721. "src/core/lib/iomgr/tcp_server_windows.cc",
  722. "src/core/lib/iomgr/tcp_uv.cc",
  723. "src/core/lib/iomgr/tcp_windows.cc",
  724. "src/core/lib/iomgr/time_averaged_stats.cc",
  725. "src/core/lib/iomgr/timer.cc",
  726. "src/core/lib/iomgr/timer_custom.cc",
  727. "src/core/lib/iomgr/timer_generic.cc",
  728. "src/core/lib/iomgr/timer_heap.cc",
  729. "src/core/lib/iomgr/timer_manager.cc",
  730. "src/core/lib/iomgr/timer_uv.cc",
  731. "src/core/lib/iomgr/udp_server.cc",
  732. "src/core/lib/iomgr/unix_sockets_posix.cc",
  733. "src/core/lib/iomgr/unix_sockets_posix_noop.cc",
  734. "src/core/lib/iomgr/wakeup_fd_cv.cc",
  735. "src/core/lib/iomgr/wakeup_fd_eventfd.cc",
  736. "src/core/lib/iomgr/wakeup_fd_nospecial.cc",
  737. "src/core/lib/iomgr/wakeup_fd_pipe.cc",
  738. "src/core/lib/iomgr/wakeup_fd_posix.cc",
  739. "src/core/lib/json/json.cc",
  740. "src/core/lib/json/json_reader.cc",
  741. "src/core/lib/json/json_string.cc",
  742. "src/core/lib/json/json_writer.cc",
  743. "src/core/lib/slice/b64.cc",
  744. "src/core/lib/slice/percent_encoding.cc",
  745. "src/core/lib/slice/slice.cc",
  746. "src/core/lib/slice/slice_buffer.cc",
  747. "src/core/lib/slice/slice_intern.cc",
  748. "src/core/lib/slice/slice_string_helpers.cc",
  749. "src/core/lib/surface/api_trace.cc",
  750. "src/core/lib/surface/byte_buffer.cc",
  751. "src/core/lib/surface/byte_buffer_reader.cc",
  752. "src/core/lib/surface/call.cc",
  753. "src/core/lib/surface/call_details.cc",
  754. "src/core/lib/surface/call_log_batch.cc",
  755. "src/core/lib/surface/channel.cc",
  756. "src/core/lib/surface/channel_init.cc",
  757. "src/core/lib/surface/channel_ping.cc",
  758. "src/core/lib/surface/channel_stack_type.cc",
  759. "src/core/lib/surface/completion_queue.cc",
  760. "src/core/lib/surface/completion_queue_factory.cc",
  761. "src/core/lib/surface/event_string.cc",
  762. "src/core/lib/surface/metadata_array.cc",
  763. "src/core/lib/surface/server.cc",
  764. "src/core/lib/surface/validate_metadata.cc",
  765. "src/core/lib/surface/version.cc",
  766. "src/core/lib/transport/bdp_estimator.cc",
  767. "src/core/lib/transport/byte_stream.cc",
  768. "src/core/lib/transport/connectivity_state.cc",
  769. "src/core/lib/transport/error_utils.cc",
  770. "src/core/lib/transport/metadata.cc",
  771. "src/core/lib/transport/metadata_batch.cc",
  772. "src/core/lib/transport/pid_controller.cc",
  773. "src/core/lib/transport/service_config.cc",
  774. "src/core/lib/transport/static_metadata.cc",
  775. "src/core/lib/transport/status_conversion.cc",
  776. "src/core/lib/transport/status_metadata.cc",
  777. "src/core/lib/transport/timeout_encoding.cc",
  778. "src/core/lib/transport/transport.cc",
  779. "src/core/lib/transport/transport_op_string.cc",
  780. "src/core/lib/uri/uri_parser.cc",
  781. ],
  782. hdrs = [
  783. "src/core/lib/avl/avl.h",
  784. "src/core/lib/backoff/backoff.h",
  785. "src/core/lib/channel/channel_args.h",
  786. "src/core/lib/channel/channel_stack.h",
  787. "src/core/lib/channel/channel_stack_builder.h",
  788. "src/core/lib/channel/channel_trace.h",
  789. "src/core/lib/channel/channelz.h",
  790. "src/core/lib/channel/channelz_registry.h",
  791. "src/core/lib/channel/connected_channel.h",
  792. "src/core/lib/channel/context.h",
  793. "src/core/lib/channel/handshaker.h",
  794. "src/core/lib/channel/handshaker_factory.h",
  795. "src/core/lib/channel/handshaker_registry.h",
  796. "src/core/lib/channel/status_util.h",
  797. "src/core/lib/compression/algorithm_metadata.h",
  798. "src/core/lib/compression/compression_internal.h",
  799. "src/core/lib/compression/message_compress.h",
  800. "src/core/lib/compression/stream_compression.h",
  801. "src/core/lib/compression/stream_compression_gzip.h",
  802. "src/core/lib/compression/stream_compression_identity.h",
  803. "src/core/lib/debug/stats.h",
  804. "src/core/lib/debug/stats_data.h",
  805. "src/core/lib/http/format_request.h",
  806. "src/core/lib/http/httpcli.h",
  807. "src/core/lib/http/parser.h",
  808. "src/core/lib/iomgr/block_annotate.h",
  809. "src/core/lib/iomgr/buffer_list.h",
  810. "src/core/lib/iomgr/call_combiner.h",
  811. "src/core/lib/iomgr/closure.h",
  812. "src/core/lib/iomgr/combiner.h",
  813. "src/core/lib/iomgr/dynamic_annotations.h",
  814. "src/core/lib/iomgr/endpoint.h",
  815. "src/core/lib/iomgr/endpoint_pair.h",
  816. "src/core/lib/iomgr/error.h",
  817. "src/core/lib/iomgr/error_internal.h",
  818. "src/core/lib/iomgr/ev_epoll1_linux.h",
  819. "src/core/lib/iomgr/ev_epollex_linux.h",
  820. "src/core/lib/iomgr/ev_poll_posix.h",
  821. "src/core/lib/iomgr/ev_posix.h",
  822. "src/core/lib/iomgr/exec_ctx.h",
  823. "src/core/lib/iomgr/executor.h",
  824. "src/core/lib/iomgr/gethostname.h",
  825. "src/core/lib/iomgr/gevent_util.h",
  826. "src/core/lib/iomgr/internal_errqueue.h",
  827. "src/core/lib/iomgr/iocp_windows.h",
  828. "src/core/lib/iomgr/iomgr.h",
  829. "src/core/lib/iomgr/iomgr_custom.h",
  830. "src/core/lib/iomgr/iomgr_internal.h",
  831. "src/core/lib/iomgr/iomgr_posix.h",
  832. "src/core/lib/iomgr/is_epollexclusive_available.h",
  833. "src/core/lib/iomgr/load_file.h",
  834. "src/core/lib/iomgr/lockfree_event.h",
  835. "src/core/lib/iomgr/nameser.h",
  836. "src/core/lib/iomgr/network_status_tracker.h",
  837. "src/core/lib/iomgr/polling_entity.h",
  838. "src/core/lib/iomgr/pollset.h",
  839. "src/core/lib/iomgr/pollset_custom.h",
  840. "src/core/lib/iomgr/pollset_set.h",
  841. "src/core/lib/iomgr/pollset_set_custom.h",
  842. "src/core/lib/iomgr/pollset_set_windows.h",
  843. "src/core/lib/iomgr/pollset_uv.h",
  844. "src/core/lib/iomgr/pollset_windows.h",
  845. "src/core/lib/iomgr/port.h",
  846. "src/core/lib/iomgr/resolve_address.h",
  847. "src/core/lib/iomgr/resolve_address_custom.h",
  848. "src/core/lib/iomgr/resource_quota.h",
  849. "src/core/lib/iomgr/sockaddr.h",
  850. "src/core/lib/iomgr/sockaddr_custom.h",
  851. "src/core/lib/iomgr/sockaddr_posix.h",
  852. "src/core/lib/iomgr/sockaddr_utils.h",
  853. "src/core/lib/iomgr/sockaddr_windows.h",
  854. "src/core/lib/iomgr/socket_factory_posix.h",
  855. "src/core/lib/iomgr/socket_mutator.h",
  856. "src/core/lib/iomgr/socket_utils.h",
  857. "src/core/lib/iomgr/socket_utils_posix.h",
  858. "src/core/lib/iomgr/socket_windows.h",
  859. "src/core/lib/iomgr/sys_epoll_wrapper.h",
  860. "src/core/lib/iomgr/tcp_client.h",
  861. "src/core/lib/iomgr/tcp_client_posix.h",
  862. "src/core/lib/iomgr/tcp_custom.h",
  863. "src/core/lib/iomgr/tcp_posix.h",
  864. "src/core/lib/iomgr/tcp_server.h",
  865. "src/core/lib/iomgr/tcp_server_utils_posix.h",
  866. "src/core/lib/iomgr/tcp_windows.h",
  867. "src/core/lib/iomgr/time_averaged_stats.h",
  868. "src/core/lib/iomgr/timer.h",
  869. "src/core/lib/iomgr/timer_custom.h",
  870. "src/core/lib/iomgr/timer_generic.h",
  871. "src/core/lib/iomgr/timer_heap.h",
  872. "src/core/lib/iomgr/timer_manager.h",
  873. "src/core/lib/iomgr/udp_server.h",
  874. "src/core/lib/iomgr/unix_sockets_posix.h",
  875. "src/core/lib/iomgr/wakeup_fd_cv.h",
  876. "src/core/lib/iomgr/wakeup_fd_pipe.h",
  877. "src/core/lib/iomgr/wakeup_fd_posix.h",
  878. "src/core/lib/json/json.h",
  879. "src/core/lib/json/json_common.h",
  880. "src/core/lib/json/json_reader.h",
  881. "src/core/lib/json/json_writer.h",
  882. "src/core/lib/slice/b64.h",
  883. "src/core/lib/slice/percent_encoding.h",
  884. "src/core/lib/slice/slice_hash_table.h",
  885. "src/core/lib/slice/slice_internal.h",
  886. "src/core/lib/slice/slice_string_helpers.h",
  887. "src/core/lib/slice/slice_weak_hash_table.h",
  888. "src/core/lib/surface/api_trace.h",
  889. "src/core/lib/surface/call.h",
  890. "src/core/lib/surface/call_test_only.h",
  891. "src/core/lib/surface/channel.h",
  892. "src/core/lib/surface/channel_init.h",
  893. "src/core/lib/surface/channel_stack_type.h",
  894. "src/core/lib/surface/completion_queue.h",
  895. "src/core/lib/surface/completion_queue_factory.h",
  896. "src/core/lib/surface/event_string.h",
  897. "src/core/lib/surface/init.h",
  898. "src/core/lib/surface/lame_client.h",
  899. "src/core/lib/surface/server.h",
  900. "src/core/lib/surface/validate_metadata.h",
  901. "src/core/lib/transport/bdp_estimator.h",
  902. "src/core/lib/transport/byte_stream.h",
  903. "src/core/lib/transport/connectivity_state.h",
  904. "src/core/lib/transport/error_utils.h",
  905. "src/core/lib/transport/http2_errors.h",
  906. "src/core/lib/transport/metadata.h",
  907. "src/core/lib/transport/metadata_batch.h",
  908. "src/core/lib/transport/pid_controller.h",
  909. "src/core/lib/transport/service_config.h",
  910. "src/core/lib/transport/static_metadata.h",
  911. "src/core/lib/transport/status_conversion.h",
  912. "src/core/lib/transport/status_metadata.h",
  913. "src/core/lib/transport/timeout_encoding.h",
  914. "src/core/lib/transport/transport.h",
  915. "src/core/lib/transport/transport_impl.h",
  916. "src/core/lib/uri/uri_parser.h",
  917. ],
  918. external_deps = [
  919. "zlib",
  920. ],
  921. language = "c++",
  922. public_hdrs = GRPC_PUBLIC_HDRS,
  923. deps = [
  924. "gpr_base",
  925. "grpc_codegen",
  926. "grpc_trace",
  927. "inlined_vector",
  928. "orphanable",
  929. "ref_counted",
  930. "ref_counted_ptr",
  931. ],
  932. )
  933. grpc_cc_library(
  934. name = "grpc_base",
  935. srcs = [
  936. "src/core/lib/surface/lame_client.cc",
  937. ],
  938. language = "c++",
  939. deps = [
  940. "atomic",
  941. "grpc_base_c",
  942. ],
  943. )
  944. grpc_cc_library(
  945. name = "grpc_common",
  946. language = "c++",
  947. deps = [
  948. "grpc_base",
  949. # standard plugins
  950. "census",
  951. "grpc_deadline_filter",
  952. "grpc_client_authority_filter",
  953. "grpc_lb_policy_pick_first",
  954. "grpc_lb_policy_round_robin",
  955. "grpc_max_age_filter",
  956. "grpc_message_size_filter",
  957. "grpc_resolver_dns_ares",
  958. "grpc_resolver_fake",
  959. "grpc_resolver_dns_native",
  960. "grpc_resolver_sockaddr",
  961. "grpc_transport_chttp2_client_insecure",
  962. "grpc_transport_chttp2_server_insecure",
  963. "grpc_transport_inproc",
  964. "grpc_workaround_cronet_compression_filter",
  965. "grpc_server_backward_compatibility",
  966. ],
  967. )
  968. grpc_cc_library(
  969. name = "grpc_cfstream",
  970. srcs = [
  971. "src/core/lib/iomgr/cfstream_handle.cc",
  972. "src/core/lib/iomgr/endpoint_cfstream.cc",
  973. "src/core/lib/iomgr/error_cfstream.cc",
  974. "src/core/lib/iomgr/iomgr_posix_cfstream.cc",
  975. "src/core/lib/iomgr/tcp_client_cfstream.cc",
  976. ],
  977. hdrs = [
  978. "src/core/lib/iomgr/cfstream_handle.h",
  979. "src/core/lib/iomgr/endpoint_cfstream.h",
  980. "src/core/lib/iomgr/error_cfstream.h",
  981. ],
  982. deps = [
  983. ":gpr_base",
  984. ":grpc_base",
  985. ],
  986. )
  987. grpc_cc_library(
  988. name = "grpc_client_channel",
  989. srcs = [
  990. "src/core/ext/filters/client_channel/backup_poller.cc",
  991. "src/core/ext/filters/client_channel/channel_connectivity.cc",
  992. "src/core/ext/filters/client_channel/client_channel.cc",
  993. "src/core/ext/filters/client_channel/client_channel_channelz.cc",
  994. "src/core/ext/filters/client_channel/client_channel_factory.cc",
  995. "src/core/ext/filters/client_channel/client_channel_plugin.cc",
  996. "src/core/ext/filters/client_channel/connector.cc",
  997. "src/core/ext/filters/client_channel/health/health_check_client.cc",
  998. "src/core/ext/filters/client_channel/http_connect_handshaker.cc",
  999. "src/core/ext/filters/client_channel/http_proxy.cc",
  1000. "src/core/ext/filters/client_channel/lb_policy.cc",
  1001. "src/core/ext/filters/client_channel/lb_policy_registry.cc",
  1002. "src/core/ext/filters/client_channel/parse_address.cc",
  1003. "src/core/ext/filters/client_channel/proxy_mapper.cc",
  1004. "src/core/ext/filters/client_channel/proxy_mapper_registry.cc",
  1005. "src/core/ext/filters/client_channel/resolver.cc",
  1006. "src/core/ext/filters/client_channel/resolver_registry.cc",
  1007. "src/core/ext/filters/client_channel/resolver_result_parsing.cc",
  1008. "src/core/ext/filters/client_channel/retry_throttle.cc",
  1009. "src/core/ext/filters/client_channel/server_address.cc",
  1010. "src/core/ext/filters/client_channel/subchannel.cc",
  1011. "src/core/ext/filters/client_channel/subchannel_index.cc",
  1012. ],
  1013. hdrs = [
  1014. "src/core/ext/filters/client_channel/backup_poller.h",
  1015. "src/core/ext/filters/client_channel/client_channel.h",
  1016. "src/core/ext/filters/client_channel/client_channel_channelz.h",
  1017. "src/core/ext/filters/client_channel/client_channel_factory.h",
  1018. "src/core/ext/filters/client_channel/connector.h",
  1019. "src/core/ext/filters/client_channel/health/health_check_client.h",
  1020. "src/core/ext/filters/client_channel/http_connect_handshaker.h",
  1021. "src/core/ext/filters/client_channel/http_proxy.h",
  1022. "src/core/ext/filters/client_channel/lb_policy.h",
  1023. "src/core/ext/filters/client_channel/lb_policy_factory.h",
  1024. "src/core/ext/filters/client_channel/lb_policy_registry.h",
  1025. "src/core/ext/filters/client_channel/parse_address.h",
  1026. "src/core/ext/filters/client_channel/proxy_mapper.h",
  1027. "src/core/ext/filters/client_channel/proxy_mapper_registry.h",
  1028. "src/core/ext/filters/client_channel/resolver.h",
  1029. "src/core/ext/filters/client_channel/resolver_factory.h",
  1030. "src/core/ext/filters/client_channel/resolver_registry.h",
  1031. "src/core/ext/filters/client_channel/resolver_result_parsing.h",
  1032. "src/core/ext/filters/client_channel/retry_throttle.h",
  1033. "src/core/ext/filters/client_channel/server_address.h",
  1034. "src/core/ext/filters/client_channel/subchannel.h",
  1035. "src/core/ext/filters/client_channel/subchannel_index.h",
  1036. ],
  1037. language = "c++",
  1038. deps = [
  1039. "gpr_base",
  1040. "grpc_base",
  1041. "grpc_client_authority_filter",
  1042. "grpc_deadline_filter",
  1043. "health_proto",
  1044. "inlined_vector",
  1045. "orphanable",
  1046. "ref_counted",
  1047. "ref_counted_ptr",
  1048. ],
  1049. )
  1050. grpc_cc_library(
  1051. name = "grpc_max_age_filter",
  1052. srcs = [
  1053. "src/core/ext/filters/max_age/max_age_filter.cc",
  1054. ],
  1055. hdrs = [
  1056. "src/core/ext/filters/max_age/max_age_filter.h",
  1057. ],
  1058. language = "c++",
  1059. deps = [
  1060. "grpc_base",
  1061. ],
  1062. )
  1063. grpc_cc_library(
  1064. name = "grpc_deadline_filter",
  1065. srcs = [
  1066. "src/core/ext/filters/deadline/deadline_filter.cc",
  1067. ],
  1068. hdrs = [
  1069. "src/core/ext/filters/deadline/deadline_filter.h",
  1070. ],
  1071. language = "c++",
  1072. deps = [
  1073. "grpc_base",
  1074. ],
  1075. )
  1076. grpc_cc_library(
  1077. name = "grpc_client_authority_filter",
  1078. srcs = [
  1079. "src/core/ext/filters/http/client_authority_filter.cc",
  1080. ],
  1081. hdrs = [
  1082. "src/core/ext/filters/http/client_authority_filter.h",
  1083. ],
  1084. language = "c++",
  1085. deps = [
  1086. "grpc_base",
  1087. ],
  1088. )
  1089. grpc_cc_library(
  1090. name = "grpc_message_size_filter",
  1091. srcs = [
  1092. "src/core/ext/filters/message_size/message_size_filter.cc",
  1093. ],
  1094. hdrs = [
  1095. "src/core/ext/filters/message_size/message_size_filter.h",
  1096. ],
  1097. language = "c++",
  1098. deps = [
  1099. "grpc_base",
  1100. ],
  1101. )
  1102. grpc_cc_library(
  1103. name = "grpc_http_filters",
  1104. srcs = [
  1105. "src/core/ext/filters/http/client/http_client_filter.cc",
  1106. "src/core/ext/filters/http/http_filters_plugin.cc",
  1107. "src/core/ext/filters/http/message_compress/message_compress_filter.cc",
  1108. "src/core/ext/filters/http/server/http_server_filter.cc",
  1109. ],
  1110. hdrs = [
  1111. "src/core/ext/filters/http/client/http_client_filter.h",
  1112. "src/core/ext/filters/http/message_compress/message_compress_filter.h",
  1113. "src/core/ext/filters/http/server/http_server_filter.h",
  1114. ],
  1115. language = "c++",
  1116. deps = [
  1117. "grpc_base",
  1118. ],
  1119. )
  1120. grpc_cc_library(
  1121. name = "grpc_workaround_cronet_compression_filter",
  1122. srcs = [
  1123. "src/core/ext/filters/workarounds/workaround_cronet_compression_filter.cc",
  1124. ],
  1125. hdrs = [
  1126. "src/core/ext/filters/workarounds/workaround_cronet_compression_filter.h",
  1127. ],
  1128. language = "c++",
  1129. deps = [
  1130. "grpc_base",
  1131. "grpc_server_backward_compatibility",
  1132. ],
  1133. )
  1134. grpc_cc_library(
  1135. name = "grpc_codegen",
  1136. language = "c++",
  1137. public_hdrs = [
  1138. "include/grpc/impl/codegen/byte_buffer.h",
  1139. "include/grpc/impl/codegen/byte_buffer_reader.h",
  1140. "include/grpc/impl/codegen/compression_types.h",
  1141. "include/grpc/impl/codegen/connectivity_state.h",
  1142. "include/grpc/impl/codegen/grpc_types.h",
  1143. "include/grpc/impl/codegen/propagation_bits.h",
  1144. "include/grpc/impl/codegen/status.h",
  1145. "include/grpc/impl/codegen/slice.h",
  1146. ],
  1147. deps = [
  1148. "gpr_codegen",
  1149. ],
  1150. )
  1151. grpc_cc_library(
  1152. name = "health_proto",
  1153. srcs = [
  1154. "src/core/ext/filters/client_channel/health/health.pb.c",
  1155. ],
  1156. hdrs = [
  1157. "src/core/ext/filters/client_channel/health/health.pb.h",
  1158. ],
  1159. external_deps = [
  1160. "nanopb",
  1161. ],
  1162. language = "c++",
  1163. )
  1164. grpc_cc_library(
  1165. name = "grpclb_proto",
  1166. srcs = [
  1167. "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/duration.pb.c",
  1168. "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/timestamp.pb.c",
  1169. "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.c",
  1170. ],
  1171. hdrs = [
  1172. "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/duration.pb.h",
  1173. "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/google/protobuf/timestamp.pb.h",
  1174. "src/core/ext/filters/client_channel/lb_policy/grpclb/proto/grpc/lb/v1/load_balancer.pb.h",
  1175. ],
  1176. external_deps = [
  1177. "nanopb",
  1178. ],
  1179. language = "c++",
  1180. )
  1181. grpc_cc_library(
  1182. name = "grpc_lb_policy_grpclb",
  1183. srcs = [
  1184. "src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc",
  1185. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc",
  1186. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.cc",
  1187. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc",
  1188. "src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc",
  1189. ],
  1190. hdrs = [
  1191. "src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h",
  1192. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h",
  1193. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h",
  1194. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h",
  1195. "src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h",
  1196. ],
  1197. external_deps = [
  1198. "nanopb",
  1199. ],
  1200. language = "c++",
  1201. deps = [
  1202. "grpc_base",
  1203. "grpc_client_channel",
  1204. "grpc_resolver_fake",
  1205. "grpclb_proto",
  1206. ],
  1207. )
  1208. grpc_cc_library(
  1209. name = "grpc_lb_policy_grpclb_secure",
  1210. srcs = [
  1211. "src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc",
  1212. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc",
  1213. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc",
  1214. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc",
  1215. "src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc",
  1216. ],
  1217. hdrs = [
  1218. "src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h",
  1219. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h",
  1220. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h",
  1221. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h",
  1222. "src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h",
  1223. ],
  1224. external_deps = [
  1225. "nanopb",
  1226. ],
  1227. language = "c++",
  1228. deps = [
  1229. "grpc_base",
  1230. "grpc_client_channel",
  1231. "grpc_resolver_fake",
  1232. "grpc_secure",
  1233. "grpclb_proto",
  1234. ],
  1235. )
  1236. grpc_cc_library(
  1237. name = "grpc_lb_policy_xds",
  1238. srcs = [
  1239. "src/core/ext/filters/client_channel/lb_policy/xds/xds.cc",
  1240. "src/core/ext/filters/client_channel/lb_policy/xds/xds_channel.cc",
  1241. "src/core/ext/filters/client_channel/lb_policy/xds/xds_client_stats.cc",
  1242. "src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.cc",
  1243. ],
  1244. hdrs = [
  1245. "src/core/ext/filters/client_channel/lb_policy/xds/xds.h",
  1246. "src/core/ext/filters/client_channel/lb_policy/xds/xds_channel.h",
  1247. "src/core/ext/filters/client_channel/lb_policy/xds/xds_client_stats.h",
  1248. "src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.h",
  1249. ],
  1250. external_deps = [
  1251. "nanopb",
  1252. ],
  1253. language = "c++",
  1254. deps = [
  1255. "grpc_base",
  1256. "grpc_client_channel",
  1257. "grpc_resolver_fake",
  1258. "grpclb_proto",
  1259. ],
  1260. )
  1261. grpc_cc_library(
  1262. name = "grpc_lb_policy_xds_secure",
  1263. srcs = [
  1264. "src/core/ext/filters/client_channel/lb_policy/xds/xds.cc",
  1265. "src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_secure.cc",
  1266. "src/core/ext/filters/client_channel/lb_policy/xds/xds_client_stats.cc",
  1267. "src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.cc",
  1268. ],
  1269. hdrs = [
  1270. "src/core/ext/filters/client_channel/lb_policy/xds/xds.h",
  1271. "src/core/ext/filters/client_channel/lb_policy/xds/xds_channel.h",
  1272. "src/core/ext/filters/client_channel/lb_policy/xds/xds_client_stats.h",
  1273. "src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.h",
  1274. ],
  1275. external_deps = [
  1276. "nanopb",
  1277. ],
  1278. language = "c++",
  1279. deps = [
  1280. "grpc_base",
  1281. "grpc_client_channel",
  1282. "grpc_resolver_fake",
  1283. "grpc_secure",
  1284. "grpclb_proto",
  1285. ],
  1286. )
  1287. grpc_cc_library(
  1288. name = "grpc_lb_subchannel_list",
  1289. hdrs = [
  1290. "src/core/ext/filters/client_channel/lb_policy/subchannel_list.h",
  1291. ],
  1292. language = "c++",
  1293. deps = [
  1294. "grpc_base",
  1295. "grpc_client_channel",
  1296. ],
  1297. )
  1298. grpc_cc_library(
  1299. name = "grpc_lb_policy_pick_first",
  1300. srcs = [
  1301. "src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc",
  1302. ],
  1303. language = "c++",
  1304. deps = [
  1305. "grpc_base",
  1306. "grpc_client_channel",
  1307. "grpc_lb_subchannel_list",
  1308. ],
  1309. )
  1310. grpc_cc_library(
  1311. name = "grpc_lb_policy_round_robin",
  1312. srcs = [
  1313. "src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc",
  1314. ],
  1315. language = "c++",
  1316. deps = [
  1317. "grpc_base",
  1318. "grpc_client_channel",
  1319. "grpc_lb_subchannel_list",
  1320. ],
  1321. )
  1322. grpc_cc_library(
  1323. name = "lb_server_load_reporting_filter",
  1324. srcs = [
  1325. "src/core/ext/filters/load_reporting/server_load_reporting_filter.cc",
  1326. ],
  1327. hdrs = [
  1328. "src/core/ext/filters/load_reporting/registered_opencensus_objects.h",
  1329. "src/core/ext/filters/load_reporting/server_load_reporting_filter.h",
  1330. "src/cpp/server/load_reporter/constants.h",
  1331. ],
  1332. external_deps = [
  1333. "opencensus-stats",
  1334. ],
  1335. language = "c++",
  1336. deps = [
  1337. "grpc++_base",
  1338. "grpc_secure",
  1339. ],
  1340. )
  1341. grpc_cc_library(
  1342. name = "lb_load_data_store",
  1343. srcs = [
  1344. "src/cpp/server/load_reporter/load_data_store.cc",
  1345. ],
  1346. hdrs = [
  1347. "src/cpp/server/load_reporter/constants.h",
  1348. "src/cpp/server/load_reporter/load_data_store.h",
  1349. ],
  1350. language = "c++",
  1351. deps = [
  1352. "grpc++",
  1353. ],
  1354. )
  1355. grpc_cc_library(
  1356. name = "lb_server_load_reporting_service_server_builder_plugin",
  1357. srcs = [
  1358. "src/cpp/server/load_reporter/load_reporting_service_server_builder_plugin.cc",
  1359. ],
  1360. hdrs = [
  1361. "src/cpp/server/load_reporter/load_reporting_service_server_builder_plugin.h",
  1362. ],
  1363. language = "c++",
  1364. deps = [
  1365. "lb_load_reporter_service",
  1366. ],
  1367. )
  1368. grpc_cc_library(
  1369. name = "grpcpp_server_load_reporting",
  1370. srcs = [
  1371. "src/cpp/server/load_reporter/load_reporting_service_server_builder_option.cc",
  1372. "src/cpp/server/load_reporter/util.cc",
  1373. ],
  1374. language = "c++",
  1375. public_hdrs = [
  1376. "include/grpcpp/ext/server_load_reporting.h",
  1377. ],
  1378. deps = [
  1379. "lb_server_load_reporting_filter",
  1380. "lb_server_load_reporting_service_server_builder_plugin",
  1381. ],
  1382. alwayslink = 1,
  1383. )
  1384. grpc_cc_library(
  1385. name = "lb_load_reporter_service",
  1386. srcs = [
  1387. "src/cpp/server/load_reporter/load_reporter_async_service_impl.cc",
  1388. ],
  1389. hdrs = [
  1390. "src/cpp/server/load_reporter/load_reporter_async_service_impl.h",
  1391. ],
  1392. language = "c++",
  1393. deps = [
  1394. "lb_load_reporter",
  1395. ],
  1396. )
  1397. grpc_cc_library(
  1398. name = "lb_get_cpu_stats",
  1399. srcs = [
  1400. "src/cpp/server/load_reporter/get_cpu_stats_linux.cc",
  1401. "src/cpp/server/load_reporter/get_cpu_stats_macos.cc",
  1402. "src/cpp/server/load_reporter/get_cpu_stats_unsupported.cc",
  1403. "src/cpp/server/load_reporter/get_cpu_stats_windows.cc",
  1404. ],
  1405. hdrs = [
  1406. "src/cpp/server/load_reporter/get_cpu_stats.h",
  1407. ],
  1408. language = "c++",
  1409. deps = [
  1410. "grpc++",
  1411. ],
  1412. )
  1413. grpc_cc_library(
  1414. name = "lb_load_reporter",
  1415. srcs = [
  1416. "src/cpp/server/load_reporter/load_reporter.cc",
  1417. ],
  1418. hdrs = [
  1419. "src/cpp/server/load_reporter/constants.h",
  1420. "src/cpp/server/load_reporter/load_reporter.h",
  1421. ],
  1422. external_deps = [
  1423. "opencensus-stats",
  1424. ],
  1425. language = "c++",
  1426. deps = [
  1427. "lb_get_cpu_stats",
  1428. "lb_load_data_store",
  1429. "//src/proto/grpc/lb/v1:load_reporter_proto",
  1430. ],
  1431. )
  1432. grpc_cc_library(
  1433. name = "grpc_resolver_dns_native",
  1434. srcs = [
  1435. "src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc",
  1436. ],
  1437. language = "c++",
  1438. deps = [
  1439. "grpc_base",
  1440. "grpc_client_channel",
  1441. ],
  1442. )
  1443. grpc_cc_library(
  1444. name = "grpc_resolver_dns_ares",
  1445. srcs = [
  1446. "src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc",
  1447. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.cc",
  1448. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc",
  1449. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc",
  1450. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc",
  1451. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_fallback.cc",
  1452. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc",
  1453. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc",
  1454. ],
  1455. hdrs = [
  1456. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h",
  1457. "src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h",
  1458. ],
  1459. external_deps = [
  1460. "cares",
  1461. "address_sorting",
  1462. ],
  1463. language = "c++",
  1464. deps = [
  1465. "grpc_base",
  1466. "grpc_client_channel",
  1467. ],
  1468. )
  1469. grpc_cc_library(
  1470. name = "grpc_resolver_sockaddr",
  1471. srcs = [
  1472. "src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc",
  1473. ],
  1474. language = "c++",
  1475. deps = [
  1476. "grpc_base",
  1477. "grpc_client_channel",
  1478. ],
  1479. )
  1480. grpc_cc_library(
  1481. name = "grpc_resolver_fake",
  1482. srcs = ["src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc"],
  1483. hdrs = ["src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h"],
  1484. language = "c++",
  1485. visibility = ["//test:__subpackages__"],
  1486. deps = [
  1487. "grpc_base",
  1488. "grpc_client_channel",
  1489. ],
  1490. )
  1491. grpc_cc_library(
  1492. name = "grpc_secure",
  1493. srcs = [
  1494. "src/core/lib/http/httpcli_security_connector.cc",
  1495. "src/core/lib/security/context/security_context.cc",
  1496. "src/core/lib/security/credentials/alts/alts_credentials.cc",
  1497. "src/core/lib/security/credentials/composite/composite_credentials.cc",
  1498. "src/core/lib/security/credentials/credentials.cc",
  1499. "src/core/lib/security/credentials/credentials_metadata.cc",
  1500. "src/core/lib/security/credentials/fake/fake_credentials.cc",
  1501. "src/core/lib/security/credentials/google_default/credentials_generic.cc",
  1502. "src/core/lib/security/credentials/google_default/google_default_credentials.cc",
  1503. "src/core/lib/security/credentials/iam/iam_credentials.cc",
  1504. "src/core/lib/security/credentials/jwt/json_token.cc",
  1505. "src/core/lib/security/credentials/jwt/jwt_credentials.cc",
  1506. "src/core/lib/security/credentials/jwt/jwt_verifier.cc",
  1507. "src/core/lib/security/credentials/local/local_credentials.cc",
  1508. "src/core/lib/security/credentials/oauth2/oauth2_credentials.cc",
  1509. "src/core/lib/security/credentials/plugin/plugin_credentials.cc",
  1510. "src/core/lib/security/credentials/ssl/ssl_credentials.cc",
  1511. "src/core/lib/security/security_connector/alts/alts_security_connector.cc",
  1512. "src/core/lib/security/security_connector/fake/fake_security_connector.cc",
  1513. "src/core/lib/security/security_connector/load_system_roots_fallback.cc",
  1514. "src/core/lib/security/security_connector/load_system_roots_linux.cc",
  1515. "src/core/lib/security/security_connector/local/local_security_connector.cc",
  1516. "src/core/lib/security/security_connector/security_connector.cc",
  1517. "src/core/lib/security/security_connector/ssl/ssl_security_connector.cc",
  1518. "src/core/lib/security/security_connector/ssl_utils.cc",
  1519. "src/core/lib/security/transport/client_auth_filter.cc",
  1520. "src/core/lib/security/transport/secure_endpoint.cc",
  1521. "src/core/lib/security/transport/security_handshaker.cc",
  1522. "src/core/lib/security/transport/server_auth_filter.cc",
  1523. "src/core/lib/security/transport/target_authority_table.cc",
  1524. "src/core/lib/security/transport/tsi_error.cc",
  1525. "src/core/lib/security/util/json_util.cc",
  1526. "src/core/lib/surface/init_secure.cc",
  1527. ],
  1528. hdrs = [
  1529. "src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h",
  1530. "src/core/ext/filters/client_channel/lb_policy/xds/xds.h",
  1531. "src/core/lib/security/context/security_context.h",
  1532. "src/core/lib/security/credentials/alts/alts_credentials.h",
  1533. "src/core/lib/security/credentials/composite/composite_credentials.h",
  1534. "src/core/lib/security/credentials/credentials.h",
  1535. "src/core/lib/security/credentials/fake/fake_credentials.h",
  1536. "src/core/lib/security/credentials/google_default/google_default_credentials.h",
  1537. "src/core/lib/security/credentials/iam/iam_credentials.h",
  1538. "src/core/lib/security/credentials/jwt/json_token.h",
  1539. "src/core/lib/security/credentials/jwt/jwt_credentials.h",
  1540. "src/core/lib/security/credentials/jwt/jwt_verifier.h",
  1541. "src/core/lib/security/credentials/local/local_credentials.h",
  1542. "src/core/lib/security/credentials/oauth2/oauth2_credentials.h",
  1543. "src/core/lib/security/credentials/plugin/plugin_credentials.h",
  1544. "src/core/lib/security/credentials/ssl/ssl_credentials.h",
  1545. "src/core/lib/security/security_connector/alts/alts_security_connector.h",
  1546. "src/core/lib/security/security_connector/fake/fake_security_connector.h",
  1547. "src/core/lib/security/security_connector/load_system_roots.h",
  1548. "src/core/lib/security/security_connector/load_system_roots_linux.h",
  1549. "src/core/lib/security/security_connector/local/local_security_connector.h",
  1550. "src/core/lib/security/security_connector/security_connector.h",
  1551. "src/core/lib/security/security_connector/ssl/ssl_security_connector.h",
  1552. "src/core/lib/security/security_connector/ssl_utils.h",
  1553. "src/core/lib/security/transport/auth_filters.h",
  1554. "src/core/lib/security/transport/secure_endpoint.h",
  1555. "src/core/lib/security/transport/security_handshaker.h",
  1556. "src/core/lib/security/transport/target_authority_table.h",
  1557. "src/core/lib/security/transport/tsi_error.h",
  1558. "src/core/lib/security/util/json_util.h",
  1559. ],
  1560. language = "c++",
  1561. public_hdrs = GRPC_SECURE_PUBLIC_HDRS,
  1562. deps = [
  1563. "alts_util",
  1564. "grpc_base",
  1565. "grpc_shadow_boringssl",
  1566. "grpc_transport_chttp2_alpn",
  1567. "tsi",
  1568. ],
  1569. )
  1570. grpc_cc_library(
  1571. name = "grpc_transport_chttp2",
  1572. srcs = [
  1573. "src/core/ext/transport/chttp2/transport/bin_decoder.cc",
  1574. "src/core/ext/transport/chttp2/transport/bin_encoder.cc",
  1575. "src/core/ext/transport/chttp2/transport/chttp2_plugin.cc",
  1576. "src/core/ext/transport/chttp2/transport/chttp2_transport.cc",
  1577. "src/core/ext/transport/chttp2/transport/context_list.cc",
  1578. "src/core/ext/transport/chttp2/transport/flow_control.cc",
  1579. "src/core/ext/transport/chttp2/transport/frame_data.cc",
  1580. "src/core/ext/transport/chttp2/transport/frame_goaway.cc",
  1581. "src/core/ext/transport/chttp2/transport/frame_ping.cc",
  1582. "src/core/ext/transport/chttp2/transport/frame_rst_stream.cc",
  1583. "src/core/ext/transport/chttp2/transport/frame_settings.cc",
  1584. "src/core/ext/transport/chttp2/transport/frame_window_update.cc",
  1585. "src/core/ext/transport/chttp2/transport/hpack_encoder.cc",
  1586. "src/core/ext/transport/chttp2/transport/hpack_parser.cc",
  1587. "src/core/ext/transport/chttp2/transport/hpack_table.cc",
  1588. "src/core/ext/transport/chttp2/transport/http2_settings.cc",
  1589. "src/core/ext/transport/chttp2/transport/huffsyms.cc",
  1590. "src/core/ext/transport/chttp2/transport/incoming_metadata.cc",
  1591. "src/core/ext/transport/chttp2/transport/parsing.cc",
  1592. "src/core/ext/transport/chttp2/transport/stream_lists.cc",
  1593. "src/core/ext/transport/chttp2/transport/stream_map.cc",
  1594. "src/core/ext/transport/chttp2/transport/varint.cc",
  1595. "src/core/ext/transport/chttp2/transport/writing.cc",
  1596. ],
  1597. hdrs = [
  1598. "src/core/ext/transport/chttp2/transport/bin_decoder.h",
  1599. "src/core/ext/transport/chttp2/transport/bin_encoder.h",
  1600. "src/core/ext/transport/chttp2/transport/chttp2_transport.h",
  1601. "src/core/ext/transport/chttp2/transport/context_list.h",
  1602. "src/core/ext/transport/chttp2/transport/flow_control.h",
  1603. "src/core/ext/transport/chttp2/transport/frame.h",
  1604. "src/core/ext/transport/chttp2/transport/frame_data.h",
  1605. "src/core/ext/transport/chttp2/transport/frame_goaway.h",
  1606. "src/core/ext/transport/chttp2/transport/frame_ping.h",
  1607. "src/core/ext/transport/chttp2/transport/frame_rst_stream.h",
  1608. "src/core/ext/transport/chttp2/transport/frame_settings.h",
  1609. "src/core/ext/transport/chttp2/transport/frame_window_update.h",
  1610. "src/core/ext/transport/chttp2/transport/hpack_encoder.h",
  1611. "src/core/ext/transport/chttp2/transport/hpack_parser.h",
  1612. "src/core/ext/transport/chttp2/transport/hpack_table.h",
  1613. "src/core/ext/transport/chttp2/transport/http2_settings.h",
  1614. "src/core/ext/transport/chttp2/transport/huffsyms.h",
  1615. "src/core/ext/transport/chttp2/transport/incoming_metadata.h",
  1616. "src/core/ext/transport/chttp2/transport/internal.h",
  1617. "src/core/ext/transport/chttp2/transport/stream_map.h",
  1618. "src/core/ext/transport/chttp2/transport/varint.h",
  1619. ],
  1620. language = "c++",
  1621. deps = [
  1622. "gpr_base",
  1623. "grpc_base",
  1624. "grpc_http_filters",
  1625. "grpc_transport_chttp2_alpn",
  1626. ],
  1627. )
  1628. grpc_cc_library(
  1629. name = "grpc_transport_chttp2_alpn",
  1630. srcs = [
  1631. "src/core/ext/transport/chttp2/alpn/alpn.cc",
  1632. ],
  1633. hdrs = [
  1634. "src/core/ext/transport/chttp2/alpn/alpn.h",
  1635. ],
  1636. language = "c++",
  1637. deps = [
  1638. "gpr",
  1639. ],
  1640. )
  1641. grpc_cc_library(
  1642. name = "grpc_transport_chttp2_client_connector",
  1643. srcs = [
  1644. "src/core/ext/transport/chttp2/client/authority.cc",
  1645. "src/core/ext/transport/chttp2/client/chttp2_connector.cc",
  1646. ],
  1647. hdrs = [
  1648. "src/core/ext/transport/chttp2/client/authority.h",
  1649. "src/core/ext/transport/chttp2/client/chttp2_connector.h",
  1650. ],
  1651. language = "c++",
  1652. deps = [
  1653. "grpc_base",
  1654. "grpc_client_channel",
  1655. "grpc_transport_chttp2",
  1656. ],
  1657. )
  1658. grpc_cc_library(
  1659. name = "grpc_transport_chttp2_client_insecure",
  1660. srcs = [
  1661. "src/core/ext/transport/chttp2/client/insecure/channel_create.cc",
  1662. "src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc",
  1663. ],
  1664. language = "c++",
  1665. deps = [
  1666. "grpc_base",
  1667. "grpc_client_channel",
  1668. "grpc_transport_chttp2",
  1669. "grpc_transport_chttp2_client_connector",
  1670. ],
  1671. )
  1672. grpc_cc_library(
  1673. name = "grpc_transport_chttp2_client_secure",
  1674. srcs = [
  1675. "src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc",
  1676. ],
  1677. language = "c++",
  1678. deps = [
  1679. "grpc_base",
  1680. "grpc_client_channel",
  1681. "grpc_secure",
  1682. "grpc_transport_chttp2",
  1683. "grpc_transport_chttp2_client_connector",
  1684. ],
  1685. )
  1686. grpc_cc_library(
  1687. name = "grpc_transport_chttp2_server",
  1688. srcs = [
  1689. "src/core/ext/transport/chttp2/server/chttp2_server.cc",
  1690. ],
  1691. hdrs = [
  1692. "src/core/ext/transport/chttp2/server/chttp2_server.h",
  1693. ],
  1694. language = "c++",
  1695. deps = [
  1696. "grpc_base",
  1697. "grpc_transport_chttp2",
  1698. ],
  1699. )
  1700. grpc_cc_library(
  1701. name = "grpc_transport_chttp2_server_insecure",
  1702. srcs = [
  1703. "src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc",
  1704. "src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc",
  1705. ],
  1706. language = "c++",
  1707. deps = [
  1708. "grpc_base",
  1709. "grpc_transport_chttp2",
  1710. "grpc_transport_chttp2_server",
  1711. ],
  1712. )
  1713. grpc_cc_library(
  1714. name = "grpc_transport_chttp2_server_secure",
  1715. srcs = [
  1716. "src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc",
  1717. ],
  1718. language = "c++",
  1719. deps = [
  1720. "grpc_base",
  1721. "grpc_secure",
  1722. "grpc_transport_chttp2",
  1723. "grpc_transport_chttp2_server",
  1724. ],
  1725. )
  1726. grpc_cc_library(
  1727. name = "grpc_transport_cronet_client_secure",
  1728. srcs = [
  1729. "src/core/ext/transport/cronet/client/secure/cronet_channel_create.cc",
  1730. "src/core/ext/transport/cronet/transport/cronet_api_dummy.cc",
  1731. "src/core/ext/transport/cronet/transport/cronet_transport.cc",
  1732. ],
  1733. hdrs = [
  1734. "src/core/ext/transport/cronet/transport/cronet_transport.h",
  1735. "third_party/objective_c/Cronet/bidirectional_stream_c.h",
  1736. ],
  1737. language = "c++",
  1738. public_hdrs = [
  1739. "include/grpc/grpc_cronet.h",
  1740. "include/grpc/grpc_security.h",
  1741. "include/grpc/grpc_security_constants.h",
  1742. ],
  1743. deps = [
  1744. "grpc_base",
  1745. "grpc_transport_chttp2",
  1746. ],
  1747. )
  1748. grpc_cc_library(
  1749. name = "grpc_transport_inproc",
  1750. srcs = [
  1751. "src/core/ext/transport/inproc/inproc_plugin.cc",
  1752. "src/core/ext/transport/inproc/inproc_transport.cc",
  1753. ],
  1754. hdrs = [
  1755. "src/core/ext/transport/inproc/inproc_transport.h",
  1756. ],
  1757. language = "c++",
  1758. deps = [
  1759. "grpc_base",
  1760. ],
  1761. )
  1762. grpc_cc_library(
  1763. name = "tsi_interface",
  1764. srcs = [
  1765. "src/core/tsi/transport_security.cc",
  1766. ],
  1767. hdrs = [
  1768. "src/core/tsi/transport_security.h",
  1769. "src/core/tsi/transport_security_interface.h",
  1770. ],
  1771. language = "c++",
  1772. deps = [
  1773. "gpr",
  1774. "grpc_trace",
  1775. ],
  1776. )
  1777. grpc_cc_library(
  1778. name = "alts_frame_protector",
  1779. srcs = [
  1780. "src/core/tsi/alts/crypt/aes_gcm.cc",
  1781. "src/core/tsi/alts/crypt/gsec.cc",
  1782. "src/core/tsi/alts/frame_protector/alts_counter.cc",
  1783. "src/core/tsi/alts/frame_protector/alts_crypter.cc",
  1784. "src/core/tsi/alts/frame_protector/alts_frame_protector.cc",
  1785. "src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.cc",
  1786. "src/core/tsi/alts/frame_protector/alts_seal_privacy_integrity_crypter.cc",
  1787. "src/core/tsi/alts/frame_protector/alts_unseal_privacy_integrity_crypter.cc",
  1788. "src/core/tsi/alts/frame_protector/frame_handler.cc",
  1789. "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc",
  1790. "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc",
  1791. "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc",
  1792. "src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.cc",
  1793. "src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc",
  1794. ],
  1795. hdrs = [
  1796. "src/core/tsi/alts/crypt/gsec.h",
  1797. "src/core/tsi/alts/frame_protector/alts_counter.h",
  1798. "src/core/tsi/alts/frame_protector/alts_crypter.h",
  1799. "src/core/tsi/alts/frame_protector/alts_frame_protector.h",
  1800. "src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.h",
  1801. "src/core/tsi/alts/frame_protector/frame_handler.h",
  1802. "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h",
  1803. "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h",
  1804. "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol.h",
  1805. "src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.h",
  1806. "src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h",
  1807. "src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h",
  1808. "src/core/tsi/transport_security_grpc.h",
  1809. ],
  1810. external_deps = [
  1811. "libssl",
  1812. ],
  1813. language = "c++",
  1814. deps = [
  1815. "gpr",
  1816. "grpc_base",
  1817. "grpc_shadow_boringssl",
  1818. "tsi_interface",
  1819. ],
  1820. )
  1821. grpc_cc_library(
  1822. name = "alts_proto",
  1823. srcs = [
  1824. "src/core/tsi/alts/handshaker/altscontext.pb.c",
  1825. "src/core/tsi/alts/handshaker/handshaker.pb.c",
  1826. "src/core/tsi/alts/handshaker/transport_security_common.pb.c",
  1827. ],
  1828. hdrs = [
  1829. "src/core/tsi/alts/handshaker/altscontext.pb.h",
  1830. "src/core/tsi/alts/handshaker/handshaker.pb.h",
  1831. "src/core/tsi/alts/handshaker/transport_security_common.pb.h",
  1832. ],
  1833. external_deps = [
  1834. "nanopb",
  1835. ],
  1836. language = "c++",
  1837. )
  1838. grpc_cc_library(
  1839. name = "alts_util",
  1840. srcs = [
  1841. "src/core/lib/security/credentials/alts/check_gcp_environment.cc",
  1842. "src/core/lib/security/credentials/alts/check_gcp_environment_linux.cc",
  1843. "src/core/lib/security/credentials/alts/check_gcp_environment_no_op.cc",
  1844. "src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc",
  1845. "src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc",
  1846. "src/core/lib/security/credentials/alts/grpc_alts_credentials_options.cc",
  1847. "src/core/lib/security/credentials/alts/grpc_alts_credentials_server_options.cc",
  1848. "src/core/tsi/alts/handshaker/alts_handshaker_service_api.cc",
  1849. "src/core/tsi/alts/handshaker/alts_handshaker_service_api_util.cc",
  1850. "src/core/tsi/alts/handshaker/transport_security_common_api.cc",
  1851. ],
  1852. hdrs = [
  1853. "src/core/lib/security/credentials/alts/check_gcp_environment.h",
  1854. "src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h",
  1855. "src/core/tsi/alts/handshaker/alts_handshaker_service_api.h",
  1856. "src/core/tsi/alts/handshaker/alts_handshaker_service_api_util.h",
  1857. "src/core/tsi/alts/handshaker/transport_security_common_api.h",
  1858. ],
  1859. external_deps = [
  1860. "nanopb",
  1861. ],
  1862. language = "c++",
  1863. public_hdrs = GRPC_SECURE_PUBLIC_HDRS,
  1864. deps = [
  1865. "alts_proto",
  1866. "gpr",
  1867. "grpc_base",
  1868. ],
  1869. )
  1870. grpc_cc_library(
  1871. name = "tsi",
  1872. srcs = [
  1873. "src/core/tsi/alts/handshaker/alts_handshaker_client.cc",
  1874. "src/core/tsi/alts/handshaker/alts_shared_resource.cc",
  1875. "src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc",
  1876. "src/core/tsi/alts/handshaker/alts_tsi_utils.cc",
  1877. "src/core/tsi/fake_transport_security.cc",
  1878. "src/core/tsi/local_transport_security.cc",
  1879. "src/core/tsi/ssl/session_cache/ssl_session_boringssl.cc",
  1880. "src/core/tsi/ssl/session_cache/ssl_session_cache.cc",
  1881. "src/core/tsi/ssl/session_cache/ssl_session_openssl.cc",
  1882. "src/core/tsi/ssl_transport_security.cc",
  1883. "src/core/tsi/transport_security_grpc.cc",
  1884. ],
  1885. hdrs = [
  1886. "src/core/tsi/alts/handshaker/alts_handshaker_client.h",
  1887. "src/core/tsi/alts/handshaker/alts_shared_resource.h",
  1888. "src/core/tsi/alts/handshaker/alts_tsi_handshaker.h",
  1889. "src/core/tsi/alts/handshaker/alts_tsi_handshaker_private.h",
  1890. "src/core/tsi/alts/handshaker/alts_tsi_utils.h",
  1891. "src/core/tsi/fake_transport_security.h",
  1892. "src/core/tsi/local_transport_security.h",
  1893. "src/core/tsi/ssl/session_cache/ssl_session.h",
  1894. "src/core/tsi/ssl/session_cache/ssl_session_cache.h",
  1895. "src/core/tsi/ssl_transport_security.h",
  1896. "src/core/tsi/ssl_types.h",
  1897. "src/core/tsi/transport_security_grpc.h",
  1898. ],
  1899. external_deps = [
  1900. "libssl",
  1901. ],
  1902. language = "c++",
  1903. deps = [
  1904. "alts_frame_protector",
  1905. "alts_util",
  1906. "gpr",
  1907. "grpc_base",
  1908. "grpc_shadow_boringssl",
  1909. "grpc_transport_chttp2_client_insecure",
  1910. "tsi_interface",
  1911. ],
  1912. )
  1913. grpc_cc_library(
  1914. name = "grpc++_base",
  1915. srcs = GRPCXX_SRCS,
  1916. hdrs = GRPCXX_HDRS,
  1917. language = "c++",
  1918. public_hdrs = GRPCXX_PUBLIC_HDRS,
  1919. deps = [
  1920. "grpc",
  1921. "grpc++_codegen_base",
  1922. "health_proto",
  1923. ],
  1924. )
  1925. grpc_cc_library(
  1926. name = "grpc++_base_unsecure",
  1927. srcs = GRPCXX_SRCS,
  1928. hdrs = GRPCXX_HDRS,
  1929. language = "c++",
  1930. public_hdrs = GRPCXX_PUBLIC_HDRS,
  1931. deps = [
  1932. "grpc++_codegen_base",
  1933. "grpc_unsecure",
  1934. "health_proto",
  1935. ],
  1936. )
  1937. grpc_cc_library(
  1938. name = "grpc++_codegen_base",
  1939. language = "c++",
  1940. public_hdrs = [
  1941. "include/grpc++/impl/codegen/async_stream.h",
  1942. "include/grpc++/impl/codegen/async_unary_call.h",
  1943. "include/grpc++/impl/codegen/byte_buffer.h",
  1944. "include/grpc++/impl/codegen/call.h",
  1945. "include/grpc++/impl/codegen/call_hook.h",
  1946. "include/grpc++/impl/codegen/channel_interface.h",
  1947. "include/grpc++/impl/codegen/client_context.h",
  1948. "include/grpc++/impl/codegen/client_unary_call.h",
  1949. "include/grpc++/impl/codegen/completion_queue.h",
  1950. "include/grpc++/impl/codegen/completion_queue_tag.h",
  1951. "include/grpc++/impl/codegen/config.h",
  1952. "include/grpc++/impl/codegen/core_codegen_interface.h",
  1953. "include/grpc++/impl/codegen/create_auth_context.h",
  1954. "include/grpc++/impl/codegen/grpc_library.h",
  1955. "include/grpc++/impl/codegen/metadata_map.h",
  1956. "include/grpc++/impl/codegen/method_handler_impl.h",
  1957. "include/grpc++/impl/codegen/rpc_method.h",
  1958. "include/grpc++/impl/codegen/rpc_service_method.h",
  1959. "include/grpc++/impl/codegen/security/auth_context.h",
  1960. "include/grpc++/impl/codegen/serialization_traits.h",
  1961. "include/grpc++/impl/codegen/server_context.h",
  1962. "include/grpc++/impl/codegen/server_interface.h",
  1963. "include/grpc++/impl/codegen/service_type.h",
  1964. "include/grpc++/impl/codegen/slice.h",
  1965. "include/grpc++/impl/codegen/status.h",
  1966. "include/grpc++/impl/codegen/status_code_enum.h",
  1967. "include/grpc++/impl/codegen/string_ref.h",
  1968. "include/grpc++/impl/codegen/stub_options.h",
  1969. "include/grpc++/impl/codegen/sync_stream.h",
  1970. "include/grpc++/impl/codegen/time.h",
  1971. "include/grpcpp/impl/codegen/async_generic_service.h",
  1972. "include/grpcpp/impl/codegen/async_stream.h",
  1973. "include/grpcpp/impl/codegen/async_unary_call.h",
  1974. "include/grpcpp/impl/codegen/byte_buffer.h",
  1975. "include/grpcpp/impl/codegen/call.h",
  1976. "include/grpcpp/impl/codegen/call_hook.h",
  1977. "include/grpcpp/impl/codegen/call_op_set.h",
  1978. "include/grpcpp/impl/codegen/call_op_set_interface.h",
  1979. "include/grpcpp/impl/codegen/callback_common.h",
  1980. "include/grpcpp/impl/codegen/channel_interface.h",
  1981. "include/grpcpp/impl/codegen/client_callback.h",
  1982. "include/grpcpp/impl/codegen/client_context.h",
  1983. "include/grpcpp/impl/codegen/client_interceptor.h",
  1984. "include/grpcpp/impl/codegen/client_unary_call.h",
  1985. "include/grpcpp/impl/codegen/completion_queue.h",
  1986. "include/grpcpp/impl/codegen/completion_queue_tag.h",
  1987. "include/grpcpp/impl/codegen/config.h",
  1988. "include/grpcpp/impl/codegen/core_codegen_interface.h",
  1989. "include/grpcpp/impl/codegen/create_auth_context.h",
  1990. "include/grpcpp/impl/codegen/grpc_library.h",
  1991. "include/grpcpp/impl/codegen/intercepted_channel.h",
  1992. "include/grpcpp/impl/codegen/interceptor.h",
  1993. "include/grpcpp/impl/codegen/interceptor_common.h",
  1994. "include/grpcpp/impl/codegen/metadata_map.h",
  1995. "include/grpcpp/impl/codegen/method_handler_impl.h",
  1996. "include/grpcpp/impl/codegen/rpc_method.h",
  1997. "include/grpcpp/impl/codegen/rpc_service_method.h",
  1998. "include/grpcpp/impl/codegen/security/auth_context.h",
  1999. "include/grpcpp/impl/codegen/serialization_traits.h",
  2000. "include/grpcpp/impl/codegen/server_callback.h",
  2001. "include/grpcpp/impl/codegen/server_context.h",
  2002. "include/grpcpp/impl/codegen/server_interceptor.h",
  2003. "include/grpcpp/impl/codegen/server_interface.h",
  2004. "include/grpcpp/impl/codegen/service_type.h",
  2005. "include/grpcpp/impl/codegen/slice.h",
  2006. "include/grpcpp/impl/codegen/status.h",
  2007. "include/grpcpp/impl/codegen/status_code_enum.h",
  2008. "include/grpcpp/impl/codegen/string_ref.h",
  2009. "include/grpcpp/impl/codegen/stub_options.h",
  2010. "include/grpcpp/impl/codegen/sync_stream.h",
  2011. "include/grpcpp/impl/codegen/time.h",
  2012. ],
  2013. deps = [
  2014. "grpc_codegen",
  2015. ],
  2016. )
  2017. grpc_cc_library(
  2018. name = "grpc++_codegen_base_src",
  2019. srcs = [
  2020. "src/cpp/codegen/codegen_init.cc",
  2021. ],
  2022. language = "c++",
  2023. deps = [
  2024. "grpc++_codegen_base",
  2025. ],
  2026. )
  2027. grpc_cc_library(
  2028. name = "grpc++_codegen_proto",
  2029. language = "c++",
  2030. public_hdrs = [
  2031. "include/grpc++/impl/codegen/proto_utils.h",
  2032. "include/grpcpp/impl/codegen/proto_buffer_reader.h",
  2033. "include/grpcpp/impl/codegen/proto_buffer_writer.h",
  2034. "include/grpcpp/impl/codegen/proto_utils.h",
  2035. ],
  2036. deps = [
  2037. "grpc++_codegen_base",
  2038. "grpc++_config_proto",
  2039. ],
  2040. )
  2041. grpc_cc_library(
  2042. name = "grpc++_config_proto",
  2043. external_deps = [
  2044. "protobuf_headers",
  2045. ],
  2046. language = "c++",
  2047. public_hdrs = [
  2048. "include/grpc++/impl/codegen/config_protobuf.h",
  2049. "include/grpcpp/impl/codegen/config_protobuf.h",
  2050. ],
  2051. )
  2052. grpc_cc_library(
  2053. name = "grpc++_reflection",
  2054. srcs = [
  2055. "src/cpp/ext/proto_server_reflection.cc",
  2056. "src/cpp/ext/proto_server_reflection_plugin.cc",
  2057. ],
  2058. hdrs = [
  2059. "src/cpp/ext/proto_server_reflection.h",
  2060. ],
  2061. language = "c++",
  2062. public_hdrs = [
  2063. "include/grpc++/ext/proto_server_reflection_plugin.h",
  2064. "include/grpcpp/ext/proto_server_reflection_plugin.h",
  2065. ],
  2066. deps = [
  2067. ":grpc++",
  2068. "//src/proto/grpc/reflection/v1alpha:reflection_proto",
  2069. ],
  2070. alwayslink = 1,
  2071. )
  2072. grpc_cc_library(
  2073. name = "grpcpp_channelz",
  2074. srcs = [
  2075. "src/cpp/server/channelz/channelz_service.cc",
  2076. "src/cpp/server/channelz/channelz_service_plugin.cc",
  2077. ],
  2078. hdrs = [
  2079. "src/cpp/server/channelz/channelz_service.h",
  2080. ],
  2081. language = "c++",
  2082. public_hdrs = [
  2083. "include/grpcpp/ext/channelz_service_plugin.h",
  2084. ],
  2085. deps = [
  2086. ":grpc++",
  2087. "//src/proto/grpc/channelz:channelz_proto",
  2088. ],
  2089. alwayslink = 1,
  2090. )
  2091. grpc_cc_library(
  2092. name = "grpc++_test",
  2093. public_hdrs = [
  2094. "include/grpc++/test/mock_stream.h",
  2095. "include/grpc++/test/server_context_test_spouse.h",
  2096. "include/grpcpp/test/mock_stream.h",
  2097. "include/grpcpp/test/server_context_test_spouse.h",
  2098. ],
  2099. deps = [
  2100. ":grpc++",
  2101. ],
  2102. )
  2103. grpc_cc_library(
  2104. name = "grpc_server_backward_compatibility",
  2105. srcs = [
  2106. "src/core/ext/filters/workarounds/workaround_utils.cc",
  2107. ],
  2108. hdrs = [
  2109. "src/core/ext/filters/workarounds/workaround_utils.h",
  2110. ],
  2111. language = "c++",
  2112. deps = [
  2113. "grpc_base",
  2114. ],
  2115. )
  2116. grpc_cc_library(
  2117. name = "grpc++_core_stats",
  2118. srcs = [
  2119. "src/cpp/util/core_stats.cc",
  2120. ],
  2121. hdrs = [
  2122. "src/cpp/util/core_stats.h",
  2123. ],
  2124. language = "c++",
  2125. deps = [
  2126. ":grpc++",
  2127. "//src/proto/grpc/core:stats_proto",
  2128. ],
  2129. )
  2130. grpc_cc_library(
  2131. name = "grpc_opencensus_plugin",
  2132. srcs = [
  2133. "src/cpp/ext/filters/census/channel_filter.cc",
  2134. "src/cpp/ext/filters/census/client_filter.cc",
  2135. "src/cpp/ext/filters/census/context.cc",
  2136. "src/cpp/ext/filters/census/grpc_plugin.cc",
  2137. "src/cpp/ext/filters/census/measures.cc",
  2138. "src/cpp/ext/filters/census/rpc_encoding.cc",
  2139. "src/cpp/ext/filters/census/server_filter.cc",
  2140. "src/cpp/ext/filters/census/views.cc",
  2141. ],
  2142. hdrs = [
  2143. "include/grpcpp/opencensus.h",
  2144. "src/cpp/ext/filters/census/channel_filter.h",
  2145. "src/cpp/ext/filters/census/client_filter.h",
  2146. "src/cpp/ext/filters/census/context.h",
  2147. "src/cpp/ext/filters/census/grpc_plugin.h",
  2148. "src/cpp/ext/filters/census/measures.h",
  2149. "src/cpp/ext/filters/census/rpc_encoding.h",
  2150. "src/cpp/ext/filters/census/server_filter.h",
  2151. ],
  2152. external_deps = [
  2153. "absl-base",
  2154. "absl-time",
  2155. "opencensus-trace",
  2156. "opencensus-stats",
  2157. ],
  2158. language = "c++",
  2159. deps = [
  2160. ":census",
  2161. ":grpc++",
  2162. ],
  2163. )
  2164. grpc_cc_library(
  2165. name = "grpc_shadow_boringssl",
  2166. hdrs = [
  2167. "src/core/tsi/grpc_shadow_boringssl.h",
  2168. ],
  2169. )
  2170. grpc_generate_one_off_targets()