From 00545fa0fab227ed4a93bf6a67f12648d8a42cad Mon Sep 17 00:00:00 2001 From: Yousuk Seung Date: Thu, 3 Oct 2024 10:21:21 -0700 Subject: [PATCH] [generic API] add separate targets for cq generic stub/service (#36447) (#37838) This allows to restrict CQ based generic stub/service use. See https://github.com/grpc/proposal/pull/426 Closes #37838 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37838 from yousukseung:generic-stub 3e7c558372e733bfd6c73279619eb10040c6e061 PiperOrigin-RevId: 681932616 --- BUILD | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/BUILD b/BUILD index 51633565bb3..4d57a053c1f 100644 --- a/BUILD +++ b/BUILD @@ -2961,6 +2961,18 @@ grpc_cc_library( ], ) +grpc_cc_library( + name = "generic_stub", + hdrs = [ + "include/grpcpp/generic/generic_stub.h", + ], + language = "c++", + visibility = ["@grpc:public"], + deps = [ + "generic_stub_internal", + ], +) + grpc_cc_library( name = "generic_stub_callback", hdrs = [ @@ -2973,6 +2985,18 @@ grpc_cc_library( ], ) +grpc_cc_library( + name = "async_generic_service", + hdrs = [ + "include/grpcpp/generic/async_generic_service.h", + ], + language = "c++", + visibility = ["@grpc:public"], + deps = [ + "grpc++_public_hdrs", + ], +) + grpc_cc_library( name = "callback_generic_service", hdrs = [