Do not build channelz when gRPC_USE_PROTO_LITE

pull/21011/head
Zack Galbreath 5 years ago
parent af1eaa0d05
commit 2837d000e9
  1. 2
      CMakeLists.txt
  2. 4
      templates/CMakeLists.txt.template

@ -4831,7 +4831,7 @@ if(gRPC_INSTALL)
endif()
if(gRPC_BUILD_CODEGEN)
if(gRPC_BUILD_CODEGEN AND NOT gRPC_USE_PROTO_LITE)
add_library(grpcpp_channelz
src/cpp/server/channelz/channelz_service.cc
src/cpp/server/channelz/channelz_service_plugin.cc

@ -438,8 +438,12 @@
<%def name="cc_library(lib)">
% if any(proto_re.match(src) for src in lib.src):
% if lib.name == 'grpcpp_channelz':
if(gRPC_BUILD_CODEGEN AND NOT gRPC_USE_PROTO_LITE)
% else:
if(gRPC_BUILD_CODEGEN)
% endif
% endif
add_library(${lib.name}${' SHARED' if lib.get('dll', None) == 'only' else ''}
% for src in lib.src:
% if not proto_re.match(src):

Loading…
Cancel
Save