Skip to content

Commit

Permalink
Manually add echo.proto to pass Portability build test
Browse files Browse the repository at this point in the history
  • Loading branch information
nanahpang committed May 6, 2019
1 parent 1ba5f5c commit 2d5a975
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2917,7 +2917,13 @@ target_link_libraries(test_tcp_server
endif (gRPC_BUILD_TESTS)
if (gRPC_BUILD_TESTS)

if (gRPC_BUILD_CODEGEN)
add_library(callback_test_service
${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.cc
${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.cc
${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.pb.h
${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo.grpc.pb.h
${_gRPC_PROTO_GENS_DIR}/src/proto/grpc/testing/echo_mock.grpc.pb.h
test/cpp/microbenchmarks/callback_test_service.cc
)

Expand All @@ -2932,6 +2938,9 @@ if(WIN32 AND MSVC)
endif()
endif()

protobuf_generate_grpc_cpp(
src/proto/grpc/testing/echo.proto
)

target_include_directories(callback_test_service
PUBLIC $<INSTALL_INTERFACE:${gRPC_INSTALL_INCLUDEDIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand Down Expand Up @@ -2964,6 +2973,7 @@ target_link_libraries(callback_test_service
${_gRPC_GFLAGS_LIBRARIES}
)

endif (gRPC_BUILD_CODEGEN)

endif (gRPC_BUILD_TESTS)

Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5306,6 +5306,7 @@ endif


LIBCALLBACK_TEST_SERVICE_SRC = \
$(GENDIR)/src/proto/grpc/testing/echo.pb.cc $(GENDIR)/src/proto/grpc/testing/echo.grpc.pb.cc \
test/cpp/microbenchmarks/callback_test_service.cc \

PUBLIC_HEADERS_CXX += \
Expand Down Expand Up @@ -5353,6 +5354,7 @@ ifneq ($(NO_DEPS),true)
-include $(LIBCALLBACK_TEST_SERVICE_OBJS:.o=.dep)
endif
endif
$(OBJDIR)/$(CONFIG)/test/cpp/microbenchmarks/callback_test_service.o: $(GENDIR)/src/proto/grpc/testing/echo.pb.cc $(GENDIR)/src/proto/grpc/testing/echo.grpc.pb.cc


LIBGRPC++_SRC = \
Expand Down
1 change: 1 addition & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,7 @@ libs:
headers:
- test/cpp/microbenchmarks/callback_test_service.h
src:
- src/proto/grpc/testing/echo.proto
- test/cpp/microbenchmarks/callback_test_service.cc
deps:
- grpc_benchmark
Expand Down
1 change: 1 addition & 0 deletions grpc.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,7 @@
'grpc++_test_config',
],
'sources': [
'src/proto/grpc/testing/echo.proto',
'test/cpp/microbenchmarks/callback_test_service.cc',
],
},
Expand Down
1 change: 1 addition & 0 deletions test/cpp/microbenchmarks/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ grpc_cc_library(
tags = ["no_windows"],
deps = [
":helpers",
"//src/proto/grpc/testing:echo_proto",
"//test/cpp/util:test_util",
],
)
Expand Down
3 changes: 3 additions & 0 deletions tools/run_tests/generated/sources_and_headers.json
Original file line number Diff line number Diff line change
Expand Up @@ -6686,6 +6686,9 @@
"grpc_unsecure"
],
"headers": [
"src/proto/grpc/testing/echo.grpc.pb.h",
"src/proto/grpc/testing/echo.pb.h",
"src/proto/grpc/testing/echo_mock.grpc.pb.h",
"test/cpp/microbenchmarks/callback_test_service.h"
],
"is_filegroup": false,
Expand Down

0 comments on commit 2d5a975

Please sign in to comment.