52 Star 168 Fork 1

Gitee 极速下载/grpc-framework

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/grpc/grpc.git
克隆/下载
BUILD 150.57 KB
一键复制 编辑 原始数据 按行查看 历史
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242
# gRPC Bazel BUILD file.
#
# Copyright 2016 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@bazel_skylib//lib:selects.bzl", "selects")
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
load(
"//bazel:grpc_build_system.bzl",
"grpc_cc_library",
"grpc_clang_cl_settings",
"grpc_filegroup",
"grpc_generate_one_off_targets",
"grpc_upb_proto_library",
"grpc_upb_proto_reflection_library",
"python_config_settings",
)
licenses(["reciprocal"])
package(
default_visibility = ["//visibility:public"],
features = [
"-parse_headers",
"layering_check",
],
)
exports_files([
"LICENSE",
"etc/roots.pem",
])
exports_files(
glob(["include/**"]),
visibility = ["//:__subpackages__"],
)
config_setting(
name = "grpc_no_ares",
values = {"define": "grpc_no_ares=true"},
)
config_setting(
name = "grpc_no_xds_define",
values = {"define": "grpc_no_xds=true"},
)
config_setting(
name = "grpc_experiments_are_final_define",
values = {"define": "grpc_experiments_are_final=true"},
)
bool_flag(
name = "disable_grpc_rls",
build_setting_default = False,
)
grpc_clang_cl_settings()
config_setting(
name = "grpc_no_rls_flag",
flag_values = {":disable_grpc_rls": "true"},
)
# When gRPC is build as shared library, binder transport code might still
# get included even when user's code does not depend on it. In that case
# --define=grpc_no_binder=true can be used to disable binder transport
# related code to reduce binary size.
# For users using build system other than bazel, they can define
# GRPC_NO_BINDER to achieve the same effect.
config_setting(
name = "grpc_no_binder_define",
values = {"define": "grpc_no_binder=true"},
)
config_setting(
name = "android",
values = {"crosstool_top": "//external:android/crosstool"},
# TODO: Use constraint_values to detect android after Bazel 7.0 platforms migration is finished
# constraint_values = [ "@platforms//os:android" ],
)
config_setting(
name = "macos",
values = {"apple_platform_type": "macos"},
)
config_setting(
name = "ios",
values = {"apple_platform_type": "ios"},
)
config_setting(
name = "tvos",
values = {"apple_platform_type": "tvos"},
)
config_setting(
name = "visionos",
values = {"apple_platform_type": "visionos"},
)
config_setting(
name = "watchos",
values = {"apple_platform_type": "watchos"},
)
config_setting(
name = "systemd",
values = {"define": "use_systemd=true"},
)
selects.config_setting_group(
name = "grpc_no_xds",
match_any = [
":grpc_no_xds_define",
# In addition to disabling XDS support when --define=grpc_no_xds=true is
# specified, we also disable it on mobile platforms where it is not
# likely to be needed and where reducing the binary size is more
# important.
":android",
":ios",
],
)
selects.config_setting_group(
name = "grpc_no_binder",
match_any = [
":grpc_no_binder_define",
# We do not need binder on ios.
":ios",
],
)
selects.config_setting_group(
name = "grpc_no_rls",
match_any = [
":grpc_no_rls_flag",
# Disable RLS support on mobile platforms where it is not likely to be
# needed and where reducing the binary size is more important.
":android",
":ios",
],
)
selects.config_setting_group(
name = "grpc_experiments_are_final",
match_any = [
":grpc_experiments_are_final_define",
# In addition to disabling experiments when
# --define=grpc_experiments_are_final=true is specified, we also disable
# them on mobile platforms where runtime configuration of experiments is unlikely to be needed and where
# reducing the binary size is more important.
":android",
":ios",
],
)
# Fuzzers can be built as fuzzers or as tests
config_setting(
name = "grpc_build_fuzzers",
values = {"define": "grpc_build_fuzzers=true"},
)
config_setting(
name = "grpc_allow_exceptions",
values = {"define": "GRPC_ALLOW_EXCEPTIONS=1"},
)
config_setting(
name = "grpc_disallow_exceptions",
values = {"define": "GRPC_ALLOW_EXCEPTIONS=0"},
)
config_setting(
name = "remote_execution",
values = {"define": "GRPC_PORT_ISOLATED_RUNTIME=1"},
)
config_setting(
name = "windows",
values = {"cpu": "x64_windows"},
)
config_setting(
name = "windows_msvc",
values = {"cpu": "x64_windows_msvc"},
)
config_setting(
name = "mac",
values = {"cpu": "darwin"},
)
config_setting(
name = "mac_x86_64",
values = {"cpu": "darwin_x86_64"},
)
config_setting(
name = "mac_arm64",
values = {"cpu": "darwin_arm64"},
)
config_setting(
name = "use_strict_warning",
values = {"define": "use_strict_warning=true"},
)
config_setting(
name = "use_strict_warning_windows",
values = {"define": "use_strict_warning_windows=true"},
)
python_config_settings()
# This should be updated along with build_handwritten.yaml
g_stands_for = "gladiator" # @unused
core_version = "42.0.0" # @unused
version = "1.66.0-dev" # @unused
GPR_PUBLIC_HDRS = [
"include/grpc/support/alloc.h",
"include/grpc/support/atm_gcc_atomic.h",
"include/grpc/support/atm_gcc_sync.h",
"include/grpc/support/atm_windows.h",
"include/grpc/support/cpu.h",
"include/grpc/support/json.h",
"include/grpc/support/log.h",
"include/grpc/support/log_windows.h",
"include/grpc/support/metrics.h",
"include/grpc/support/port_platform.h",
"include/grpc/support/string_util.h",
"include/grpc/support/sync.h",
"include/grpc/support/sync_abseil.h",
"include/grpc/support/sync_custom.h",
"include/grpc/support/sync_generic.h",
"include/grpc/support/sync_posix.h",
"include/grpc/support/sync_windows.h",
"include/grpc/support/thd_id.h",
"include/grpc/support/time.h",
"include/grpc/impl/call.h",
"include/grpc/impl/codegen/atm.h",
"include/grpc/impl/codegen/atm_gcc_atomic.h",
"include/grpc/impl/codegen/atm_gcc_sync.h",
"include/grpc/impl/codegen/atm_windows.h",
"include/grpc/impl/codegen/fork.h",
"include/grpc/impl/codegen/gpr_types.h",
"include/grpc/impl/codegen/log.h",
"include/grpc/impl/codegen/port_platform.h",
"include/grpc/impl/codegen/sync.h",
"include/grpc/impl/codegen/sync_abseil.h",
"include/grpc/impl/codegen/sync_custom.h",
"include/grpc/impl/codegen/sync_generic.h",
"include/grpc/impl/codegen/sync_posix.h",
"include/grpc/impl/codegen/sync_windows.h",
]
GRPC_PUBLIC_HDRS = [
"include/grpc/grpc_audit_logging.h",
"include/grpc/grpc_crl_provider.h",
"include/grpc/byte_buffer.h",
"include/grpc/byte_buffer_reader.h",
"include/grpc/compression.h",
"include/grpc/fork.h",
"include/grpc/grpc.h",
"include/grpc/grpc_posix.h",
"include/grpc/grpc_security.h",
"include/grpc/grpc_security_constants.h",
"include/grpc/passive_listener.h",
"include/grpc/slice.h",
"include/grpc/slice_buffer.h",
"include/grpc/status.h",
"include/grpc/load_reporting.h",
"include/grpc/support/workaround_list.h",
"include/grpc/impl/codegen/byte_buffer.h",
"include/grpc/impl/codegen/byte_buffer_reader.h",
"include/grpc/impl/codegen/compression_types.h",
"include/grpc/impl/codegen/connectivity_state.h",
"include/grpc/impl/codegen/grpc_types.h",
"include/grpc/impl/codegen/propagation_bits.h",
"include/grpc/impl/codegen/status.h",
"include/grpc/impl/codegen/slice.h",
"include/grpc/impl/compression_types.h",
"include/grpc/impl/connectivity_state.h",
"include/grpc/impl/grpc_types.h",
"include/grpc/impl/propagation_bits.h",
"include/grpc/impl/slice_type.h",
]
GRPC_PUBLIC_EVENT_ENGINE_HDRS = [
"include/grpc/event_engine/endpoint_config.h",
"include/grpc/event_engine/event_engine.h",
"include/grpc/event_engine/extensible.h",
"include/grpc/event_engine/port.h",
"include/grpc/event_engine/memory_allocator.h",
"include/grpc/event_engine/memory_request.h",
"include/grpc/event_engine/internal/memory_allocator_impl.h",
"include/grpc/event_engine/slice.h",
"include/grpc/event_engine/slice_buffer.h",
"include/grpc/event_engine/internal/slice_cast.h",
]
GRPCXX_SRCS = [
"src/cpp/client/call_credentials.cc",
"src/cpp/client/channel_cc.cc",
"src/cpp/client/channel_credentials.cc",
"src/cpp/client/client_callback.cc",
"src/cpp/client/client_context.cc",
"src/cpp/client/client_interceptor.cc",
"src/cpp/client/client_stats_interceptor.cc",
"src/cpp/client/create_channel.cc",
"src/cpp/client/create_channel_internal.cc",
"src/cpp/client/create_channel_posix.cc",
"src/cpp/common/alarm.cc",
"src/cpp/common/channel_arguments.cc",
"src/cpp/common/completion_queue_cc.cc",
"src/cpp/common/resource_quota_cc.cc",
"src/cpp/common/rpc_method.cc",
"src/cpp/common/version_cc.cc",
"src/cpp/common/validate_service_config.cc",
"src/cpp/server/async_generic_service.cc",
"src/cpp/server/channel_argument_option.cc",
"src/cpp/server/create_default_thread_pool.cc",
"src/cpp/server/external_connection_acceptor_impl.cc",
"src/cpp/server/health/default_health_check_service.cc",
"src/cpp/server/health/health_check_service.cc",
"src/cpp/server/health/health_check_service_server_builder_option.cc",
"src/cpp/server/server_builder.cc",
"src/cpp/server/server_callback.cc",
"src/cpp/server/server_cc.cc",
"src/cpp/server/server_context.cc",
"src/cpp/server/server_credentials.cc",
"src/cpp/server/server_posix.cc",
"src/cpp/thread_manager/thread_manager.cc",
"src/cpp/util/byte_buffer_cc.cc",
"src/cpp/util/string_ref.cc",
"src/cpp/util/time_cc.cc",
]
GRPCXX_HDRS = [
"src/cpp/client/create_channel_internal.h",
"src/cpp/client/client_stats_interceptor.h",
"src/cpp/server/dynamic_thread_pool.h",
"src/cpp/server/external_connection_acceptor_impl.h",
"src/cpp/server/health/default_health_check_service.h",
"src/cpp/server/thread_pool_interface.h",
"src/cpp/thread_manager/thread_manager.h",
]
GRPCXX_PUBLIC_HDRS = [
"include/grpc++/alarm.h",
"include/grpc++/channel.h",
"include/grpc++/client_context.h",
"include/grpc++/completion_queue.h",
"include/grpc++/create_channel.h",
"include/grpc++/create_channel_posix.h",
"include/grpc++/ext/health_check_service_server_builder_option.h",
"include/grpc++/generic/async_generic_service.h",
"include/grpc++/generic/generic_stub.h",
"include/grpc++/grpc++.h",
"include/grpc++/health_check_service_interface.h",
"include/grpc++/impl/call.h",
"include/grpc++/impl/channel_argument_option.h",
"include/grpc++/impl/client_unary_call.h",
"include/grpc++/impl/grpc_library.h",
"include/grpc++/impl/method_handler_impl.h",
"include/grpc++/impl/rpc_method.h",
"include/grpc++/impl/rpc_service_method.h",
"include/grpc++/impl/serialization_traits.h",
"include/grpc++/impl/server_builder_option.h",
"include/grpc++/impl/server_builder_plugin.h",
"include/grpc++/impl/server_initializer.h",
"include/grpc++/impl/service_type.h",
"include/grpc++/security/auth_context.h",
"include/grpc++/resource_quota.h",
"include/grpc++/security/auth_metadata_processor.h",
"include/grpc++/security/credentials.h",
"include/grpc++/security/server_credentials.h",
"include/grpc++/server.h",
"include/grpc++/server_builder.h",
"include/grpc++/server_context.h",
"include/grpc++/server_posix.h",
"include/grpc++/support/async_stream.h",
"include/grpc++/support/async_unary_call.h",
"include/grpc++/support/byte_buffer.h",
"include/grpc++/support/channel_arguments.h",
"include/grpc++/support/config.h",
"include/grpc++/support/slice.h",
"include/grpc++/support/status.h",
"include/grpc++/support/status_code_enum.h",
"include/grpc++/support/string_ref.h",
"include/grpc++/support/stub_options.h",
"include/grpc++/support/sync_stream.h",
"include/grpc++/support/time.h",
"include/grpcpp/alarm.h",
"include/grpcpp/channel.h",
"include/grpcpp/client_context.h",
"include/grpcpp/completion_queue.h",
"include/grpcpp/create_channel.h",
"include/grpcpp/create_channel_posix.h",
"include/grpcpp/ext/health_check_service_server_builder_option.h",
"include/grpcpp/generic/async_generic_service.h",
"include/grpcpp/generic/callback_generic_service.h",
"include/grpcpp/generic/generic_stub.h",
"include/grpcpp/generic/generic_stub_callback.h",
"include/grpcpp/grpcpp.h",
"include/grpcpp/health_check_service_interface.h",
"include/grpcpp/impl/call_hook.h",
"include/grpcpp/impl/call_op_set_interface.h",
"include/grpcpp/impl/call_op_set.h",
"include/grpcpp/impl/call.h",
"include/grpcpp/impl/channel_argument_option.h",
"include/grpcpp/impl/channel_interface.h",
"include/grpcpp/impl/client_unary_call.h",
"include/grpcpp/impl/completion_queue_tag.h",
"include/grpcpp/impl/create_auth_context.h",
"include/grpcpp/impl/delegating_channel.h",
"include/grpcpp/impl/grpc_library.h",
"include/grpcpp/impl/intercepted_channel.h",
"include/grpcpp/impl/interceptor_common.h",
"include/grpcpp/impl/metadata_map.h",
"include/grpcpp/impl/method_handler_impl.h",
"include/grpcpp/impl/rpc_method.h",
"include/grpcpp/impl/rpc_service_method.h",
"include/grpcpp/impl/serialization_traits.h",
"include/grpcpp/impl/server_builder_option.h",
"include/grpcpp/impl/server_builder_plugin.h",
"include/grpcpp/impl/server_callback_handlers.h",
"include/grpcpp/impl/server_initializer.h",
"include/grpcpp/impl/service_type.h",
"include/grpcpp/impl/status.h",
"include/grpcpp/impl/sync.h",
"include/grpcpp/passive_listener.h",
"include/grpcpp/resource_quota.h",
"include/grpcpp/security/audit_logging.h",
"include/grpcpp/security/tls_crl_provider.h",
"include/grpcpp/security/auth_context.h",
"include/grpcpp/security/auth_metadata_processor.h",
"include/grpcpp/security/credentials.h",
"include/grpcpp/security/server_credentials.h",
"include/grpcpp/security/tls_certificate_provider.h",
"include/grpcpp/security/authorization_policy_provider.h",
"include/grpcpp/security/tls_certificate_verifier.h",
"include/grpcpp/security/tls_credentials_options.h",
"include/grpcpp/server.h",
"include/grpcpp/server_builder.h",
"include/grpcpp/server_context.h",
"include/grpcpp/server_interface.h",
"include/grpcpp/server_posix.h",
"include/grpcpp/version_info.h",
"include/grpcpp/support/async_stream.h",
"include/grpcpp/support/async_unary_call.h",
"include/grpcpp/support/byte_buffer.h",
"include/grpcpp/support/callback_common.h",
"include/grpcpp/support/channel_arguments.h",
"include/grpcpp/support/client_callback.h",
"include/grpcpp/support/client_interceptor.h",
"include/grpcpp/support/config.h",
"include/grpcpp/support/interceptor.h",
"include/grpcpp/support/message_allocator.h",
"include/grpcpp/support/method_handler.h",
"include/grpcpp/support/proto_buffer_reader.h",
"include/grpcpp/support/proto_buffer_writer.h",
"include/grpcpp/support/server_callback.h",
"include/grpcpp/support/server_interceptor.h",
"include/grpcpp/support/slice.h",
"include/grpcpp/support/status.h",
"include/grpcpp/support/status_code_enum.h",
"include/grpcpp/support/string_ref.h",
"include/grpcpp/support/stub_options.h",
"include/grpcpp/support/sync_stream.h",
"include/grpcpp/support/time.h",
"include/grpcpp/support/validate_service_config.h",
"include/grpc++/impl/codegen/async_stream.h",
"include/grpc++/impl/codegen/async_unary_call.h",
"include/grpc++/impl/codegen/byte_buffer.h",
"include/grpc++/impl/codegen/call_hook.h",
"include/grpc++/impl/codegen/call.h",
"include/grpc++/impl/codegen/channel_interface.h",
"include/grpc++/impl/codegen/client_context.h",
"include/grpc++/impl/codegen/client_unary_call.h",
"include/grpc++/impl/codegen/completion_queue_tag.h",
"include/grpc++/impl/codegen/completion_queue.h",
"include/grpc++/impl/codegen/config.h",
"include/grpc++/impl/codegen/create_auth_context.h",
"include/grpc++/impl/codegen/metadata_map.h",
"include/grpc++/impl/codegen/method_handler_impl.h",
"include/grpc++/impl/codegen/rpc_method.h",
"include/grpc++/impl/codegen/rpc_service_method.h",
"include/grpc++/impl/codegen/security/auth_context.h",
"include/grpc++/impl/codegen/serialization_traits.h",
"include/grpc++/impl/codegen/server_context.h",
"include/grpc++/impl/codegen/server_interface.h",
"include/grpc++/impl/codegen/service_type.h",
"include/grpc++/impl/codegen/slice.h",
"include/grpc++/impl/codegen/status_code_enum.h",
"include/grpc++/impl/codegen/status.h",
"include/grpc++/impl/codegen/string_ref.h",
"include/grpc++/impl/codegen/stub_options.h",
"include/grpc++/impl/codegen/sync_stream.h",
"include/grpc++/impl/codegen/time.h",
"include/grpcpp/impl/codegen/async_generic_service.h",
"include/grpcpp/impl/codegen/async_stream.h",
"include/grpcpp/impl/codegen/async_unary_call.h",
"include/grpcpp/impl/codegen/byte_buffer.h",
"include/grpcpp/impl/codegen/call_hook.h",
"include/grpcpp/impl/codegen/call_op_set_interface.h",
"include/grpcpp/impl/codegen/call_op_set.h",
"include/grpcpp/impl/codegen/call.h",
"include/grpcpp/impl/codegen/callback_common.h",
"include/grpcpp/impl/codegen/channel_interface.h",
"include/grpcpp/impl/codegen/client_callback.h",
"include/grpcpp/impl/codegen/client_context.h",
"include/grpcpp/impl/codegen/client_interceptor.h",
"include/grpcpp/impl/codegen/client_unary_call.h",
"include/grpcpp/impl/codegen/completion_queue_tag.h",
"include/grpcpp/impl/codegen/completion_queue.h",
"include/grpcpp/impl/codegen/config.h",
"include/grpcpp/impl/codegen/create_auth_context.h",
"include/grpcpp/impl/codegen/delegating_channel.h",
"include/grpcpp/impl/codegen/intercepted_channel.h",
"include/grpcpp/impl/codegen/interceptor_common.h",
"include/grpcpp/impl/codegen/interceptor.h",
"include/grpcpp/impl/codegen/message_allocator.h",
"include/grpcpp/impl/codegen/metadata_map.h",
"include/grpcpp/impl/codegen/method_handler_impl.h",
"include/grpcpp/impl/codegen/method_handler.h",
"include/grpcpp/impl/codegen/rpc_method.h",
"include/grpcpp/impl/codegen/rpc_service_method.h",
"include/grpcpp/impl/codegen/security/auth_context.h",
"include/grpcpp/impl/codegen/serialization_traits.h",
"include/grpcpp/impl/codegen/server_callback_handlers.h",
"include/grpcpp/impl/codegen/server_callback.h",
"include/grpcpp/impl/codegen/server_context.h",
"include/grpcpp/impl/codegen/server_interceptor.h",
"include/grpcpp/impl/codegen/server_interface.h",
"include/grpcpp/impl/codegen/service_type.h",
"include/grpcpp/impl/codegen/slice.h",
"include/grpcpp/impl/codegen/status_code_enum.h",
"include/grpcpp/impl/codegen/status.h",
"include/grpcpp/impl/codegen/string_ref.h",
"include/grpcpp/impl/codegen/stub_options.h",
"include/grpcpp/impl/codegen/sync_stream.h",
"include/grpcpp/impl/codegen/time.h",
"include/grpcpp/impl/codegen/sync.h",
]
grpc_cc_library(
name = "grpc_unsecure",
srcs = [
"//src/core:lib/surface/init.cc",
"//src/core:plugin_registry/grpc_plugin_registry.cc",
"//src/core:plugin_registry/grpc_plugin_registry_noextra.cc",
],
defines = ["GRPC_NO_XDS"],
external_deps = [
"absl/base:core_headers",
"absl/log:log",
],
language = "c++",
public_hdrs = GRPC_PUBLIC_HDRS,
tags = [
"nofixdeps",
],
visibility = ["@grpc:public"],
deps = [
"api_trace",
"channel_arg_names",
"channel_stack_builder",
"config",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_client_channel",
"grpc_common",
"grpc_http_filters",
"grpc_security_base",
"grpc_trace",
"http_connect_handshaker",
"iomgr_timer",
"server",
"//src/core:channel_args",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:client_channel_backup_poller",
"//src/core:default_event_engine",
"//src/core:endpoint_info_handshaker",
"//src/core:experiments",
"//src/core:forkable",
"//src/core:grpc_authorization_base",
"//src/core:http_proxy_mapper",
"//src/core:init_internally",
"//src/core:posix_event_engine_timer_manager",
"//src/core:server_call_tracer_filter",
"//src/core:service_config_channel_arg_filter",
"//src/core:slice",
"//src/core:tcp_connect_handshaker",
],
)
GRPC_XDS_TARGETS = [
"//src/core:grpc_lb_policy_cds",
"//src/core:grpc_lb_policy_xds_cluster_impl",
"//src/core:grpc_lb_policy_xds_cluster_manager",
"//src/core:grpc_lb_policy_xds_override_host",
"//src/core:grpc_lb_policy_xds_wrr_locality",
"//src/core:grpc_lb_policy_ring_hash",
"//src/core:grpc_resolver_xds",
"//src/core:grpc_resolver_c2p",
"//src/core:grpc_xds_server_config_fetcher",
"//src/core:grpc_stateful_session_filter",
# Not xDS-specific but currently only used by xDS.
"//src/core:channel_creds_registry_init",
]
grpc_cc_library(
name = "grpc",
srcs = [
"//src/core:lib/surface/init.cc",
"//src/core:plugin_registry/grpc_plugin_registry.cc",
"//src/core:plugin_registry/grpc_plugin_registry_extra.cc",
],
defines = select({
":grpc_no_xds": ["GRPC_NO_XDS"],
"//conditions:default": [],
}),
external_deps = [
"absl/base:core_headers",
"absl/log:log",
],
language = "c++",
public_hdrs = GRPC_PUBLIC_HDRS,
select_deps = [
{
":grpc_no_xds": [],
"//conditions:default": GRPC_XDS_TARGETS,
},
],
tags = [
"nofixdeps",
],
visibility = [
"@grpc:public",
],
deps = [
"api_trace",
"channel_arg_names",
"channel_stack_builder",
"config",
"exec_ctx",
"gpr",
"grpc_alts_credentials",
"grpc_base",
"grpc_client_channel",
"grpc_common",
"grpc_credentials_util",
"grpc_http_filters",
"grpc_jwt_credentials",
"grpc_public_hdrs",
"grpc_security_base",
"grpc_trace",
"http_connect_handshaker",
"httpcli",
"iomgr_timer",
"promise",
"ref_counted_ptr",
"server",
"sockaddr_utils",
"tsi_base",
"uri_parser",
"//src/core:channel_args",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:client_channel_backup_poller",
"//src/core:default_event_engine",
"//src/core:endpoint_info_handshaker",
"//src/core:experiments",
"//src/core:forkable",
"//src/core:grpc_authorization_base",
"//src/core:grpc_external_account_credentials",
"//src/core:grpc_fake_credentials",
"//src/core:grpc_google_default_credentials",
"//src/core:grpc_iam_credentials",
"//src/core:grpc_insecure_credentials",
"//src/core:grpc_local_credentials",
"//src/core:grpc_oauth2_credentials",
"//src/core:grpc_ssl_credentials",
"//src/core:grpc_tls_credentials",
"//src/core:grpc_transport_chttp2_alpn",
"//src/core:http_proxy_mapper",
"//src/core:httpcli_ssl_credentials",
"//src/core:init_internally",
"//src/core:json",
"//src/core:posix_event_engine_timer_manager",
"//src/core:ref_counted",
"//src/core:server_call_tracer_filter",
"//src/core:service_config_channel_arg_filter",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:tcp_connect_handshaker",
"//src/core:useful",
],
)
grpc_cc_library(
name = "gpr",
srcs = [
"//src/core:lib/gprpp/crash.cc",
"//src/core:lib/gprpp/fork.cc",
"//src/core:lib/gprpp/host_port.cc",
"//src/core:lib/gprpp/mpscq.cc",
"//src/core:lib/gprpp/posix/stat.cc",
"//src/core:lib/gprpp/posix/thd.cc",
"//src/core:lib/gprpp/time_util.cc",
"//src/core:lib/gprpp/windows/stat.cc",
"//src/core:lib/gprpp/windows/thd.cc",
"//src/core:util/alloc.cc",
"//src/core:util/android/log.cc",
"//src/core:util/iphone/cpu.cc",
"//src/core:util/linux/cpu.cc",
"//src/core:util/linux/log.cc",
"//src/core:util/log.cc",
"//src/core:util/msys/tmpfile.cc",
"//src/core:util/posix/cpu.cc",
"//src/core:util/posix/log.cc",
"//src/core:util/posix/string.cc",
"//src/core:util/posix/sync.cc",
"//src/core:util/posix/time.cc",
"//src/core:util/posix/tmpfile.cc",
"//src/core:util/string.cc",
"//src/core:util/sync.cc",
"//src/core:util/sync_abseil.cc",
"//src/core:util/time.cc",
"//src/core:util/time_precise.cc",
"//src/core:util/windows/cpu.cc",
"//src/core:util/windows/log.cc",
"//src/core:util/windows/string.cc",
"//src/core:util/windows/string_util.cc",
"//src/core:util/windows/sync.cc",
"//src/core:util/windows/time.cc",
"//src/core:util/windows/tmpfile.cc",
],
hdrs = [
"//src/core:lib/gprpp/crash.h",
"//src/core:lib/gprpp/fork.h",
"//src/core:lib/gprpp/host_port.h",
"//src/core:lib/gprpp/memory.h",
"//src/core:lib/gprpp/mpscq.h",
"//src/core:lib/gprpp/stat.h",
"//src/core:lib/gprpp/sync.h",
"//src/core:lib/gprpp/thd.h",
"//src/core:lib/gprpp/time_util.h",
"//src/core:util/alloc.h",
"//src/core:util/string.h",
"//src/core:util/time_precise.h",
"//src/core:util/tmpfile.h",
],
external_deps = [
"absl/base",
"absl/base:core_headers",
"absl/base:log_severity",
"absl/functional:any_invocable",
"absl/log:check",
"absl/log:globals",
"absl/log:log",
"absl/memory",
"absl/random",
"absl/status",
"absl/strings",
"absl/strings:cord",
"absl/strings:str_format",
"absl/synchronization",
"absl/time:time",
"absl/types:optional",
],
language = "c++",
public_hdrs = GPR_PUBLIC_HDRS,
tags = [
"nofixdeps",
],
visibility = ["@grpc:public"],
deps = [
"config_vars",
"debug_location",
"//src/core:construct_destruct",
"//src/core:env",
"//src/core:event_engine_thread_local",
"//src/core:examine_stack",
"//src/core:gpr_atm",
"//src/core:no_destruct",
"//src/core:strerror",
"//src/core:tchar",
"//src/core:useful",
],
)
grpc_cc_library(
name = "gpr_public_hdrs",
hdrs = GPR_PUBLIC_HDRS,
external_deps = [
"absl/strings",
"absl/types:variant",
],
tags = [
"avoid_dep",
"nofixdeps",
],
visibility = ["@grpc:gpr_public_hdrs"],
)
grpc_cc_library(
name = "cpp_impl_of",
hdrs = ["//src/core:lib/gprpp/cpp_impl_of.h"],
language = "c++",
)
grpc_cc_library(
name = "grpc_common",
defines = select({
"grpc_no_rls": ["GRPC_NO_RLS"],
"//conditions:default": [],
}),
language = "c++",
select_deps = [
{
"grpc_no_rls": [],
"//conditions:default": ["//src/core:grpc_lb_policy_rls"],
},
],
tags = ["nofixdeps"],
deps = [
"grpc_base",
# standard plugins
"census",
"//src/core:grpc_backend_metric_filter",
"//src/core:grpc_client_authority_filter",
"//src/core:grpc_lb_policy_grpclb",
"//src/core:grpc_lb_policy_outlier_detection",
"//src/core:grpc_lb_policy_pick_first",
"//src/core:grpc_lb_policy_priority",
"//src/core:grpc_lb_policy_round_robin",
"//src/core:grpc_lb_policy_weighted_round_robin",
"//src/core:grpc_lb_policy_weighted_target",
"//src/core:grpc_channel_idle_filter",
"//src/core:grpc_message_size_filter",
"//src/core:grpc_resolver_binder",
"grpc_resolver_dns_ares",
"grpc_resolver_fake",
"//src/core:grpc_resolver_dns_native",
"//src/core:grpc_resolver_sockaddr",
"//src/core:grpc_transport_chttp2_client_connector",
"//src/core:grpc_transport_chttp2_server",
"//src/core:grpc_transport_inproc",
"//src/core:grpc_fault_injection_filter",
"//src/core:grpc_resolver_dns_plugin",
],
)
grpc_cc_library(
name = "grpc_public_hdrs",
hdrs = GRPC_PUBLIC_HDRS + GRPC_PUBLIC_EVENT_ENGINE_HDRS,
external_deps = [
"absl/status:statusor",
"absl/strings",
],
tags = [
"avoid_dep",
"nofixdeps",
],
visibility = ["@grpc:grpc_public_hdrs"],
deps = [
"channel_arg_names",
"gpr_public_hdrs",
],
)
grpc_cc_library(
name = "grpc++_public_hdrs",
hdrs = GRPCXX_PUBLIC_HDRS,
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/log:absl_check",
"absl/log:absl_log",
"absl/strings:cord",
"absl/synchronization",
"protobuf_headers",
"protobuf",
],
tags = [
"avoid_dep",
"nofixdeps",
],
visibility = ["@grpc:grpc++_public_hdrs"],
deps = [
"grpc_public_hdrs",
"//src/core:gpr_atm",
],
)
grpc_cc_library(
name = "channel_arg_names",
hdrs = ["include/grpc/impl/channel_arg_names.h"],
)
grpc_cc_library(
name = "grpc++",
hdrs = [
"src/cpp/client/secure_credentials.h",
"src/cpp/common/secure_auth_context.h",
"src/cpp/server/secure_server_credentials.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/log:absl_check",
"absl/log:absl_log",
"absl/strings:cord",
],
language = "c++",
public_hdrs = GRPCXX_PUBLIC_HDRS,
select_deps = [
{
":grpc_no_xds": [],
"//conditions:default": [
"grpc++_xds_client",
"grpc++_xds_server",
],
},
{
"grpc_no_binder": [],
"//conditions:default": [
"grpc++_binder",
],
},
],
tags = ["nofixdeps"],
visibility = ["@grpc:public"],
deps = [
"grpc++_base",
"//src/core:gpr_atm",
"//src/core:slice",
],
)
grpc_cc_library(
name = "grpc_cronet_hdrs",
hdrs = [
"include/grpc/grpc_cronet.h",
],
deps = [
"gpr_public_hdrs",
"grpc_base",
],
)
grpc_cc_library(
name = "grpc++_cronet_credentials",
srcs = [
"src/cpp/client/cronet_credentials.cc",
],
hdrs = [
"include/grpcpp/security/cronet_credentials.h",
],
language = "c++",
deps = [
"grpc++_base",
"grpc_cronet_hdrs",
"grpc_public_hdrs",
],
)
# This target pulls in a dependency on RE2 and should not be linked into grpc by default for binary-size reasons.
grpc_cc_library(
name = "grpc_authorization_provider",
srcs = [
"//src/core:lib/security/authorization/grpc_authorization_policy_provider.cc",
"//src/core:lib/security/authorization/rbac_translator.cc",
],
hdrs = [
"//src/core:lib/security/authorization/grpc_authorization_policy_provider.h",
"//src/core:lib/security/authorization/rbac_translator.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
],
language = "c++",
deps = [
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"ref_counted_ptr",
"//src/core:error",
"//src/core:grpc_audit_logging",
"//src/core:grpc_authorization_base",
"//src/core:grpc_matchers",
"//src/core:grpc_rbac_engine",
"//src/core:json",
"//src/core:json_reader",
"//src/core:load_file",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:status_helper",
"//src/core:useful",
],
)
# This target pulls in a dependency on RE2 and should not be linked into grpc by default for binary-size reasons.
grpc_cc_library(
name = "grpc++_authorization_provider",
srcs = [
"src/cpp/server/authorization_policy_provider.cc",
],
hdrs = [
"include/grpcpp/security/authorization_policy_provider.h",
],
language = "c++",
tags = ["nofixdeps"],
deps = [
"gpr",
"grpc++",
"grpc++_public_hdrs",
"grpc_authorization_provider",
"grpc_public_hdrs",
],
)
# This target pulls in a dependency on RE2 and should not be linked into grpc by default for binary-size reasons.
grpc_cc_library(
name = "grpc_cel_engine",
srcs = [
"//src/core:lib/security/authorization/cel_authorization_engine.cc",
],
hdrs = [
"//src/core:lib/security/authorization/cel_authorization_engine.h",
],
external_deps = [
"absl/container:flat_hash_set",
"absl/log:log",
"absl/strings",
"absl/types:optional",
"absl/types:span",
"@com_google_protobuf//upb:base",
"@com_google_protobuf//upb:mem",
"@com_google_protobuf//upb:message",
],
language = "c++",
deps = [
"envoy_config_rbac_upb",
"google_api_expr_v1alpha1_syntax_upb",
"gpr",
"grpc_mock_cel",
"//src/core:grpc_authorization_base",
],
)
grpc_cc_library(
name = "grpc++_binder",
srcs = [
"//src/core:ext/transport/binder/client/binder_connector.cc",
"//src/core:ext/transport/binder/client/channel_create.cc",
"//src/core:ext/transport/binder/client/channel_create_impl.cc",
"//src/core:ext/transport/binder/client/connection_id_generator.cc",
"//src/core:ext/transport/binder/client/endpoint_binder_pool.cc",
"//src/core:ext/transport/binder/client/jni_utils.cc",
"//src/core:ext/transport/binder/client/security_policy_setting.cc",
"//src/core:ext/transport/binder/security_policy/binder_security_policy.cc",
"//src/core:ext/transport/binder/server/binder_server.cc",
"//src/core:ext/transport/binder/server/binder_server_credentials.cc",
"//src/core:ext/transport/binder/transport/binder_transport.cc",
"//src/core:ext/transport/binder/utils/ndk_binder.cc",
"//src/core:ext/transport/binder/utils/transport_stream_receiver_impl.cc",
"//src/core:ext/transport/binder/wire_format/binder_android.cc",
"//src/core:ext/transport/binder/wire_format/binder_constants.cc",
"//src/core:ext/transport/binder/wire_format/transaction.cc",
"//src/core:ext/transport/binder/wire_format/wire_reader_impl.cc",
"//src/core:ext/transport/binder/wire_format/wire_writer.cc",
],
hdrs = [
"//src/core:ext/transport/binder/client/binder_connector.h",
"//src/core:ext/transport/binder/client/channel_create_impl.h",
"//src/core:ext/transport/binder/client/connection_id_generator.h",
"//src/core:ext/transport/binder/client/endpoint_binder_pool.h",
"//src/core:ext/transport/binder/client/jni_utils.h",
"//src/core:ext/transport/binder/client/security_policy_setting.h",
"//src/core:ext/transport/binder/server/binder_server.h",
"//src/core:ext/transport/binder/transport/binder_stream.h",
"//src/core:ext/transport/binder/transport/binder_transport.h",
"//src/core:ext/transport/binder/utils/binder_auto_utils.h",
"//src/core:ext/transport/binder/utils/ndk_binder.h",
"//src/core:ext/transport/binder/utils/transport_stream_receiver.h",
"//src/core:ext/transport/binder/utils/transport_stream_receiver_impl.h",
"//src/core:ext/transport/binder/wire_format/binder.h",
"//src/core:ext/transport/binder/wire_format/binder_android.h",
"//src/core:ext/transport/binder/wire_format/binder_constants.h",
"//src/core:ext/transport/binder/wire_format/transaction.h",
"//src/core:ext/transport/binder/wire_format/wire_reader.h",
"//src/core:ext/transport/binder/wire_format/wire_reader_impl.h",
"//src/core:ext/transport/binder/wire_format/wire_writer.h",
],
defines = select({
"grpc_no_binder": ["GRPC_NO_BINDER"],
"//conditions:default": [],
}),
external_deps = [
"absl/base:core_headers",
"absl/cleanup",
"absl/container:flat_hash_map",
"absl/functional:any_invocable",
"absl/hash",
"absl/log:check",
"absl/log:log",
"absl/memory",
"absl/meta:type_traits",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/synchronization",
"absl/time",
"absl/types:variant",
],
language = "c++",
public_hdrs = [
"include/grpcpp/security/binder_security_policy.h",
"include/grpcpp/create_channel_binder.h",
"include/grpcpp/security/binder_credentials.h",
],
tags = ["nofixdeps"],
deps = [
"api_trace",
"channel",
"channel_create",
"config",
"debug_location",
"exec_ctx",
"gpr",
"gpr_platform",
"grpc",
"grpc++_base",
"grpc_base",
"grpc_client_channel",
"grpc_public_hdrs",
"orphanable",
"ref_counted_ptr",
"server",
"//src/core:arena",
"//src/core:channel_args",
"//src/core:channel_args_preconditioning",
"//src/core:channel_stack_type",
"//src/core:default_event_engine",
"//src/core:error_utils",
"//src/core:iomgr_fwd",
"//src/core:iomgr_port",
"//src/core:metadata_batch",
"//src/core:notification",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:status_helper",
"//src/core:subchannel_connector",
"//src/core:transport_fwd",
],
)
grpc_cc_library(
name = "grpc++_xds_client",
srcs = [
"src/cpp/client/xds_credentials.cc",
],
hdrs = [
"src/cpp/client/secure_credentials.h",
],
external_deps = [
"absl/log:check",
"absl/strings",
],
language = "c++",
deps = [
"exec_ctx",
"gpr",
"grpc",
"grpc++_base",
"grpc_base",
"grpc_public_hdrs",
"grpc_security_base",
],
)
grpc_cc_library(
name = "grpc++_xds_server",
srcs = [
"src/cpp/server/xds_server_builder.cc",
"src/cpp/server/xds_server_credentials.cc",
],
hdrs = [
"src/cpp/server/secure_server_credentials.h",
],
external_deps = [
"absl/log:check",
],
language = "c++",
public_hdrs = [
"include/grpcpp/xds_server_builder.h",
],
visibility = ["@grpc:xds"],
deps = [
"channel_arg_names",
"gpr",
"grpc",
"grpc++_base",
"//src/core:xds_enabled_server",
],
)
# TODO(hork): restructure the grpc++_unsecure and grpc++ build targets in a
# similar way to how the grpc_unsecure and grpc targets were restructured in
# #25586
grpc_cc_library(
name = "grpc++_unsecure",
srcs = [
"src/cpp/client/insecure_credentials.cc",
"src/cpp/common/insecure_create_auth_context.cc",
"src/cpp/server/insecure_server_credentials.cc",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/log:absl_check",
"absl/log:absl_log",
"absl/strings",
"absl/synchronization",
],
language = "c++",
public_hdrs = GRPCXX_PUBLIC_HDRS,
tags = [
"avoid_dep",
"nofixdeps",
],
visibility = ["@grpc:public"],
deps = [
"channel_arg_names",
"generic_stub_internal",
"gpr",
"grpc++_base_unsecure",
"grpc++_codegen_proto",
"grpc_core_credentials_header",
"grpc_public_hdrs",
"grpc_security_base",
"grpc_unsecure",
"//src/core:gpr_atm",
"//src/core:grpc_insecure_credentials",
],
)
grpc_cc_library(
name = "grpc++_error_details",
srcs = [
"src/cpp/util/error_details.cc",
],
hdrs = [
"include/grpc++/support/error_details.h",
"include/grpcpp/support/error_details.h",
],
language = "c++",
standalone = True,
visibility = ["@grpc:public"],
deps = ["grpc++"],
)
grpc_cc_library(
name = "grpc++_alts",
srcs = [
"src/cpp/common/alts_context.cc",
"src/cpp/common/alts_util.cc",
],
hdrs = [
"include/grpcpp/security/alts_context.h",
"include/grpcpp/security/alts_util.h",
],
external_deps = [
"absl/log:log",
"@com_google_protobuf//upb:base",
"@com_google_protobuf//upb:mem",
"@com_google_protobuf//upb:message",
],
language = "c++",
standalone = True,
visibility = ["@grpc:public"],
deps = [
"alts_upb",
"gpr",
"grpc++",
"grpc_base",
"tsi_alts_credentials",
],
)
grpc_cc_library(
name = "census",
srcs = [
"//src/core:ext/filters/census/grpc_context.cc",
],
language = "c++",
public_hdrs = [
"include/grpc/census.h",
],
visibility = ["@grpc:public"],
deps = [
"api_trace",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"//src/core:arena",
],
)
# A library that vends only port_platform, so that libraries that don't need
# anything else from gpr can still be portable!
grpc_cc_library(
name = "gpr_platform",
language = "c++",
public_hdrs = [
"include/grpc/impl/codegen/port_platform.h",
"include/grpc/support/port_platform.h",
],
)
grpc_cc_library(
name = "event_engine_base_hdrs",
hdrs = GRPC_PUBLIC_EVENT_ENGINE_HDRS + GRPC_PUBLIC_HDRS,
external_deps = [
"absl/status",
"absl/status:statusor",
"absl/time",
"absl/types:optional",
"absl/functional:any_invocable",
],
tags = [
"nofixdeps",
],
visibility = ["@grpc:event_engine_base_hdrs"],
deps = [
"channel_arg_names",
"gpr",
],
)
grpc_cc_library(
name = "channelz",
srcs = [
"//src/core:channelz/channel_trace.cc",
"//src/core:channelz/channelz.cc",
"//src/core:channelz/channelz_registry.cc",
],
hdrs = [
"//src/core:channelz/channel_trace.h",
"//src/core:channelz/channelz.h",
"//src/core:channelz/channelz_registry.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/log:log",
"absl/status:statusor",
"absl/strings",
"absl/types:optional",
],
language = "c++",
deps = [
"exec_ctx",
"gpr",
"grpc_public_hdrs",
"parse_address",
"ref_counted_ptr",
"sockaddr_utils",
"uri_parser",
"//src/core:channel_args",
"//src/core:connectivity_state",
"//src/core:json",
"//src/core:json_writer",
"//src/core:per_cpu",
"//src/core:ref_counted",
"//src/core:resolved_address",
"//src/core:slice",
"//src/core:time",
"//src/core:useful",
],
)
grpc_cc_library(
name = "dynamic_annotations",
hdrs = [
"//src/core:lib/iomgr/dynamic_annotations.h",
],
language = "c++",
deps = [
"gpr_public_hdrs",
],
)
grpc_cc_library(
name = "call_combiner",
srcs = [
"//src/core:lib/iomgr/call_combiner.cc",
],
hdrs = [
"//src/core:lib/iomgr/call_combiner.h",
],
external_deps = [
"absl/container:inlined_vector",
"absl/log:check",
"absl/log:log",
],
language = "c++",
deps = [
"dynamic_annotations",
"exec_ctx",
"gpr",
"ref_counted_ptr",
"stats",
"//src/core:closure",
"//src/core:gpr_atm",
"//src/core:ref_counted",
"//src/core:stats_data",
],
)
grpc_cc_library(
name = "resource_quota_api",
srcs = [
"//src/core:lib/resource_quota/api.cc",
],
hdrs = [
"//src/core:lib/resource_quota/api.h",
],
external_deps = [
"absl/strings",
],
language = "c++",
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"channel_arg_names",
"config",
"event_engine_base_hdrs",
"exec_ctx",
"gpr_public_hdrs",
"grpc_public_hdrs",
"ref_counted_ptr",
"//src/core:channel_args",
"//src/core:memory_quota",
"//src/core:resource_quota",
"//src/core:thread_quota",
],
)
grpc_cc_library(
name = "api_trace",
hdrs = [
"//src/core:lib/surface/api_trace.h",
],
external_deps = [
"absl/log:log",
],
language = "c++",
deps = [
"gpr",
"grpc_trace",
],
)
grpc_cc_library(
name = "byte_buffer",
srcs = [
"//src/core:lib/surface/byte_buffer.cc",
"//src/core:lib/surface/byte_buffer_reader.cc",
],
external_deps = [
"absl/log:check",
],
language = "c++",
deps = [
"exec_ctx",
"gpr_public_hdrs",
"grpc_public_hdrs",
"//src/core:compression",
"//src/core:slice",
],
)
grpc_cc_library(
name = "iomgr",
srcs = [
"//src/core:lib/iomgr/cfstream_handle.cc",
"//src/core:lib/iomgr/dualstack_socket_posix.cc",
"//src/core:lib/iomgr/endpoint.cc",
"//src/core:lib/iomgr/endpoint_cfstream.cc",
"//src/core:lib/iomgr/endpoint_pair_posix.cc",
"//src/core:lib/iomgr/endpoint_pair_windows.cc",
"//src/core:lib/iomgr/error_cfstream.cc",
"//src/core:lib/iomgr/ev_apple.cc",
"//src/core:lib/iomgr/ev_epoll1_linux.cc",
"//src/core:lib/iomgr/ev_poll_posix.cc",
"//src/core:lib/iomgr/ev_posix.cc",
"//src/core:lib/iomgr/fork_posix.cc",
"//src/core:lib/iomgr/fork_windows.cc",
"//src/core:lib/iomgr/gethostname_fallback.cc",
"//src/core:lib/iomgr/gethostname_host_name_max.cc",
"//src/core:lib/iomgr/gethostname_sysconf.cc",
"//src/core:lib/iomgr/iocp_windows.cc",
"//src/core:lib/iomgr/iomgr.cc",
"//src/core:lib/iomgr/iomgr_posix.cc",
"//src/core:lib/iomgr/iomgr_posix_cfstream.cc",
"//src/core:lib/iomgr/iomgr_windows.cc",
"//src/core:lib/iomgr/lockfree_event.cc",
"//src/core:lib/iomgr/polling_entity.cc",
"//src/core:lib/iomgr/pollset.cc",
"//src/core:lib/iomgr/pollset_set_windows.cc",
"//src/core:lib/iomgr/pollset_windows.cc",
"//src/core:lib/iomgr/resolve_address.cc",
"//src/core:lib/iomgr/resolve_address_posix.cc",
"//src/core:lib/iomgr/resolve_address_windows.cc",
"//src/core:lib/iomgr/socket_factory_posix.cc",
"//src/core:lib/iomgr/socket_utils_common_posix.cc",
"//src/core:lib/iomgr/socket_utils_linux.cc",
"//src/core:lib/iomgr/socket_utils_posix.cc",
"//src/core:lib/iomgr/socket_windows.cc",
"//src/core:lib/iomgr/systemd_utils.cc",
"//src/core:lib/iomgr/tcp_client.cc",
"//src/core:lib/iomgr/tcp_client_cfstream.cc",
"//src/core:lib/iomgr/tcp_client_posix.cc",
"//src/core:lib/iomgr/tcp_client_windows.cc",
"//src/core:lib/iomgr/tcp_posix.cc",
"//src/core:lib/iomgr/tcp_server.cc",
"//src/core:lib/iomgr/tcp_server_posix.cc",
"//src/core:lib/iomgr/tcp_server_utils_posix_common.cc",
"//src/core:lib/iomgr/tcp_server_utils_posix_ifaddrs.cc",
"//src/core:lib/iomgr/tcp_server_utils_posix_noifaddrs.cc",
"//src/core:lib/iomgr/tcp_server_windows.cc",
"//src/core:lib/iomgr/tcp_windows.cc",
"//src/core:lib/iomgr/unix_sockets_posix.cc",
"//src/core:lib/iomgr/unix_sockets_posix_noop.cc",
"//src/core:lib/iomgr/vsock.cc",
"//src/core:lib/iomgr/wakeup_fd_eventfd.cc",
"//src/core:lib/iomgr/wakeup_fd_nospecial.cc",
"//src/core:lib/iomgr/wakeup_fd_pipe.cc",
"//src/core:lib/iomgr/wakeup_fd_posix.cc",
] +
# TODO(vigneshbabu): remove these
# These headers used to be vended by this target, but they have to be
# removed after landing EventEngine.
[
"//src/core:lib/iomgr/event_engine_shims/closure.cc",
"//src/core:lib/iomgr/event_engine_shims/endpoint.cc",
"//src/core:lib/iomgr/event_engine_shims/tcp_client.cc",
],
hdrs = [
"//src/core:lib/iomgr/block_annotate.h",
"//src/core:lib/iomgr/cfstream_handle.h",
"//src/core:lib/iomgr/endpoint.h",
"//src/core:lib/iomgr/endpoint_cfstream.h",
"//src/core:lib/iomgr/endpoint_pair.h",
"//src/core:lib/iomgr/error_cfstream.h",
"//src/core:lib/iomgr/ev_apple.h",
"//src/core:lib/iomgr/ev_epoll1_linux.h",
"//src/core:lib/iomgr/ev_poll_posix.h",
"//src/core:lib/iomgr/ev_posix.h",
"//src/core:lib/iomgr/gethostname.h",
"//src/core:lib/iomgr/iocp_windows.h",
"//src/core:lib/iomgr/iomgr.h",
"//src/core:lib/iomgr/lockfree_event.h",
"//src/core:lib/iomgr/nameser.h",
"//src/core:lib/iomgr/polling_entity.h",
"//src/core:lib/iomgr/pollset.h",
"//src/core:lib/iomgr/pollset_set_windows.h",
"//src/core:lib/iomgr/pollset_windows.h",
"//src/core:lib/iomgr/python_util.h",
"//src/core:lib/iomgr/resolve_address.h",
"//src/core:lib/iomgr/resolve_address_impl.h",
"//src/core:lib/iomgr/resolve_address_posix.h",
"//src/core:lib/iomgr/resolve_address_windows.h",
"//src/core:lib/iomgr/sockaddr.h",
"//src/core:lib/iomgr/sockaddr_posix.h",
"//src/core:lib/iomgr/sockaddr_windows.h",
"//src/core:lib/iomgr/socket_factory_posix.h",
"//src/core:lib/iomgr/socket_utils_posix.h",
"//src/core:lib/iomgr/socket_windows.h",
"//src/core:lib/iomgr/systemd_utils.h",
"//src/core:lib/iomgr/tcp_client.h",
"//src/core:lib/iomgr/tcp_client_posix.h",
"//src/core:lib/iomgr/tcp_posix.h",
"//src/core:lib/iomgr/tcp_server.h",
"//src/core:lib/iomgr/tcp_server_utils_posix.h",
"//src/core:lib/iomgr/tcp_windows.h",
"//src/core:lib/iomgr/unix_sockets_posix.h",
"//src/core:lib/iomgr/vsock.h",
"//src/core:lib/iomgr/wakeup_fd_pipe.h",
"//src/core:lib/iomgr/wakeup_fd_posix.h",
] +
# TODO(vigneshbabu): remove these
# These headers used to be vended by this target, but they have to be
# removed after landing EventEngine.
[
"//src/core:lib/iomgr/event_engine_shims/closure.h",
"//src/core:lib/iomgr/event_engine_shims/endpoint.h",
"//src/core:lib/iomgr/event_engine_shims/tcp_client.h",
],
defines = select({
"systemd": ["HAVE_LIBSYSTEMD"],
"//conditions:default": [],
}),
external_deps = [
"absl/base:core_headers",
"absl/container:flat_hash_map",
"absl/container:flat_hash_set",
"absl/functional:any_invocable",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/time",
"absl/types:optional",
"absl/utility",
],
language = "c++",
linkopts = select({
"systemd": ["-lsystemd"],
"//conditions:default": [],
}),
public_hdrs = GRPC_PUBLIC_HDRS + GRPC_PUBLIC_EVENT_ENGINE_HDRS,
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"byte_buffer",
"channel_arg_names",
"config_vars",
"debug_location",
"exec_ctx",
"gpr",
"grpc_public_hdrs",
"grpc_trace",
"iomgr_buffer_list",
"iomgr_internal_errqueue",
"iomgr_timer",
"orphanable",
"parse_address",
"resource_quota_api",
"sockaddr_utils",
"stats",
"//src/core:channel_args",
"//src/core:channel_args_endpoint_config",
"//src/core:closure",
"//src/core:construct_destruct",
"//src/core:context",
"//src/core:default_event_engine",
"//src/core:error",
"//src/core:error_utils",
"//src/core:event_engine_common",
"//src/core:event_engine_extensions",
"//src/core:event_engine_memory_allocator_factory",
"//src/core:event_engine_query_extensions",
"//src/core:event_engine_shim",
"//src/core:event_engine_tcp_socket_utils",
"//src/core:event_log",
"//src/core:examine_stack",
"//src/core:experiments",
"//src/core:gpr_atm",
"//src/core:gpr_manual_constructor",
"//src/core:grpc_sockaddr",
"//src/core:init_internally",
"//src/core:iomgr_fwd",
"//src/core:iomgr_port",
"//src/core:memory_quota",
"//src/core:no_destruct",
"//src/core:pollset_set",
"//src/core:posix_event_engine_base_hdrs",
"//src/core:posix_event_engine_endpoint",
"//src/core:resolved_address",
"//src/core:resource_quota",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_cast",
"//src/core:slice_refcount",
"//src/core:socket_mutator",
"//src/core:stats_data",
"//src/core:strerror",
"//src/core:time",
"//src/core:useful",
"//src/core:windows_event_engine",
"//src/core:windows_event_engine_listener",
],
)
grpc_cc_library(
name = "call_tracer",
srcs = [
"//src/core:telemetry/call_tracer.cc",
],
hdrs = [
"//src/core:telemetry/call_tracer.h",
],
external_deps = [
"absl/log:check",
"absl/status",
"absl/strings",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr",
"tcp_tracer",
"//src/core:arena",
"//src/core:call_final_info",
"//src/core:channel_args",
"//src/core:context",
"//src/core:error",
"//src/core:metadata_batch",
"//src/core:ref_counted_string",
"//src/core:slice_buffer",
],
)
grpc_cc_library(
name = "channel",
srcs = [
"//src/core:lib/surface/channel.cc",
],
hdrs = [
"//src/core:lib/surface/channel.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/status:statusor",
"absl/strings",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"api_trace",
"channel_arg_names",
"channelz",
"cpp_impl_of",
"event_engine_base_hdrs",
"exec_ctx",
"gpr",
"grpc_public_hdrs",
"grpc_trace",
"ref_counted_ptr",
"stats",
"//src/core:arena",
"//src/core:call_arena_allocator",
"//src/core:call_destination",
"//src/core:channel_args",
"//src/core:channel_stack_type",
"//src/core:compression",
"//src/core:connectivity_state",
"//src/core:iomgr_fwd",
"//src/core:ref_counted",
"//src/core:resource_quota",
"//src/core:slice",
"//src/core:stats_data",
"//src/core:time",
],
)
grpc_cc_library(
name = "legacy_channel",
srcs = [
"//src/core:lib/surface/legacy_channel.cc",
],
hdrs = [
"//src/core:lib/surface/legacy_channel.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"api_trace",
"channel",
"channelz",
"config",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_client_channel",
"ref_counted_ptr",
"stats",
"//src/core:arena",
"//src/core:call_arena_allocator",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:closure",
"//src/core:dual_ref_counted",
"//src/core:error",
"//src/core:init_internally",
"//src/core:iomgr_fwd",
"//src/core:metrics",
"//src/core:resource_quota",
"//src/core:slice",
"//src/core:stats_data",
"//src/core:time",
],
)
grpc_cc_library(
name = "channel_create",
srcs = [
"//src/core:lib/surface/channel_create.cc",
],
hdrs = [
"//src/core:lib/surface/channel_create.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/status:statusor",
"absl/strings",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"channel",
"channel_arg_names",
"channelz",
"config",
"gpr",
"grpc_base",
"grpc_client_channel",
"grpc_public_hdrs",
"legacy_channel",
"ref_counted_ptr",
"stats",
"//src/core:arena",
"//src/core:channel_args",
"//src/core:channel_stack_type",
"//src/core:direct_channel",
"//src/core:experiments",
"//src/core:iomgr_fwd",
"//src/core:ref_counted",
"//src/core:slice",
"//src/core:stats_data",
],
)
grpc_cc_library(
name = "server",
srcs = [
"//src/core:server/server.cc",
],
hdrs = [
"//src/core:server/server.h",
],
external_deps = [
"absl/base:core_headers",
"absl/cleanup",
"absl/container:flat_hash_map",
"absl/container:flat_hash_set",
"absl/hash",
"absl/log:check",
"absl/log:log",
"absl/random",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"api_trace",
"call_combiner",
"call_tracer",
"channel",
"channel_arg_names",
"channelz",
"config",
"cpp_impl_of",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"iomgr",
"legacy_channel",
"orphanable",
"promise",
"ref_counted_ptr",
"stats",
"//src/core:activity",
"//src/core:arena_promise",
"//src/core:cancel_callback",
"//src/core:channel_args",
"//src/core:channel_args_preconditioning",
"//src/core:channel_fwd",
"//src/core:channel_stack_type",
"//src/core:closure",
"//src/core:connectivity_state",
"//src/core:context",
"//src/core:dual_ref_counted",
"//src/core:error",
"//src/core:error_utils",
"//src/core:experiments",
"//src/core:interception_chain",
"//src/core:iomgr_fwd",
"//src/core:map",
"//src/core:metadata_batch",
"//src/core:pipe",
"//src/core:poll",
"//src/core:pollset_set",
"//src/core:random_early_detection",
"//src/core:seq",
"//src/core:server_interface",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:status_helper",
"//src/core:time",
"//src/core:try_join",
"//src/core:try_seq",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc_base",
srcs = [
"//src/core:lib/channel/channel_stack.cc",
"//src/core:lib/channel/channel_stack_builder_impl.cc",
"//src/core:lib/channel/connected_channel.cc",
"//src/core:lib/channel/promise_based_filter.cc",
"//src/core:lib/channel/status_util.cc",
"//src/core:lib/compression/message_compress.cc",
"//src/core:lib/surface/call.cc",
"//src/core:lib/surface/call_details.cc",
"//src/core:lib/surface/call_log_batch.cc",
"//src/core:lib/surface/call_utils.cc",
"//src/core:lib/surface/client_call.cc",
"//src/core:lib/surface/completion_queue.cc",
"//src/core:lib/surface/completion_queue_factory.cc",
"//src/core:lib/surface/event_string.cc",
"//src/core:lib/surface/filter_stack_call.cc",
"//src/core:lib/surface/lame_client.cc",
"//src/core:lib/surface/metadata_array.cc",
"//src/core:lib/surface/server_call.cc",
"//src/core:lib/surface/validate_metadata.cc",
"//src/core:lib/surface/version.cc",
"//src/core:lib/transport/transport.cc",
"//src/core:lib/transport/transport_op_string.cc",
],
hdrs = [
"//src/core:lib/channel/channel_stack.h",
"//src/core:lib/channel/channel_stack_builder_impl.h",
"//src/core:lib/channel/connected_channel.h",
"//src/core:lib/channel/promise_based_filter.h",
"//src/core:lib/channel/status_util.h",
"//src/core:lib/compression/message_compress.h",
"//src/core:lib/surface/call.h",
"//src/core:lib/surface/call_test_only.h",
"//src/core:lib/surface/call_utils.h",
"//src/core:lib/surface/client_call.h",
"//src/core:lib/surface/completion_queue.h",
"//src/core:lib/surface/completion_queue_factory.h",
"//src/core:lib/surface/event_string.h",
"//src/core:lib/surface/filter_stack_call.h",
"//src/core:lib/surface/init.h",
"//src/core:lib/surface/lame_client.h",
"//src/core:lib/surface/server_call.h",
"//src/core:lib/surface/validate_metadata.h",
"//src/core:lib/transport/transport.h",
],
defines = select({
"systemd": ["HAVE_LIBSYSTEMD"],
"//conditions:default": [],
}),
external_deps = [
"absl/base:core_headers",
"absl/container:flat_hash_map",
"absl/container:inlined_vector",
"absl/functional:any_invocable",
"absl/functional:function_ref",
"absl/log",
"absl/log:check",
"absl/meta:type_traits",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
"absl/utility",
"madler_zlib",
],
language = "c++",
linkopts = select({
"systemd": ["-lsystemd"],
"//conditions:default": [],
}),
public_hdrs = GRPC_PUBLIC_HDRS + GRPC_PUBLIC_EVENT_ENGINE_HDRS,
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"api_trace",
"call_combiner",
"call_tracer",
"channel",
"channel_arg_names",
"channel_stack_builder",
"channelz",
"config",
"cpp_impl_of",
"debug_location",
"exec_ctx",
"gpr",
"grpc_core_credentials_header",
"grpc_public_hdrs",
"grpc_trace",
"iomgr",
"iomgr_timer",
"orphanable",
"promise",
"ref_counted_ptr",
"stats",
"//src/core:1999",
"//src/core:activity",
"//src/core:all_ok",
"//src/core:arena",
"//src/core:arena_promise",
"//src/core:atomic_utils",
"//src/core:bitset",
"//src/core:call_destination",
"//src/core:call_filters",
"//src/core:call_final_info",
"//src/core:call_finalization",
"//src/core:call_spine",
"//src/core:cancel_callback",
"//src/core:channel_args",
"//src/core:channel_args_preconditioning",
"//src/core:channel_fwd",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:closure",
"//src/core:compression",
"//src/core:connectivity_state",
"//src/core:context",
"//src/core:default_event_engine",
"//src/core:error",
"//src/core:error_utils",
"//src/core:event_engine_common",
"//src/core:event_engine_context",
"//src/core:experiments",
"//src/core:for_each",
"//src/core:gpr_atm",
"//src/core:gpr_manual_constructor",
"//src/core:gpr_spinlock",
"//src/core:if",
"//src/core:iomgr_fwd",
"//src/core:latch",
"//src/core:loop",
"//src/core:map",
"//src/core:match",
"//src/core:message",
"//src/core:metadata",
"//src/core:metadata_batch",
"//src/core:metrics",
"//src/core:no_destruct",
"//src/core:pipe",
"//src/core:poll",
"//src/core:promise_status",
"//src/core:race",
"//src/core:ref_counted",
"//src/core:seq",
"//src/core:server_interface",
"//src/core:single_set_ptr",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_cast",
"//src/core:slice_refcount",
"//src/core:stats_data",
"//src/core:status_flag",
"//src/core:status_helper",
"//src/core:time",
"//src/core:transport_fwd",
"//src/core:try_seq",
"//src/core:unique_type_name",
"//src/core:useful",
],
)
grpc_cc_library(
name = "lb_load_data_store",
srcs = [
"src/cpp/server/load_reporter/load_data_store.cc",
],
hdrs = [
"src/cpp/server/load_reporter/constants.h",
"src/cpp/server/load_reporter/load_data_store.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
],
language = "c++",
deps = [
"gpr",
"gpr_platform",
"grpc++",
"//src/core:grpc_sockaddr",
],
)
grpc_cc_library(
name = "lb_server_load_reporting_service_server_builder_plugin",
srcs = [
"src/cpp/server/load_reporter/load_reporting_service_server_builder_plugin.cc",
],
hdrs = [
"src/cpp/server/load_reporter/load_reporting_service_server_builder_plugin.h",
],
language = "c++",
deps = [
"gpr_platform",
"grpc++",
"lb_load_reporter_service",
],
)
grpc_cc_library(
name = "grpcpp_server_load_reporting",
srcs = [
"src/cpp/server/load_reporter/load_reporting_service_server_builder_option.cc",
"src/cpp/server/load_reporter/util.cc",
],
external_deps = [
"absl/log:log",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/server_load_reporting.h",
],
tags = ["nofixdeps"],
deps = [
"channel_arg_names",
"gpr",
"gpr_platform",
"grpc",
"grpc++",
"grpc++_public_hdrs",
"grpc_public_hdrs",
"lb_server_load_reporting_service_server_builder_plugin",
"//src/core:lb_server_load_reporting_filter",
],
)
grpc_cc_library(
name = "lb_load_reporter_service",
srcs = [
"src/cpp/server/load_reporter/load_reporter_async_service_impl.cc",
],
hdrs = [
"src/cpp/server/load_reporter/load_reporter_async_service_impl.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/memory",
"protobuf_headers",
],
language = "c++",
tags = ["nofixdeps"],
deps = [
":gpr",
":grpc++",
":lb_load_reporter",
"//src/proto/grpc/lb/v1:load_reporter_proto",
],
)
grpc_cc_library(
name = "lb_get_cpu_stats",
srcs = [
"src/cpp/server/load_reporter/get_cpu_stats_linux.cc",
"src/cpp/server/load_reporter/get_cpu_stats_macos.cc",
"src/cpp/server/load_reporter/get_cpu_stats_unsupported.cc",
"src/cpp/server/load_reporter/get_cpu_stats_windows.cc",
],
hdrs = [
"src/cpp/server/load_reporter/get_cpu_stats.h",
],
external_deps = [
"absl/log:log",
],
language = "c++",
deps = [
"gpr",
"gpr_platform",
],
)
grpc_cc_library(
name = "lb_load_reporter",
srcs = [
"src/cpp/server/load_reporter/load_reporter.cc",
],
hdrs = [
"src/cpp/server/load_reporter/constants.h",
"src/cpp/server/load_reporter/load_reporter.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"opencensus-stats",
"opencensus-tags",
"protobuf_headers",
],
language = "c++",
tags = ["nofixdeps"],
deps = [
"gpr",
"lb_get_cpu_stats",
"lb_load_data_store",
"//src/proto/grpc/lb/v1:load_reporter_proto",
],
)
grpc_cc_library(
name = "grpc_security_base",
srcs = [
"//src/core:handshaker/security/secure_endpoint.cc",
"//src/core:handshaker/security/security_handshaker.cc",
"//src/core:lib/security/context/security_context.cc",
"//src/core:lib/security/credentials/call_creds_util.cc",
"//src/core:lib/security/credentials/composite/composite_credentials.cc",
"//src/core:lib/security/credentials/credentials.cc",
"//src/core:lib/security/credentials/plugin/plugin_credentials.cc",
"//src/core:lib/security/security_connector/security_connector.cc",
"//src/core:lib/security/transport/client_auth_filter.cc",
"//src/core:lib/security/transport/server_auth_filter.cc",
],
hdrs = [
"//src/core:handshaker/security/secure_endpoint.h",
"//src/core:handshaker/security/security_handshaker.h",
"//src/core:lib/security/context/security_context.h",
"//src/core:lib/security/credentials/call_creds_util.h",
"//src/core:lib/security/credentials/composite/composite_credentials.h",
"//src/core:lib/security/credentials/credentials.h",
"//src/core:lib/security/credentials/plugin/plugin_credentials.h",
"//src/core:lib/security/security_connector/security_connector.h",
"//src/core:lib/security/transport/auth_filters.h",
],
external_deps = [
"absl/base:core_headers",
"absl/container:inlined_vector",
"absl/functional:any_invocable",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/types:optional",
],
language = "c++",
public_hdrs = GRPC_PUBLIC_HDRS,
visibility = ["@grpc:public"],
deps = [
"api_trace",
"channel_arg_names",
"channelz",
"config",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_core_credentials_header",
"grpc_public_hdrs",
"grpc_trace",
"handshaker",
"iomgr",
"orphanable",
"promise",
"ref_counted_ptr",
"resource_quota_api",
"stats",
"tsi_base",
"//src/core:activity",
"//src/core:arena",
"//src/core:arena_promise",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:closure",
"//src/core:context",
"//src/core:error",
"//src/core:event_engine_memory_allocator",
"//src/core:gpr_atm",
"//src/core:handshaker_factory",
"//src/core:handshaker_registry",
"//src/core:iomgr_fwd",
"//src/core:memory_quota",
"//src/core:metadata_batch",
"//src/core:poll",
"//src/core:ref_counted",
"//src/core:resource_quota",
"//src/core:seq",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:stats_data",
"//src/core:status_helper",
"//src/core:try_seq",
"//src/core:unique_type_name",
"//src/core:useful",
],
)
grpc_cc_library(
name = "tsi_base",
srcs = [
"//src/core:tsi/transport_security.cc",
"//src/core:tsi/transport_security_grpc.cc",
],
hdrs = [
"//src/core:tsi/transport_security.h",
"//src/core:tsi/transport_security_grpc.h",
"//src/core:tsi/transport_security_interface.h",
],
language = "c++",
tags = ["nofixdeps"],
visibility = ["@grpc:tsi_interface"],
deps = [
"gpr",
"grpc_public_hdrs",
"grpc_trace",
],
)
# TODO(hork): split credentials types into their own source files and targets.
grpc_cc_library(
name = "grpc_core_credentials_header",
hdrs = ["include/grpc/credentials.h"],
language = "c++",
visibility = ["@grpc:core_credentials"],
)
grpc_cc_library(
name = "alts_util",
srcs = [
"//src/core:lib/security/credentials/alts/check_gcp_environment.cc",
"//src/core:lib/security/credentials/alts/check_gcp_environment_linux.cc",
"//src/core:lib/security/credentials/alts/check_gcp_environment_no_op.cc",
"//src/core:lib/security/credentials/alts/check_gcp_environment_windows.cc",
"//src/core:lib/security/credentials/alts/grpc_alts_credentials_client_options.cc",
"//src/core:lib/security/credentials/alts/grpc_alts_credentials_options.cc",
"//src/core:lib/security/credentials/alts/grpc_alts_credentials_server_options.cc",
"//src/core:tsi/alts/handshaker/transport_security_common_api.cc",
],
hdrs = [
"include/grpc/grpc_security.h",
"//src/core:lib/security/credentials/alts/check_gcp_environment.h",
"//src/core:lib/security/credentials/alts/grpc_alts_credentials_options.h",
"//src/core:tsi/alts/handshaker/transport_security_common_api.h",
],
external_deps = [
"absl/log:log",
"@com_google_protobuf//upb:base",
"@com_google_protobuf//upb:mem",
],
language = "c++",
visibility = ["@grpc:tsi"],
deps = [
"alts_upb",
"gpr",
"grpc_core_credentials_header",
"grpc_public_hdrs",
],
)
grpc_cc_library(
name = "tsi",
external_deps = [
"libssl",
"libcrypto",
"absl/strings",
"@com_google_protobuf//upb:base",
"@com_google_protobuf//upb:mem",
],
language = "c++",
tags = ["nofixdeps"],
visibility = ["@grpc:tsi"],
deps = [
"gpr",
"tsi_alts_frame_protector",
"tsi_base",
"tsi_fake_credentials",
"//src/core:tsi_local_credentials",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc++_base",
srcs = GRPCXX_SRCS + [
"src/cpp/client/insecure_credentials.cc",
"src/cpp/client/secure_credentials.cc",
"src/cpp/common/auth_property_iterator.cc",
"src/cpp/common/secure_auth_context.cc",
"src/cpp/common/secure_create_auth_context.cc",
"src/cpp/common/tls_certificate_provider.cc",
"src/cpp/common/tls_certificate_verifier.cc",
"src/cpp/common/tls_credentials_options.cc",
"src/cpp/server/insecure_server_credentials.cc",
"src/cpp/server/secure_server_credentials.cc",
],
hdrs = GRPCXX_HDRS + [
"src/cpp/client/secure_credentials.h",
"src/cpp/common/secure_auth_context.h",
"src/cpp/server/secure_server_credentials.h",
],
external_deps = [
"absl/base:core_headers",
"absl/functional:any_invocable",
"absl/log:check",
"absl/log:log",
"absl/log:absl_check",
"absl/log:absl_log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/synchronization",
"absl/memory",
"absl/types:optional",
"@com_google_protobuf//upb:base",
"@com_google_protobuf//upb:mem",
"protobuf_headers",
"absl/container:inlined_vector",
],
language = "c++",
public_hdrs = GRPCXX_PUBLIC_HDRS,
tags = ["nofixdeps"],
visibility = ["@grpc:alt_grpc++_base_legacy"],
deps = [
"channel_arg_names",
"channel_stack_builder",
"config",
"exec_ctx",
"generic_stub_internal",
"gpr",
"grpc",
"grpc++_codegen_proto",
"grpc_base",
"grpc_core_credentials_header",
"grpc_credentials_util",
"grpc_health_upb",
"grpc_public_hdrs",
"grpc_security_base",
"grpc_service_config_impl",
"grpc_trace",
"grpcpp_backend_metric_recorder",
"grpcpp_call_metric_recorder",
"grpcpp_status",
"iomgr",
"iomgr_timer",
"ref_counted_ptr",
"resource_quota_api",
"server",
"//src/core:arena",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:closure",
"//src/core:default_event_engine",
"//src/core:env",
"//src/core:error",
"//src/core:gpr_atm",
"//src/core:gpr_manual_constructor",
"//src/core:grpc_audit_logging",
"//src/core:grpc_backend_metric_provider",
"//src/core:grpc_crl_provider",
"//src/core:grpc_service_config",
"//src/core:grpc_transport_chttp2_server",
"//src/core:grpc_transport_inproc",
"//src/core:json",
"//src/core:json_reader",
"//src/core:load_file",
"//src/core:ref_counted",
"//src/core:resource_quota",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_refcount",
"//src/core:socket_mutator",
"//src/core:status_helper",
"//src/core:thread_quota",
"//src/core:time",
"//src/core:useful",
],
)
# TODO(chengyuc): Give it another try to merge this to `grpc++_base` after
# codegen files are removed.
grpc_cc_library(
name = "grpc++_base_unsecure",
srcs = GRPCXX_SRCS,
hdrs = GRPCXX_HDRS,
external_deps = [
"absl/base:core_headers",
"absl/functional:any_invocable",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/synchronization",
"absl/log:absl_check",
"absl/log:absl_log",
"absl/types:optional",
"absl/memory",
"@com_google_protobuf//upb:base",
"@com_google_protobuf//upb:mem",
"absl/strings:str_format",
"protobuf_headers",
],
language = "c++",
public_hdrs = GRPCXX_PUBLIC_HDRS,
tags = [
"avoid_dep",
"nofixdeps",
],
visibility = ["@grpc:alt_grpc++_base_unsecure_legacy"],
deps = [
"channel_arg_names",
"channel_stack_builder",
"config",
"exec_ctx",
"generic_stub_internal",
"gpr",
"grpc_base",
"grpc_core_credentials_header",
"grpc_health_upb",
"grpc_public_hdrs",
"grpc_security_base",
"grpc_service_config_impl",
"grpc_trace",
"grpc_transport_chttp2",
"grpc_unsecure",
"grpcpp_backend_metric_recorder",
"grpcpp_call_metric_recorder",
"grpcpp_status",
"iomgr",
"iomgr_timer",
"ref_counted_ptr",
"resource_quota_api",
"server",
"//src/core:arena",
"//src/core:channel_args",
"//src/core:channel_init",
"//src/core:closure",
"//src/core:default_event_engine",
"//src/core:error",
"//src/core:gpr_atm",
"//src/core:gpr_manual_constructor",
"//src/core:grpc_backend_metric_provider",
"//src/core:grpc_insecure_credentials",
"//src/core:grpc_service_config",
"//src/core:grpc_transport_chttp2_server",
"//src/core:grpc_transport_inproc",
"//src/core:ref_counted",
"//src/core:resource_quota",
"//src/core:slice",
"//src/core:socket_mutator",
"//src/core:thread_quota",
"//src/core:time",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc++_codegen_proto",
external_deps = [
"absl/strings:cord",
"protobuf_headers",
"protobuf",
],
language = "c++",
public_hdrs = [
"include/grpc++/impl/codegen/proto_utils.h",
"include/grpcpp/impl/codegen/proto_buffer_reader.h",
"include/grpcpp/impl/codegen/proto_buffer_writer.h",
"include/grpcpp/impl/codegen/proto_utils.h",
"include/grpcpp/impl/proto_utils.h",
],
tags = ["nofixdeps"],
visibility = ["@grpc:public"],
deps = [
"grpc++_config_proto",
"grpc++_public_hdrs",
"grpcpp_status",
],
)
grpc_cc_library(
name = "grpc++_config_proto",
external_deps = [
"protobuf_headers",
"protobuf",
],
language = "c++",
public_hdrs = [
"include/grpc++/impl/codegen/config_protobuf.h",
"include/grpcpp/impl/codegen/config_protobuf.h",
],
tags = ["nofixdeps"],
visibility = ["@grpc:public"],
)
grpc_cc_library(
name = "grpc++_reflection",
srcs = [
"src/cpp/ext/proto_server_reflection.cc",
"src/cpp/ext/proto_server_reflection_plugin.cc",
],
hdrs = [
"src/cpp/ext/proto_server_reflection.h",
],
external_deps = [
"protobuf_headers",
],
language = "c++",
public_hdrs = [
"include/grpc++/ext/proto_server_reflection_plugin.h",
"include/grpcpp/ext/proto_server_reflection_plugin.h",
],
tags = ["nofixdeps"],
visibility = ["@grpc:public"],
deps = [
"grpc++",
"grpc++_config_proto",
"//src/proto/grpc/reflection/v1:reflection_proto",
"//src/proto/grpc/reflection/v1alpha:reflection_proto",
],
alwayslink = 1,
)
grpc_cc_library(
name = "grpcpp_call_metric_recorder",
external_deps = [
"absl/strings",
"absl/types:optional",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/call_metric_recorder.h",
],
visibility = ["@grpc:public"],
deps = ["grpc++_public_hdrs"],
)
grpc_cc_library(
name = "grpcpp_backend_metric_recorder",
srcs = [
"src/cpp/server/backend_metric_recorder.cc",
],
hdrs = [
"src/cpp/server/backend_metric_recorder.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:log",
"absl/strings",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/server_metric_recorder.h",
],
visibility = ["@grpc:public"],
deps = [
"gpr",
"grpc++_public_hdrs",
"grpc_trace",
"grpcpp_call_metric_recorder",
"//src/core:grpc_backend_metric_data",
"//src/core:grpc_backend_metric_provider",
],
)
grpc_cc_library(
name = "grpcpp_orca_service",
srcs = [
"src/cpp/server/orca/orca_service.cc",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/strings",
"absl/time",
"absl/types:optional",
"@com_google_protobuf//upb:base",
"@com_google_protobuf//upb:mem",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/orca_service.h",
],
visibility = ["@grpc:public"],
deps = [
"debug_location",
"exec_ctx",
"gpr",
"grpc++",
"grpc_base",
"grpcpp_backend_metric_recorder",
"protobuf_duration_upb",
"ref_counted_ptr",
"xds_orca_service_upb",
"xds_orca_upb",
"//src/core:default_event_engine",
"//src/core:grpc_backend_metric_data",
"//src/core:ref_counted",
"//src/core:time",
],
alwayslink = 1,
)
grpc_cc_library(
name = "grpcpp_channelz",
srcs = [
"src/cpp/server/channelz/channelz_service.cc",
"src/cpp/server/channelz/channelz_service_plugin.cc",
],
hdrs = [
"src/cpp/server/channelz/channelz_service.h",
],
external_deps = [
"protobuf_headers",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/channelz_service_plugin.h",
],
tags = ["nofixdeps"],
visibility = ["@grpc:channelz"],
deps = [
"gpr",
"grpc",
"grpc++",
"grpc++_config_proto",
"//src/proto/grpc/channelz:channelz_proto",
],
alwayslink = 1,
)
grpc_cc_library(
name = "grpcpp_csds",
srcs = [
"src/cpp/server/csds/csds.cc",
],
hdrs = [
"src/cpp/server/csds/csds.h",
],
external_deps = [
"absl/status",
"absl/status:statusor",
],
language = "c++",
tags = ["nofixdeps"],
deps = [
"gpr",
"grpc",
"grpc++_base",
"//src/proto/grpc/testing/xds/v3:csds_proto",
],
alwayslink = 1,
)
grpc_cc_library(
name = "grpcpp_admin",
srcs = [
"src/cpp/server/admin/admin_services.cc",
],
hdrs = [],
defines = select({
":grpc_no_xds": ["GRPC_NO_XDS"],
"//conditions:default": [],
}),
external_deps = [
"absl/memory",
],
language = "c++",
public_hdrs = [
"include/grpcpp/ext/admin_services.h",
],
select_deps = [{
":grpc_no_xds": [],
"//conditions:default": ["//:grpcpp_csds"],
}],
deps = [
"gpr",
"grpc++",
"grpcpp_channelz",
],
alwayslink = 1,
)
grpc_cc_library(
name = "grpc++_test",
testonly = True,
srcs = [
"src/cpp/client/channel_test_peer.cc",
],
external_deps = ["gtest"],
public_hdrs = [
"include/grpc++/test/mock_stream.h",
"include/grpc++/test/server_context_test_spouse.h",
"include/grpcpp/test/channel_test_peer.h",
"include/grpcpp/test/client_context_test_peer.h",
"include/grpcpp/test/default_reactor_test_peer.h",
"include/grpcpp/test/mock_stream.h",
"include/grpcpp/test/server_context_test_spouse.h",
],
visibility = ["@grpc:grpc++_test"],
deps = [
"channel",
"grpc++",
"grpc_base",
],
)
grpc_cc_library(
name = "grpc_opencensus_plugin",
srcs = [
"src/cpp/ext/filters/census/client_filter.cc",
"src/cpp/ext/filters/census/context.cc",
"src/cpp/ext/filters/census/grpc_plugin.cc",
"src/cpp/ext/filters/census/measures.cc",
"src/cpp/ext/filters/census/rpc_encoding.cc",
"src/cpp/ext/filters/census/server_call_tracer.cc",
"src/cpp/ext/filters/census/views.cc",
],
hdrs = [
"include/grpcpp/opencensus.h",
"src/cpp/ext/filters/census/client_filter.h",
"src/cpp/ext/filters/census/context.h",
"src/cpp/ext/filters/census/grpc_plugin.h",
"src/cpp/ext/filters/census/measures.h",
"src/cpp/ext/filters/census/open_census_call_tracer.h",
"src/cpp/ext/filters/census/rpc_encoding.h",
"src/cpp/ext/filters/census/server_call_tracer.h",
],
external_deps = [
"absl/base:core_headers",
"absl/base:endian",
"absl/log:check",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/time",
"absl/types:optional",
"opencensus-stats",
"opencensus-tags",
"opencensus-tags-context_util",
"opencensus-trace",
"opencensus-trace-context_util",
"opencensus-trace-propagation",
"opencensus-trace-span_context",
],
language = "c++",
visibility = ["@grpc:grpc_opencensus_plugin"],
deps = [
"call_tracer",
"config",
"gpr",
"grpc++_base",
"grpc_base",
"grpc_public_hdrs",
"tcp_tracer",
"//src/core:arena",
"//src/core:arena_promise",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_stack_type",
"//src/core:context",
"//src/core:error",
"//src/core:logging_filter",
"//src/core:metadata_batch",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_refcount",
],
)
# This is an EXPERIMENTAL target subject to change.
grpc_cc_library(
name = "grpcpp_gcp_observability",
hdrs = [
"include/grpcpp/ext/gcp_observability.h",
],
language = "c++",
tags = ["nofixdeps"],
visibility = ["@grpc:grpcpp_gcp_observability"],
deps = [
"//src/cpp/ext/gcp:observability",
],
)
# This is an EXPERIMENTAL target subject to change.
grpc_cc_library(
name = "grpcpp_csm_observability",
hdrs = [
"include/grpcpp/ext/csm_observability.h",
],
language = "c++",
tags = ["nofixdeps"],
deps = [
":grpcpp_otel_plugin",
"//src/cpp/ext/csm:csm_observability",
],
)
# This is an EXPERIMENTAL target subject to change.
grpc_cc_library(
name = "grpcpp_otel_plugin",
hdrs = [
"include/grpcpp/ext/otel_plugin.h",
],
language = "c++",
deps = [
":grpc++",
"//src/cpp/ext/otel:otel_plugin",
],
)
grpc_cc_library(
name = "generic_stub_internal",
hdrs = [
"include/grpcpp/impl/generic_stub_internal.h",
],
language = "c++",
deps = [
"grpc++_public_hdrs",
],
)
grpc_cc_library(
name = "generic_stub_callback",
hdrs = [
"include/grpcpp/generic/generic_stub_callback.h",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"generic_stub_internal",
],
)
grpc_cc_library(
name = "callback_generic_service",
hdrs = [
"include/grpcpp/generic/callback_generic_service.h",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"grpc++_public_hdrs",
],
)
grpc_cc_library(
name = "work_serializer",
srcs = [
"//src/core:lib/gprpp/work_serializer.cc",
],
hdrs = [
"//src/core:lib/gprpp/work_serializer.h",
],
external_deps = [
"absl/base:core_headers",
"absl/container:inlined_vector",
"absl/log:check",
"absl/log:log",
],
language = "c++",
visibility = ["@grpc:client_channel"],
deps = [
"debug_location",
"event_engine_base_hdrs",
"exec_ctx",
"gpr",
"grpc_trace",
"orphanable",
"stats",
"//src/core:experiments",
"//src/core:stats_data",
],
)
grpc_cc_library(
name = "grpc_trace",
srcs = [
"//src/core:lib/debug/trace.cc",
"//src/core:lib/debug/trace_flags.cc",
],
hdrs = [
"//src/core:lib/debug/trace.h",
"//src/core:lib/debug/trace_flags.h",
"//src/core:lib/debug/trace_impl.h",
],
external_deps = [
"absl/log",
"absl/strings",
"absl/container:flat_hash_map",
],
language = "c++",
visibility = ["@grpc:trace"],
deps = [
"config_vars",
"gpr",
"grpc_public_hdrs",
"//src/core:glob",
"//src/core:no_destruct",
],
)
grpc_filegroup(
name = "trace_flag_files",
srcs = ["//src/core:lib/debug/trace_flags.yaml"],
)
grpc_cc_library(
name = "load_config",
srcs = [
"//src/core:lib/config/load_config.cc",
],
hdrs = [
"//src/core:lib/config/load_config.h",
],
external_deps = [
"absl/flags:flag",
"absl/flags:marshalling",
"absl/log:check",
"absl/strings",
"absl/types:optional",
],
deps = [
"gpr_platform",
"//src/core:env",
],
)
grpc_cc_library(
name = "config_vars",
srcs = [
"//src/core:lib/config/config_vars.cc",
"//src/core:lib/config/config_vars_non_generated.cc",
],
hdrs = [
"//src/core:lib/config/config_vars.h",
],
external_deps = [
"absl/flags:flag",
"absl/strings",
"absl/types:optional",
],
deps = [
"gpr_platform",
"load_config",
],
)
grpc_cc_library(
name = "config",
srcs = [
"//src/core:lib/config/core_configuration.cc",
],
external_deps = [
"absl/functional:any_invocable",
"absl/log:check",
],
language = "c++",
public_hdrs = [
"//src/core:lib/config/core_configuration.h",
],
visibility = ["@grpc:client_channel"],
deps = [
"gpr",
"grpc_resolver",
"//src/core:certificate_provider_registry",
"//src/core:channel_args_preconditioning",
"//src/core:channel_creds_registry",
"//src/core:channel_init",
"//src/core:handshaker_registry",
"//src/core:lb_policy_registry",
"//src/core:proxy_mapper_registry",
"//src/core:service_config_parser",
],
)
grpc_cc_library(
name = "debug_location",
external_deps = ["absl/strings"],
language = "c++",
public_hdrs = ["//src/core:lib/gprpp/debug_location.h"],
visibility = ["@grpc:debug_location"],
deps = ["gpr_platform"],
)
grpc_cc_library(
name = "orphanable",
language = "c++",
public_hdrs = ["//src/core:lib/gprpp/orphanable.h"],
visibility = [
"@grpc:client_channel",
"@grpc:xds_client_core",
],
deps = [
"debug_location",
"gpr_platform",
"ref_counted_ptr",
"//src/core:down_cast",
"//src/core:ref_counted",
],
)
grpc_cc_library(
name = "promise",
external_deps = [
"absl/functional:any_invocable",
"absl/status",
"absl/types:optional",
],
language = "c++",
public_hdrs = [
"//src/core:lib/promise/promise.h",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr_platform",
"//src/core:poll",
"//src/core:promise_like",
],
)
grpc_cc_library(
name = "ref_counted_ptr",
external_deps = ["absl/hash"],
language = "c++",
public_hdrs = ["//src/core:lib/gprpp/ref_counted_ptr.h"],
visibility = ["@grpc:ref_counted_ptr"],
deps = [
"debug_location",
"gpr_platform",
"//src/core:down_cast",
],
)
grpc_cc_library(
name = "handshaker",
srcs = [
"//src/core:handshaker/handshaker.cc",
],
external_deps = [
"absl/base:core_headers",
"absl/container:inlined_vector",
"absl/functional:any_invocable",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings:str_format",
],
language = "c++",
public_hdrs = [
"//src/core:handshaker/handshaker.h",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"debug_location",
"event_engine_base_hdrs",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"iomgr",
"orphanable",
"ref_counted_ptr",
"//src/core:channel_args",
"//src/core:closure",
"//src/core:error",
"//src/core:ref_counted",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:status_helper",
"//src/core:time",
],
)
grpc_cc_library(
name = "http_connect_handshaker",
srcs = [
"//src/core:handshaker/http_connect/http_connect_handshaker.cc",
],
external_deps = [
"absl/base:core_headers",
"absl/log:log",
"absl/status",
"absl/strings",
"absl/types:optional",
],
language = "c++",
public_hdrs = [
"//src/core:handshaker/http_connect/http_connect_handshaker.h",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"config",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"handshaker",
"httpcli",
"iomgr",
"ref_counted_ptr",
"//src/core:channel_args",
"//src/core:closure",
"//src/core:error",
"//src/core:handshaker_factory",
"//src/core:handshaker_registry",
"//src/core:iomgr_fwd",
"//src/core:slice",
"//src/core:slice_buffer",
],
)
grpc_cc_library(
name = "exec_ctx",
srcs = [
"//src/core:lib/iomgr/combiner.cc",
"//src/core:lib/iomgr/exec_ctx.cc",
"//src/core:lib/iomgr/executor.cc",
"//src/core:lib/iomgr/iomgr_internal.cc",
],
hdrs = [
"//src/core:lib/iomgr/combiner.h",
"//src/core:lib/iomgr/exec_ctx.h",
"//src/core:lib/iomgr/executor.h",
"//src/core:lib/iomgr/iomgr_internal.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/strings:str_format",
],
visibility = [
"@grpc:alt_grpc_base_legacy",
"@grpc:exec_ctx",
],
deps = [
"debug_location",
"gpr",
"grpc_public_hdrs",
"grpc_trace",
"//src/core:closure",
"//src/core:error",
"//src/core:experiments",
"//src/core:gpr_atm",
"//src/core:gpr_spinlock",
"//src/core:time",
"//src/core:useful",
],
)
grpc_cc_library(
name = "sockaddr_utils",
srcs = [
"//src/core:lib/address_utils/sockaddr_utils.cc",
],
hdrs = [
"//src/core:lib/address_utils/sockaddr_utils.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr",
"uri_parser",
"//src/core:grpc_sockaddr",
"//src/core:iomgr_port",
"//src/core:resolved_address",
],
)
grpc_cc_library(
name = "iomgr_timer",
srcs = [
"//src/core:lib/iomgr/timer.cc",
"//src/core:lib/iomgr/timer_generic.cc",
"//src/core:lib/iomgr/timer_heap.cc",
"//src/core:lib/iomgr/timer_manager.cc",
],
hdrs = [
"//src/core:lib/iomgr/timer.h",
"//src/core:lib/iomgr/timer_generic.h",
"//src/core:lib/iomgr/timer_heap.h",
"//src/core:lib/iomgr/timer_manager.h",
] + [
# TODO(hork): deduplicate
"//src/core:lib/iomgr/iomgr.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/strings",
"absl/strings:str_format",
],
tags = ["nofixdeps"],
deps = [
"event_engine_base_hdrs",
"exec_ctx",
"gpr",
"gpr_platform",
"grpc_trace",
"//src/core:closure",
"//src/core:gpr_manual_constructor",
"//src/core:gpr_spinlock",
"//src/core:iomgr_port",
"//src/core:time",
"//src/core:time_averaged_stats",
"//src/core:useful",
],
)
grpc_cc_library(
name = "iomgr_internal_errqueue",
srcs = [
"//src/core:lib/iomgr/internal_errqueue.cc",
],
hdrs = [
"//src/core:lib/iomgr/internal_errqueue.h",
],
external_deps = [
"absl/log:log",
],
tags = ["nofixdeps"],
visibility = ["@grpc:iomgr_internal_errqueue"],
deps = [
"gpr",
"//src/core:iomgr_port",
"//src/core:strerror",
],
)
grpc_cc_library(
name = "iomgr_buffer_list",
srcs = [
"//src/core:lib/iomgr/buffer_list.cc",
],
hdrs = [
"//src/core:lib/iomgr/buffer_list.h",
],
external_deps = [
"absl/log:log",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
],
tags = ["nofixdeps"],
visibility = ["@grpc:iomgr_buffer_list"],
deps = [
"gpr",
"iomgr_internal_errqueue",
"//src/core:error",
"//src/core:iomgr_port",
],
)
grpc_cc_library(
name = "uri_parser",
srcs = [
"//src/core:lib/uri/uri_parser.cc",
],
hdrs = [
"//src/core:lib/uri/uri_parser.h",
],
external_deps = [
"absl/log:check",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = ["gpr"],
)
grpc_cc_library(
name = "parse_address",
srcs = [
"//src/core:lib/address_utils/parse_address.cc",
"//src/core:lib/iomgr/grpc_if_nametoindex_posix.cc",
"//src/core:lib/iomgr/grpc_if_nametoindex_unsupported.cc",
],
hdrs = [
"//src/core:lib/address_utils/parse_address.h",
"//src/core:lib/iomgr/grpc_if_nametoindex.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
],
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr",
"uri_parser",
"//src/core:error",
"//src/core:grpc_sockaddr",
"//src/core:iomgr_port",
"//src/core:resolved_address",
"//src/core:status_helper",
],
)
grpc_cc_library(
name = "backoff",
srcs = [
"//src/core:lib/backoff/backoff.cc",
],
hdrs = [
"//src/core:lib/backoff/backoff.h",
],
external_deps = ["absl/random"],
language = "c++",
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr_platform",
"//src/core:time",
],
)
grpc_cc_library(
name = "stats",
srcs = [
"//src/core:telemetry/stats.cc",
],
hdrs = [
"//src/core:telemetry/stats.h",
],
external_deps = [
"absl/strings",
"absl/types:span",
],
visibility = [
"@grpc:alt_grpc_base_legacy",
],
deps = [
"gpr",
"//src/core:histogram_view",
"//src/core:no_destruct",
"//src/core:stats_data",
],
)
grpc_cc_library(
name = "channel_stack_builder",
srcs = [
"//src/core:lib/channel/channel_stack_builder.cc",
],
hdrs = [
"//src/core:lib/channel/channel_stack_builder.h",
],
external_deps = [
"absl/status:statusor",
"absl/strings",
],
language = "c++",
visibility = ["@grpc:alt_grpc_base_legacy"],
deps = [
"gpr",
"ref_counted_ptr",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_stack_type",
],
)
grpc_cc_library(
name = "grpc_service_config_impl",
srcs = [
"//src/core:service_config/service_config_impl.cc",
],
hdrs = [
"//src/core:service_config/service_config_impl.h",
],
external_deps = [
"absl/log:check",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:client_channel"],
deps = [
"config",
"gpr",
"ref_counted_ptr",
"//src/core:channel_args",
"//src/core:grpc_service_config",
"//src/core:json",
"//src/core:json_args",
"//src/core:json_object_loader",
"//src/core:json_reader",
"//src/core:json_writer",
"//src/core:service_config_parser",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:validation_errors",
],
)
grpc_cc_library(
name = "endpoint_addresses",
srcs = [
"//src/core:resolver/endpoint_addresses.cc",
],
hdrs = [
"//src/core:resolver/endpoint_addresses.h",
],
external_deps = [
"absl/functional:function_ref",
"absl/log:check",
"absl/status",
"absl/status:statusor",
"absl/strings",
],
language = "c++",
visibility = ["@grpc:client_channel"],
deps = [
"gpr",
"gpr_platform",
"sockaddr_utils",
"//src/core:channel_args",
"//src/core:resolved_address",
"//src/core:useful",
],
)
grpc_cc_library(
name = "server_address",
hdrs = [
"//src/core:resolver/server_address.h",
],
language = "c++",
visibility = ["@grpc:client_channel"],
deps = [
"endpoint_addresses",
"gpr_public_hdrs",
],
)
grpc_cc_library(
name = "grpc_resolver",
srcs = [
"//src/core:resolver/resolver.cc",
"//src/core:resolver/resolver_registry.cc",
],
hdrs = [
"//src/core:resolver/resolver.h",
"//src/core:resolver/resolver_factory.h",
"//src/core:resolver/resolver_registry.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
],
language = "c++",
visibility = ["@grpc:client_channel"],
deps = [
"endpoint_addresses",
"gpr",
"grpc_trace",
"orphanable",
"ref_counted_ptr",
"server_address",
"uri_parser",
"//src/core:channel_args",
"//src/core:grpc_service_config",
"//src/core:iomgr_fwd",
],
)
grpc_cc_library(
name = "oob_backend_metric",
srcs = [
"//src/core:load_balancing/oob_backend_metric.cc",
],
hdrs = [
"//src/core:load_balancing/oob_backend_metric.h",
"//src/core:load_balancing/oob_backend_metric_internal.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/strings",
"@com_google_protobuf//upb:base",
"@com_google_protobuf//upb:mem",
],
language = "c++",
deps = [
"channelz",
"debug_location",
"exec_ctx",
"gpr",
"grpc_client_channel",
"grpc_public_hdrs",
"grpc_trace",
"orphanable",
"protobuf_duration_upb",
"ref_counted_ptr",
"xds_orca_service_upb",
"xds_orca_upb",
"//src/core:backend_metric_parser",
"//src/core:closure",
"//src/core:error",
"//src/core:grpc_backend_metric_data",
"//src/core:iomgr_fwd",
"//src/core:pollset_set",
"//src/core:slice",
"//src/core:subchannel_interface",
"//src/core:time",
"//src/core:unique_type_name",
],
)
grpc_cc_library(
name = "lb_child_policy_handler",
srcs = [
"//src/core:load_balancing/child_policy_handler.cc",
],
hdrs = [
"//src/core:load_balancing/child_policy_handler.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/strings",
],
language = "c++",
deps = [
"config",
"debug_location",
"gpr_public_hdrs",
"grpc_public_hdrs",
"grpc_trace",
"orphanable",
"ref_counted_ptr",
"//src/core:channel_args",
"//src/core:connectivity_state",
"//src/core:delegating_helper",
"//src/core:lb_policy",
"//src/core:lb_policy_registry",
"//src/core:pollset_set",
"//src/core:resolved_address",
"//src/core:subchannel_interface",
],
)
grpc_cc_library(
name = "grpc_client_channel",
srcs = [
"//src/core:client_channel/client_channel.cc",
"//src/core:client_channel/client_channel_factory.cc",
"//src/core:client_channel/client_channel_filter.cc",
"//src/core:client_channel/client_channel_plugin.cc",
"//src/core:client_channel/dynamic_filters.cc",
"//src/core:client_channel/global_subchannel_pool.cc",
"//src/core:client_channel/load_balanced_call_destination.cc",
"//src/core:client_channel/local_subchannel_pool.cc",
"//src/core:client_channel/retry_filter.cc",
"//src/core:client_channel/retry_filter_legacy_call_data.cc",
"//src/core:client_channel/subchannel.cc",
"//src/core:client_channel/subchannel_stream_client.cc",
],
hdrs = [
"//src/core:client_channel/client_channel.h",
"//src/core:client_channel/client_channel_factory.h",
"//src/core:client_channel/client_channel_filter.h",
"//src/core:client_channel/dynamic_filters.h",
"//src/core:client_channel/global_subchannel_pool.h",
"//src/core:client_channel/load_balanced_call_destination.h",
"//src/core:client_channel/local_subchannel_pool.h",
"//src/core:client_channel/retry_filter.h",
"//src/core:client_channel/retry_filter_legacy_call_data.h",
"//src/core:client_channel/subchannel.h",
"//src/core:client_channel/subchannel_interface_internal.h",
"//src/core:client_channel/subchannel_stream_client.h",
],
external_deps = [
"absl/base:core_headers",
"absl/cleanup",
"absl/container:flat_hash_set",
"absl/container:inlined_vector",
"absl/functional:any_invocable",
"absl/log",
"absl/log:check",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:cord",
"absl/types:optional",
"absl/types:variant",
],
language = "c++",
visibility = ["@grpc:client_channel"],
deps = [
"backoff",
"call_combiner",
"call_tracer",
"channel",
"channel_arg_names",
"channelz",
"config",
"debug_location",
"endpoint_addresses",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_resolver",
"grpc_security_base",
"grpc_service_config_impl",
"grpc_trace",
"iomgr",
"lb_child_policy_handler",
"orphanable",
"promise",
"ref_counted_ptr",
"sockaddr_utils",
"stats",
"uri_parser",
"work_serializer",
"//src/core:arena",
"//src/core:arena_promise",
"//src/core:backend_metric_parser",
"//src/core:call_destination",
"//src/core:call_filters",
"//src/core:call_spine",
"//src/core:cancel_callback",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_init",
"//src/core:channel_stack_type",
"//src/core:client_channel_backup_poller",
"//src/core:client_channel_internal_header",
"//src/core:client_channel_service_config",
"//src/core:closure",
"//src/core:config_selector",
"//src/core:connectivity_state",
"//src/core:construct_destruct",
"//src/core:context",
"//src/core:dual_ref_counted",
"//src/core:error",
"//src/core:error_utils",
"//src/core:exec_ctx_wakeup_scheduler",
"//src/core:experiments",
"//src/core:gpr_manual_constructor",
"//src/core:grpc_backend_metric_data",
"//src/core:grpc_channel_idle_filter",
"//src/core:grpc_service_config",
"//src/core:idle_filter_state",
"//src/core:init_internally",
"//src/core:interception_chain",
"//src/core:iomgr_fwd",
"//src/core:json",
"//src/core:latch",
"//src/core:lb_metadata",
"//src/core:lb_policy",
"//src/core:lb_policy_registry",
"//src/core:loop",
"//src/core:map",
"//src/core:memory_quota",
"//src/core:metadata",
"//src/core:metadata_batch",
"//src/core:metrics",
"//src/core:observable",
"//src/core:pipe",
"//src/core:poll",
"//src/core:pollset_set",
"//src/core:proxy_mapper_registry",
"//src/core:ref_counted",
"//src/core:resolved_address",
"//src/core:resource_quota",
"//src/core:retry_service_config",
"//src/core:retry_throttle",
"//src/core:seq",
"//src/core:single_set_ptr",
"//src/core:sleep",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_refcount",
"//src/core:stats_data",
"//src/core:status_helper",
"//src/core:subchannel_connector",
"//src/core:subchannel_interface",
"//src/core:subchannel_pool_interface",
"//src/core:time",
"//src/core:try_seq",
"//src/core:unique_type_name",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc_resolver_dns_ares",
srcs = [
"//src/core:resolver/dns/c_ares/dns_resolver_ares.cc",
"//src/core:resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc",
"//src/core:resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc",
"//src/core:resolver/dns/c_ares/grpc_ares_wrapper.cc",
"//src/core:resolver/dns/c_ares/grpc_ares_wrapper_posix.cc",
"//src/core:resolver/dns/c_ares/grpc_ares_wrapper_windows.cc",
],
hdrs = [
"//src/core:resolver/dns/c_ares/dns_resolver_ares.h",
"//src/core:resolver/dns/c_ares/grpc_ares_ev_driver.h",
"//src/core:resolver/dns/c_ares/grpc_ares_wrapper.h",
],
external_deps = [
"absl/base:core_headers",
"absl/functional:any_invocable",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
"address_sorting",
"cares",
],
language = "c++",
deps = [
"backoff",
"channel_arg_names",
"config",
"config_vars",
"debug_location",
"endpoint_addresses",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_grpclb_balancer_addresses",
"grpc_resolver",
"grpc_service_config_impl",
"grpc_trace",
"iomgr",
"iomgr_timer",
"orphanable",
"parse_address",
"ref_counted_ptr",
"sockaddr_utils",
"uri_parser",
"//src/core:channel_args",
"//src/core:closure",
"//src/core:error",
"//src/core:error_utils",
"//src/core:grpc_service_config",
"//src/core:grpc_sockaddr",
"//src/core:iomgr_fwd",
"//src/core:iomgr_port",
"//src/core:polling_resolver",
"//src/core:pollset_set",
"//src/core:resolved_address",
"//src/core:service_config_helper",
"//src/core:slice",
"//src/core:status_helper",
"//src/core:time",
],
)
grpc_cc_library(
name = "httpcli",
srcs = [
"//src/core:util/http_client/format_request.cc",
"//src/core:util/http_client/httpcli.cc",
"//src/core:util/http_client/parser.cc",
],
hdrs = [
"//src/core:util/http_client/format_request.h",
"//src/core:util/http_client/httpcli.h",
"//src/core:util/http_client/parser.h",
],
external_deps = [
"absl/base:core_headers",
"absl/functional:bind_front",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:httpcli"],
deps = [
"config",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_security_base",
"grpc_trace",
"handshaker",
"iomgr",
"orphanable",
"ref_counted_ptr",
"resource_quota_api",
"sockaddr_utils",
"uri_parser",
"//src/core:channel_args",
"//src/core:channel_args_preconditioning",
"//src/core:closure",
"//src/core:error",
"//src/core:error_utils",
"//src/core:handshaker_registry",
"//src/core:iomgr_fwd",
"//src/core:pollset_set",
"//src/core:resolved_address",
"//src/core:resource_quota",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:status_helper",
"//src/core:tcp_connect_handshaker",
"//src/core:time",
],
)
grpc_cc_library(
name = "grpc_alts_credentials",
srcs = [
"//src/core:lib/security/credentials/alts/alts_credentials.cc",
"//src/core:lib/security/security_connector/alts/alts_security_connector.cc",
],
hdrs = [
"//src/core:lib/security/credentials/alts/alts_credentials.h",
"//src/core:lib/security/security_connector/alts/alts_security_connector.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/strings",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"alts_util",
"channel_arg_names",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_core_credentials_header",
"grpc_public_hdrs",
"grpc_security_base",
"handshaker",
"iomgr",
"promise",
"ref_counted_ptr",
"tsi_alts_credentials",
"tsi_base",
"//src/core:arena_promise",
"//src/core:channel_args",
"//src/core:closure",
"//src/core:error",
"//src/core:iomgr_fwd",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:unique_type_name",
"//src/core:useful",
],
)
grpc_cc_library(
name = "tsi_fake_credentials",
srcs = [
"//src/core:tsi/fake_transport_security.cc",
],
hdrs = [
"//src/core:tsi/fake_transport_security.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
],
language = "c++",
visibility = [
"@grpc:public",
],
deps = [
"gpr",
"tsi_base",
"//src/core:slice",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc_jwt_credentials",
srcs = [
"//src/core:lib/security/credentials/jwt/json_token.cc",
"//src/core:lib/security/credentials/jwt/jwt_credentials.cc",
"//src/core:lib/security/credentials/jwt/jwt_verifier.cc",
],
hdrs = [
"//src/core:lib/security/credentials/jwt/json_token.h",
"//src/core:lib/security/credentials/jwt/jwt_credentials.h",
"//src/core:lib/security/credentials/jwt/jwt_verifier.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/time",
"absl/types:optional",
"libcrypto",
"libssl",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"api_trace",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_core_credentials_header",
"grpc_credentials_util",
"grpc_security_base",
"grpc_trace",
"httpcli",
"iomgr",
"orphanable",
"promise",
"ref_counted_ptr",
"uri_parser",
"//src/core:arena_promise",
"//src/core:closure",
"//src/core:error",
"//src/core:gpr_manual_constructor",
"//src/core:httpcli_ssl_credentials",
"//src/core:iomgr_fwd",
"//src/core:json",
"//src/core:json_reader",
"//src/core:json_writer",
"//src/core:metadata_batch",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:time",
"//src/core:tsi_ssl_types",
"//src/core:unique_type_name",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc_credentials_util",
srcs = [
"//src/core:lib/security/credentials/tls/tls_utils.cc",
"//src/core:lib/security/security_connector/load_system_roots_fallback.cc",
"//src/core:lib/security/security_connector/load_system_roots_supported.cc",
"//src/core:lib/security/security_connector/load_system_roots_windows.cc",
"//src/core:lib/security/util/json_util.cc",
],
hdrs = [
"//src/core:lib/security/credentials/tls/tls_utils.h",
"//src/core:lib/security/security_connector/load_system_roots.h",
"//src/core:lib/security/security_connector/load_system_roots_supported.h",
"//src/core:lib/security/util/json_util.h",
],
external_deps = [
"absl/log:log",
"absl/strings",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"config_vars",
"gpr",
"grpc_base",
"grpc_security_base",
"//src/core:error",
"//src/core:json",
"//src/core:load_file",
"//src/core:useful",
],
)
grpc_cc_library(
name = "tsi_alts_credentials",
srcs = [
"//src/core:tsi/alts/handshaker/alts_handshaker_client.cc",
"//src/core:tsi/alts/handshaker/alts_shared_resource.cc",
"//src/core:tsi/alts/handshaker/alts_tsi_handshaker.cc",
"//src/core:tsi/alts/handshaker/alts_tsi_utils.cc",
],
hdrs = [
"//src/core:tsi/alts/handshaker/alts_handshaker_client.h",
"//src/core:tsi/alts/handshaker/alts_shared_resource.h",
"//src/core:tsi/alts/handshaker/alts_tsi_handshaker.h",
"//src/core:tsi/alts/handshaker/alts_tsi_handshaker_private.h",
"//src/core:tsi/alts/handshaker/alts_tsi_utils.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/strings",
"@com_google_protobuf//upb:base",
"@com_google_protobuf//upb:mem",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"alts_upb",
"alts_util",
"channel",
"channel_create",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_core_credentials_header",
"grpc_security_base",
"tsi_alts_frame_protector",
"tsi_base",
"//src/core:channel_args",
"//src/core:closure",
"//src/core:env",
"//src/core:pollset_set",
"//src/core:slice",
],
)
grpc_cc_library(
name = "tsi_alts_frame_protector",
srcs = [
"//src/core:tsi/alts/crypt/aes_gcm.cc",
"//src/core:tsi/alts/crypt/gsec.cc",
"//src/core:tsi/alts/frame_protector/alts_counter.cc",
"//src/core:tsi/alts/frame_protector/alts_crypter.cc",
"//src/core:tsi/alts/frame_protector/alts_frame_protector.cc",
"//src/core:tsi/alts/frame_protector/alts_record_protocol_crypter_common.cc",
"//src/core:tsi/alts/frame_protector/alts_seal_privacy_integrity_crypter.cc",
"//src/core:tsi/alts/frame_protector/alts_unseal_privacy_integrity_crypter.cc",
"//src/core:tsi/alts/frame_protector/frame_handler.cc",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.cc",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc",
],
hdrs = [
"//src/core:tsi/alts/crypt/gsec.h",
"//src/core:tsi/alts/frame_protector/alts_counter.h",
"//src/core:tsi/alts/frame_protector/alts_crypter.h",
"//src/core:tsi/alts/frame_protector/alts_frame_protector.h",
"//src/core:tsi/alts/frame_protector/alts_record_protocol_crypter_common.h",
"//src/core:tsi/alts/frame_protector/frame_handler.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h",
"//src/core:tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/types:span",
"libcrypto",
"libssl",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"event_engine_base_hdrs",
"exec_ctx",
"gpr",
"gpr_platform",
"tsi_base",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:useful",
],
)
grpc_cc_library(
name = "tsi_ssl_session_cache",
srcs = [
"//src/core:tsi/ssl/session_cache/ssl_session_boringssl.cc",
"//src/core:tsi/ssl/session_cache/ssl_session_cache.cc",
"//src/core:tsi/ssl/session_cache/ssl_session_openssl.cc",
],
hdrs = [
"//src/core:tsi/ssl/session_cache/ssl_session.h",
"//src/core:tsi/ssl/session_cache/ssl_session_cache.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/memory",
"libssl",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"cpp_impl_of",
"gpr",
"grpc_public_hdrs",
"//src/core:ref_counted",
"//src/core:slice",
],
)
grpc_cc_library(
name = "tsi_ssl_credentials",
srcs = [
"//src/core:lib/security/security_connector/ssl_utils.cc",
"//src/core:tsi/ssl/key_logging/ssl_key_logging.cc",
"//src/core:tsi/ssl_transport_security.cc",
"//src/core:tsi/ssl_transport_security_utils.cc",
],
hdrs = [
"//src/core:lib/security/security_connector/ssl_utils.h",
"//src/core:tsi/ssl/key_logging/ssl_key_logging.h",
"//src/core:tsi/ssl_transport_security.h",
"//src/core:tsi/ssl_transport_security_utils.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"libcrypto",
"libssl",
],
language = "c++",
visibility = ["@grpc:public"],
deps = [
"channel_arg_names",
"config_vars",
"gpr",
"grpc_base",
"grpc_core_credentials_header",
"grpc_credentials_util",
"grpc_public_hdrs",
"grpc_security_base",
"ref_counted_ptr",
"tsi_base",
"tsi_ssl_session_cache",
"//src/core:channel_args",
"//src/core:error",
"//src/core:grpc_crl_provider",
"//src/core:grpc_transport_chttp2_alpn",
"//src/core:load_file",
"//src/core:ref_counted",
"//src/core:slice",
"//src/core:tsi_ssl_types",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc_http_filters",
srcs = [
"//src/core:ext/filters/http/client/http_client_filter.cc",
"//src/core:ext/filters/http/http_filters_plugin.cc",
"//src/core:ext/filters/http/message_compress/compression_filter.cc",
"//src/core:ext/filters/http/server/http_server_filter.cc",
],
hdrs = [
"//src/core:ext/filters/http/client/http_client_filter.h",
"//src/core:ext/filters/http/message_compress/compression_filter.h",
"//src/core:ext/filters/http/server/http_server_filter.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:http"],
deps = [
"call_tracer",
"channel_arg_names",
"config",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"promise",
"//src/core:activity",
"//src/core:arena",
"//src/core:arena_promise",
"//src/core:channel_args",
"//src/core:channel_fwd",
"//src/core:channel_stack_type",
"//src/core:compression",
"//src/core:context",
"//src/core:experiments",
"//src/core:grpc_message_size_filter",
"//src/core:latch",
"//src/core:map",
"//src/core:metadata_batch",
"//src/core:percent_encoding",
"//src/core:pipe",
"//src/core:poll",
"//src/core:prioritized_race",
"//src/core:race",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:status_conversion",
],
)
grpc_cc_library(
name = "grpc_grpclb_balancer_addresses",
srcs = [
"//src/core:load_balancing/grpclb/grpclb_balancer_addresses.cc",
],
hdrs = [
"//src/core:load_balancing/grpclb/grpclb_balancer_addresses.h",
],
language = "c++",
visibility = ["@grpc:grpclb"],
deps = [
"endpoint_addresses",
"gpr_platform",
"grpc_public_hdrs",
"//src/core:channel_args",
"//src/core:useful",
],
)
grpc_cc_library(
name = "xds_client",
srcs = [
"//src/core:xds/xds_client/xds_api.cc",
"//src/core:xds/xds_client/xds_bootstrap.cc",
"//src/core:xds/xds_client/xds_client.cc",
"//src/core:xds/xds_client/xds_client_stats.cc",
],
hdrs = [
"//src/core:xds/xds_client/xds_api.h",
"//src/core:xds/xds_client/xds_bootstrap.h",
"//src/core:xds/xds_client/xds_channel_args.h",
"//src/core:xds/xds_client/xds_client.h",
"//src/core:xds/xds_client/xds_client_stats.h",
"//src/core:xds/xds_client/xds_metrics.h",
"//src/core:xds/xds_client/xds_resource_type.h",
"//src/core:xds/xds_client/xds_resource_type_impl.h",
"//src/core:xds/xds_client/xds_transport.h",
],
external_deps = [
"absl/base:core_headers",
"absl/cleanup",
"absl/log:check",
"absl/log:log",
"absl/memory",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
"@com_google_protobuf//upb:base",
"@com_google_protobuf//upb:mem",
"@com_google_protobuf//upb:text",
"@com_google_protobuf//upb:json",
"@com_google_protobuf//upb:reflection",
],
language = "c++",
tags = ["nofixdeps"],
visibility = ["@grpc:xds_client_core"],
deps = [
"backoff",
"call_tracer",
"debug_location",
"endpoint_addresses",
"envoy_admin_upb",
"envoy_config_core_upb",
"envoy_config_endpoint_upb",
"envoy_service_discovery_upb",
"envoy_service_discovery_upbdefs",
"envoy_service_load_stats_upb",
"envoy_service_load_stats_upbdefs",
"envoy_service_status_upb",
"envoy_service_status_upbdefs",
"event_engine_base_hdrs",
"exec_ctx",
"google_rpc_status_upb",
"gpr",
"grpc_trace",
"orphanable",
"protobuf_any_upb",
"protobuf_duration_upb",
"protobuf_struct_upb",
"protobuf_timestamp_upb",
"ref_counted_ptr",
"uri_parser",
"work_serializer",
"//src/core:default_event_engine",
"//src/core:dual_ref_counted",
"//src/core:env",
"//src/core:json",
"//src/core:per_cpu",
"//src/core:ref_counted",
"//src/core:time",
"//src/core:upb_utils",
"//src/core:useful",
],
)
grpc_cc_library(
name = "grpc_mock_cel",
hdrs = [
"//src/core:lib/security/authorization/mock_cel/activation.h",
"//src/core:lib/security/authorization/mock_cel/cel_expr_builder_factory.h",
"//src/core:lib/security/authorization/mock_cel/cel_expression.h",
"//src/core:lib/security/authorization/mock_cel/cel_value.h",
"//src/core:lib/security/authorization/mock_cel/evaluator_core.h",
"//src/core:lib/security/authorization/mock_cel/flat_expr_builder.h",
],
external_deps = [
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/types:span",
],
language = "c++",
deps = [
"google_api_expr_v1alpha1_syntax_upb",
"gpr_public_hdrs",
],
)
grpc_cc_library(
name = "grpc_resolver_fake",
srcs = ["//src/core:resolver/fake/fake_resolver.cc"],
hdrs = ["//src/core:resolver/fake/fake_resolver.h"],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/strings",
"absl/time",
"absl/types:optional",
],
language = "c++",
visibility = [
"//test:__subpackages__",
"@grpc:grpc_resolver_fake",
],
deps = [
"config",
"debug_location",
"gpr",
"grpc_public_hdrs",
"grpc_resolver",
"orphanable",
"ref_counted_ptr",
"uri_parser",
"work_serializer",
"//src/core:channel_args",
"//src/core:notification",
"//src/core:ref_counted",
"//src/core:useful",
],
)
grpc_cc_library(
name = "chttp2_frame",
srcs = [
"//src/core:ext/transport/chttp2/transport/frame.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/frame.h",
],
external_deps = [
"absl/log:check",
"absl/status",
"absl/status:statusor",
"absl/strings",
"absl/types:span",
"absl/types:variant",
],
deps = [
"gpr",
"//src/core:slice",
"//src/core:slice_buffer",
],
)
grpc_cc_library(
name = "chttp2_legacy_frame",
hdrs = [
"//src/core:ext/transport/chttp2/transport/legacy_frame.h",
],
deps = ["gpr"],
)
grpc_cc_library(
name = "hpack_parser_table",
srcs = [
"//src/core:ext/transport/chttp2/transport/hpack_parser_table.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/hpack_parser_table.h",
],
external_deps = [
"absl/functional:function_ref",
"absl/log:check",
"absl/log:log",
"absl/status",
"absl/strings",
],
deps = [
"gpr",
"gpr_platform",
"grpc_trace",
"hpack_parse_result",
"//src/core:hpack_constants",
"//src/core:metadata_batch",
"//src/core:no_destruct",
"//src/core:parsed_metadata",
"//src/core:slice",
],
)
grpc_cc_library(
name = "hpack_parse_result",
srcs = [
"//src/core:ext/transport/chttp2/transport/hpack_parse_result.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/hpack_parse_result.h",
],
external_deps = [
"absl/log:check",
"absl/status",
"absl/strings",
"absl/strings:str_format",
"absl/types:optional",
],
deps = [
"gpr",
"grpc_base",
"ref_counted_ptr",
"//src/core:error",
"//src/core:hpack_constants",
"//src/core:metadata_batch",
"//src/core:ref_counted",
"//src/core:slice",
"//src/core:status_helper",
],
)
grpc_cc_library(
name = "hpack_parser",
srcs = [
"//src/core:ext/transport/chttp2/transport/hpack_parser.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/hpack_parser.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
"absl/log:log",
"absl/random:bit_gen_ref",
"absl/status",
"absl/strings",
"absl/types:optional",
"absl/types:span",
"absl/types:variant",
],
deps = [
"call_tracer",
"chttp2_legacy_frame",
"gpr",
"gpr_platform",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"hpack_parse_result",
"hpack_parser_table",
"stats",
"//src/core:decode_huff",
"//src/core:error",
"//src/core:hpack_constants",
"//src/core:match",
"//src/core:metadata_batch",
"//src/core:metadata_info",
"//src/core:parsed_metadata",
"//src/core:random_early_detection",
"//src/core:slice",
"//src/core:slice_refcount",
"//src/core:stats_data",
],
)
grpc_cc_library(
name = "hpack_encoder",
srcs = [
"//src/core:ext/transport/chttp2/transport/hpack_encoder.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/hpack_encoder.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/strings",
],
deps = [
"chttp2_bin_encoder",
"chttp2_legacy_frame",
"chttp2_varint",
"gpr",
"gpr_platform",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"//src/core:hpack_constants",
"//src/core:hpack_encoder_table",
"//src/core:metadata_batch",
"//src/core:metadata_compression_traits",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:time",
"//src/core:timeout_encoding",
],
)
grpc_cc_library(
name = "chttp2_bin_encoder",
srcs = [
"//src/core:ext/transport/chttp2/transport/bin_encoder.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/bin_encoder.h",
],
external_deps = [
"absl/log:check",
],
deps = [
"gpr",
"gpr_platform",
"//src/core:huffsyms",
"//src/core:slice",
],
)
grpc_cc_library(
name = "chttp2_varint",
srcs = [
"//src/core:ext/transport/chttp2/transport/varint.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/varint.h",
],
external_deps = [
"absl/base:core_headers",
"absl/log:check",
],
deps = ["gpr"],
)
grpc_cc_library(
name = "chttp2_context_list_entry",
hdrs = [
"//src/core:ext/transport/chttp2/transport/context_list_entry.h",
],
deps = [
"gpr",
"tcp_tracer",
],
)
grpc_cc_library(
name = "tcp_tracer",
hdrs = [
"//src/core:telemetry/tcp_tracer.h",
],
external_deps = [
"absl/time",
"absl/types:optional",
],
language = "c++",
visibility = ["@grpc:tcp_tracer"],
deps = ["gpr"],
)
grpc_cc_library(
name = "grpc_transport_chttp2",
srcs = [
"//src/core:ext/transport/chttp2/transport/bin_decoder.cc",
"//src/core:ext/transport/chttp2/transport/chttp2_transport.cc",
"//src/core:ext/transport/chttp2/transport/frame_data.cc",
"//src/core:ext/transport/chttp2/transport/frame_goaway.cc",
"//src/core:ext/transport/chttp2/transport/frame_ping.cc",
"//src/core:ext/transport/chttp2/transport/frame_rst_stream.cc",
"//src/core:ext/transport/chttp2/transport/frame_settings.cc",
"//src/core:ext/transport/chttp2/transport/frame_window_update.cc",
"//src/core:ext/transport/chttp2/transport/parsing.cc",
"//src/core:ext/transport/chttp2/transport/stream_lists.cc",
"//src/core:ext/transport/chttp2/transport/writing.cc",
],
hdrs = [
"//src/core:ext/transport/chttp2/transport/bin_decoder.h",
"//src/core:ext/transport/chttp2/transport/chttp2_transport.h",
"//src/core:ext/transport/chttp2/transport/frame_data.h",
"//src/core:ext/transport/chttp2/transport/frame_goaway.h",
"//src/core:ext/transport/chttp2/transport/frame_ping.h",
"//src/core:ext/transport/chttp2/transport/frame_rst_stream.h",
"//src/core:ext/transport/chttp2/transport/frame_settings.h",
"//src/core:ext/transport/chttp2/transport/frame_window_update.h",
"//src/core:ext/transport/chttp2/transport/internal.h",
],
external_deps = [
"absl/base:core_headers",
"absl/container:flat_hash_map",
"absl/hash",
"absl/log:check",
"absl/log:log",
"absl/meta:type_traits",
"absl/random",
"absl/random:bit_gen_ref",
"absl/random:distributions",
"absl/status",
"absl/strings",
"absl/strings:cord",
"absl/strings:str_format",
"absl/types:optional",
"absl/types:variant",
],
language = "c++",
visibility = ["@grpc:grpclb"],
deps = [
"call_tracer",
"channel_arg_names",
"channelz",
"chttp2_context_list_entry",
"chttp2_legacy_frame",
"chttp2_varint",
"config_vars",
"debug_location",
"exec_ctx",
"gpr",
"grpc_base",
"grpc_public_hdrs",
"grpc_trace",
"hpack_encoder",
"hpack_parser",
"hpack_parser_table",
"httpcli",
"iomgr",
"iomgr_buffer_list",
"ref_counted_ptr",
"stats",
"tcp_tracer",
"//src/core:arena",
"//src/core:bdp_estimator",
"//src/core:bitset",
"//src/core:channel_args",
"//src/core:chttp2_flow_control",
"//src/core:closure",
"//src/core:connectivity_state",
"//src/core:error",
"//src/core:error_utils",
"//src/core:event_engine_extensions",
"//src/core:event_engine_query_extensions",
"//src/core:experiments",
"//src/core:gpr_manual_constructor",
"//src/core:http2_errors",
"//src/core:http2_settings",
"//src/core:init_internally",
"//src/core:iomgr_fwd",
"//src/core:iomgr_port",
"//src/core:match",
"//src/core:max_concurrent_streams_policy",
"//src/core:memory_quota",
"//src/core:metadata_batch",
"//src/core:metadata_info",
"//src/core:ping_abuse_policy",
"//src/core:ping_callbacks",
"//src/core:ping_rate_policy",
"//src/core:poll",
"//src/core:random_early_detection",
"//src/core:ref_counted",
"//src/core:resource_quota",
"//src/core:slice",
"//src/core:slice_buffer",
"//src/core:slice_refcount",
"//src/core:stats_data",
"//src/core:status_conversion",
"//src/core:status_helper",
"//src/core:time",
"//src/core:useful",
"//src/core:write_size_policy",
],
)
grpc_cc_library(
name = "grpcpp_status",
srcs = [
"src/cpp/util/status.cc",
],
public_hdrs = [
"include/grpc++/support/status.h",
"include/grpcpp/impl/status.h",
"include/grpcpp/support/status.h",
"include/grpc++/impl/codegen/status.h",
"include/grpcpp/impl/codegen/status.h",
],
deps = [
"gpr_platform",
"grpc++_public_hdrs",
"grpc_public_hdrs",
],
)
grpc_cc_library(
name = "grpcpp_chaotic_good",
srcs = [
"src/cpp/ext/chaotic_good.cc",
],
hdrs = [
"src/cpp/ext/chaotic_good.h",
],
visibility = ["@grpc:chaotic_good"],
deps = [
"gpr",
"grpc++_base",
"grpc_public_hdrs",
"//src/core:chaotic_good_connector",
"//src/core:chaotic_good_server",
],
)
grpc_cc_library(
name = "subprocess",
srcs = [
"//src/core:util/subprocess_posix.cc",
"//src/core:util/subprocess_windows.cc",
],
hdrs = [
"//src/core:util/subprocess.h",
],
external_deps = [
"absl/log:check",
"absl/log:log",
"absl/strings",
"absl/types:span",
],
deps = [
"gpr",
"//src/core:strerror",
"//src/core:tchar",
],
)
# TODO(yashykt): Remove the UPB definitions from here once they are no longer needed
### UPB Targets
grpc_upb_proto_library(
name = "envoy_admin_upb",
deps = ["@envoy_api//envoy/admin/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_cluster_upb",
deps = ["@envoy_api//envoy/config/cluster/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_config_cluster_upbdefs",
deps = ["@envoy_api//envoy/config/cluster/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_core_upb",
deps = ["@envoy_api//envoy/config/core/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_endpoint_upb",
deps = ["@envoy_api//envoy/config/endpoint/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_config_endpoint_upbdefs",
deps = ["@envoy_api//envoy/config/endpoint/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_listener_upb",
deps = ["@envoy_api//envoy/config/listener/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_config_listener_upbdefs",
deps = ["@envoy_api//envoy/config/listener/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_rbac_upb",
deps = ["@envoy_api//envoy/config/rbac/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_config_route_upb",
deps = ["@envoy_api//envoy/config/route/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_config_route_upbdefs",
deps = ["@envoy_api//envoy/config/route/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_clusters_aggregate_upb",
deps = ["@envoy_api//envoy/extensions/clusters/aggregate/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_clusters_aggregate_upbdefs",
deps = ["@envoy_api//envoy/extensions/clusters/aggregate/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_common_fault_upb",
deps = ["@envoy_api//envoy/extensions/filters/common/fault/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_http_fault_upb",
deps = ["@envoy_api//envoy/extensions/filters/http/fault/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_filters_http_fault_upbdefs",
deps = ["@envoy_api//envoy/extensions/filters/http/fault/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_http_rbac_upb",
deps = ["@envoy_api//envoy/extensions/filters/http/rbac/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_filters_http_rbac_upbdefs",
deps = ["@envoy_api//envoy/extensions/filters/http/rbac/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_http_router_upb",
deps = ["@envoy_api//envoy/extensions/filters/http/router/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_filters_http_router_upbdefs",
deps = ["@envoy_api//envoy/extensions/filters/http/router/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_http_stateful_session_upb",
deps = ["@envoy_api//envoy/extensions/filters/http/stateful_session/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_filters_http_stateful_session_upbdefs",
deps = ["@envoy_api//envoy/extensions/filters/http/stateful_session/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_http_stateful_session_cookie_upb",
deps = ["@envoy_api//envoy/extensions/http/stateful_session/cookie/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_http_stateful_session_cookie_upbdefs",
deps = ["@envoy_api//envoy/extensions/http/stateful_session/cookie/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_type_http_upb",
deps = ["@envoy_api//envoy/type/http/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_load_balancing_policies_client_side_weighted_round_robin_upb",
deps = ["@envoy_api//envoy/extensions/load_balancing_policies/client_side_weighted_round_robin/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_load_balancing_policies_pick_first_upb",
deps = ["@envoy_api//envoy/extensions/load_balancing_policies/pick_first/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_load_balancing_policies_ring_hash_upb",
deps = ["@envoy_api//envoy/extensions/load_balancing_policies/ring_hash/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_load_balancing_policies_wrr_locality_upb",
deps = ["@envoy_api//envoy/extensions/load_balancing_policies/wrr_locality/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_filters_network_http_connection_manager_upb",
deps = ["@envoy_api//envoy/extensions/filters/network/http_connection_manager/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_filters_network_http_connection_manager_upbdefs",
deps = ["@envoy_api//envoy/extensions/filters/network/http_connection_manager/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_transport_sockets_tls_upb",
deps = ["@envoy_api//envoy/extensions/transport_sockets/tls/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_transport_sockets_tls_upbdefs",
deps = ["@envoy_api//envoy/extensions/transport_sockets/tls/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_extensions_upstreams_http_upb",
deps = ["@envoy_api//envoy/extensions/upstreams/http/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_extensions_upstreams_http_upbdefs",
deps = ["@envoy_api//envoy/extensions/upstreams/http/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_service_discovery_upb",
deps = ["@envoy_api//envoy/service/discovery/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_service_discovery_upbdefs",
deps = ["@envoy_api//envoy/service/discovery/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_service_load_stats_upb",
deps = ["@envoy_api//envoy/service/load_stats/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_service_load_stats_upbdefs",
deps = ["@envoy_api//envoy/service/load_stats/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_service_status_upb",
deps = ["@envoy_api//envoy/service/status/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "envoy_service_status_upbdefs",
deps = ["@envoy_api//envoy/service/status/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_type_matcher_upb",
deps = ["@envoy_api//envoy/type/matcher/v3:pkg"],
)
grpc_upb_proto_library(
name = "envoy_type_upb",
deps = ["@envoy_api//envoy/type/v3:pkg"],
)
grpc_upb_proto_library(
name = "xds_type_upb",
deps = ["@com_github_cncf_xds//xds/type/v3:pkg"],
)
grpc_upb_proto_reflection_library(
name = "xds_type_upbdefs",
deps = ["@com_github_cncf_xds//xds/type/v3:pkg"],
)
grpc_upb_proto_library(
name = "xds_orca_upb",
deps = ["@com_github_cncf_xds//xds/data/orca/v3:pkg"],
)
grpc_upb_proto_library(
name = "xds_orca_service_upb",
deps = ["@com_github_cncf_xds//xds/service/orca/v3:pkg"],
)
grpc_upb_proto_library(
name = "grpc_health_upb",
deps = ["//src/proto/grpc/health/v1:health_proto_descriptor"],
)
grpc_upb_proto_library(
name = "google_rpc_status_upb",
deps = ["@com_google_googleapis//google/rpc:status_proto"],
)
grpc_upb_proto_reflection_library(
name = "google_rpc_status_upbdefs",
deps = ["@com_google_googleapis//google/rpc:status_proto"],
)
grpc_upb_proto_library(
name = "google_api_expr_v1alpha1_syntax_upb",
deps = ["@com_google_googleapis//google/api/expr/v1alpha1:syntax_proto"],
)
grpc_upb_proto_library(
name = "grpc_lb_upb",
deps = ["//src/proto/grpc/lb/v1:load_balancer_proto_descriptor"],
)
grpc_upb_proto_library(
name = "alts_upb",
deps = ["//src/proto/grpc/gcp:alts_handshaker_proto"],
)
grpc_upb_proto_library(
name = "rls_upb",
deps = ["//src/proto/grpc/lookup/v1:rls_proto_descriptor"],
)
grpc_upb_proto_library(
name = "rls_config_upb",
deps = ["//src/proto/grpc/lookup/v1:rls_config_proto_descriptor"],
)
grpc_upb_proto_reflection_library(
name = "rls_config_upbdefs",
deps = ["//src/proto/grpc/lookup/v1:rls_config_proto_descriptor"],
)
WELL_KNOWN_PROTO_TARGETS = [
"any",
"duration",
"empty",
"struct",
"timestamp",
"wrappers",
]
[grpc_upb_proto_library(
name = "protobuf_" + target + "_upb",
deps = ["@com_google_protobuf//:" + target + "_proto"],
) for target in WELL_KNOWN_PROTO_TARGETS]
[grpc_upb_proto_reflection_library(
name = "protobuf_" + target + "_upbdefs",
deps = ["@com_google_protobuf//:" + target + "_proto"],
) for target in WELL_KNOWN_PROTO_TARGETS]
grpc_generate_one_off_targets()
filegroup(
name = "root_certificates",
srcs = [
"etc/roots.pem",
],
visibility = ["//visibility:public"],
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/grpc-framework.git
git@gitee.com:mirrors/grpc-framework.git
mirrors
grpc-framework
grpc-framework
master

搜索帮助