From e6b1edf42ab8f8f142352406899deeb178bb90ee Mon Sep 17 00:00:00 2001 From: Spencer Fang Date: Thu, 4 Oct 2018 12:00:28 -0700 Subject: Split grpc_cli target into two targets Let's have a util target that contains everything except for the CLI front end. This way, users can depend on the util classes without any risk of CLI flag collisions. --- test/cpp/util/BUILD | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'test/cpp/util') diff --git a/test/cpp/util/BUILD b/test/cpp/util/BUILD index 477862a0ee..c8d4333ef0 100644 --- a/test/cpp/util/BUILD +++ b/test/cpp/util/BUILD @@ -117,11 +117,10 @@ grpc_cc_library( ) grpc_cc_library( - name = "grpc_cli_libs", + name = "grpc_cli_utils", srcs = [ "cli_call.cc", "cli_credentials.cc", - "grpc_tool.cc", "proto_file_parser.cc", "service_describer.cc", ], @@ -129,7 +128,6 @@ grpc_cc_library( "cli_call.h", "cli_credentials.h", "config_grpc_cli.h", - "grpc_tool.h", "proto_file_parser.h", "service_describer.h", ], @@ -145,6 +143,22 @@ grpc_cc_library( ], ) +grpc_cc_library( + name = "grpc_cli_libs", + srcs = [ + "grpc_tool.cc", + ], + hdrs = [ + "grpc_tool.h", + ], + external_deps = [ + "gflags", + ], + deps = [ + ":grpc_cli_utils", + ], +) + grpc_cc_library( name = "metrics_server_lib", srcs = [ -- cgit v1.2.3