grpc: fix linking issues with gRPC rules
Change-Id: Iec2596190889b68f54d7250fbd1a03b09c155afc
diff --git a/buildtools/grpc/BUILD.gn b/buildtools/grpc/BUILD.gn
index 16ca941..a13fb50 100644
--- a/buildtools/grpc/BUILD.gn
+++ b/buildtools/grpc/BUILD.gn
@@ -4924,7 +4924,9 @@
":address_sorting",
":boringssl",
":gpr",
+ ":re2",
":upb",
+ "../../gn:zlib",
]
public_configs = [ "..:grpc_internal_config" ]
configs -= [ "//gn/standalone:extra_warnings" ]
@@ -6396,6 +6398,7 @@
":absl_types_span",
":absl_utility_utility",
":gpr",
+ ":re2",
":upb",
]
public_configs = [ "..:grpc_internal_config" ]
diff --git a/tools/gen_grpc_build_gn.py b/tools/gen_grpc_build_gn.py
index 48993ca..98e9083 100755
--- a/tools/gen_grpc_build_gn.py
+++ b/tools/gen_grpc_build_gn.py
@@ -94,6 +94,10 @@
def get_deps_for_target(target: str) -> List[str]:
if target == 'grpc_plugin_support':
return ['..:protoc_lib']
+ if target == 'grpc':
+ return [':re2', '../../gn:zlib']
+ if target == 'grpc_authorization_provider':
+ return [':re2']
return []