@ -332,9 +332,9 @@ endif
.SECONDARY = %.pb.h %.pb.cc
PROTOC_PLUGINS = $( BINDIR) /$( CONFIG) /cpp_plugin $( BINDIR) /$( CONFIG) /ruby_plugin
PROTOC_PLUGINS = $( BINDIR) /$( CONFIG) /grpc_ cpp_plugin $( BINDIR) /$( CONFIG) /grpc_ ruby_plugin
i f e q ( $( DEP_MISSING ) , )
all : static shared
all : static shared plugins
dep_error :
@echo "You shouldn't see this message - all of your dependencies are correct."
e l s e
@ -498,7 +498,7 @@ timeout_encoding_test: $(BINDIR)/$(CONFIG)/timeout_encoding_test
transport_metadata_test : $( BINDIR ) /$( CONFIG ) /transport_metadata_test
async_end2end_test : $( BINDIR ) /$( CONFIG ) /async_end 2end_test
channel_arguments_test : $( BINDIR ) /$( CONFIG ) /channel_arguments_test
cpp_plugin : $( BINDIR ) /$( CONFIG ) /cpp_plugin
grpc_ cpp_plugin: $( BINDIR ) /$( CONFIG ) /grpc_ cpp_plugin
credentials_test : $( BINDIR ) /$( CONFIG ) /credentials_test
end2end_test : $( BINDIR ) /$( CONFIG ) /end 2end_test
interop_client : $( BINDIR ) /$( CONFIG ) /interop_client
@ -508,7 +508,7 @@ pubsub_publisher_test: $(BINDIR)/$(CONFIG)/pubsub_publisher_test
pubsub_subscriber_test : $( BINDIR ) /$( CONFIG ) /pubsub_subscriber_test
qps_client : $( BINDIR ) /$( CONFIG ) /qps_client
qps_server : $( BINDIR ) /$( CONFIG ) /qps_server
ruby_plugin : $( BINDIR ) /$( CONFIG ) /ruby_plugin
grpc_ ruby_plugin: $( BINDIR ) /$( CONFIG ) /grpc_ ruby_plugin
status_test : $( BINDIR ) /$( CONFIG ) /status_test
thread_pool_test : $( BINDIR ) /$( CONFIG ) /thread_pool_test
chttp2_fake_security_cancel_after_accept_test : $( BINDIR ) /$( CONFIG ) /chttp 2_fake_security_cancel_after_accept_test
@ -905,6 +905,8 @@ shared_cxx: $(LIBDIR)/$(CONFIG)/libgrpc++.$(SHARED_EXT)
shared_csharp : shared_c $( LIBDIR ) /$( CONFIG ) /libgrpc_csharp_ext .$( SHARED_EXT )
grpc_csharp_ext : shared_csharp
plugins : $( PROTOC_PLUGINS )
privatelibs : privatelibs_c privatelibs_cxx
privatelibs_c : $( LIBDIR ) /$( CONFIG ) /libgpr_test_util .a $( LIBDIR ) /$( CONFIG ) /libgrpc_test_util .a $( LIBDIR ) /$( CONFIG ) /libend 2end_fixture_chttp 2_fake_security .a $( LIBDIR ) /$( CONFIG ) /libend 2end_fixture_chttp 2_fullstack .a $( LIBDIR ) /$( CONFIG ) /libend 2end_fixture_chttp 2_fullstack_uds .a $( LIBDIR ) /$( CONFIG ) /libend 2end_fixture_chttp 2_simple_ssl_fullstack .a $( LIBDIR ) /$( CONFIG ) /libend 2end_fixture_chttp 2_simple_ssl_with_oauth 2_fullstack .a $( LIBDIR ) /$( CONFIG ) /libend 2end_fixture_chttp 2_socket_pair .a $( LIBDIR ) /$( CONFIG ) /libend 2end_fixture_chttp 2_socket_pair_one_byte_at_a_time .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_cancel_after_accept .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_cancel_after_accept_and_writes_closed .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_cancel_after_invoke .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_cancel_before_invoke .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_cancel_in_a_vacuum .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_census_simple_request .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_disappearing_server .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_early_server_shutdown_finishes_inflight_calls .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_early_server_shutdown_finishes_tags .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_empty_batch .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_graceful_server_shutdown .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_invoke_large_request .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_max_concurrent_streams .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_no_op .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_ping_pong_streaming .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_response_with_binary_metadata_and_payload .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_response_with_metadata_and_payload .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_response_with_payload .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_with_large_metadata .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_with_payload .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_simple_delayed_request .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_simple_request .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_thread_stress .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_writes_done_hangs_with_pending_read .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_cancel_after_accept_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_cancel_after_accept_and_writes_closed_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_cancel_after_invoke_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_cancel_before_invoke_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_cancel_in_a_vacuum_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_census_simple_request_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_disappearing_server_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_early_server_shutdown_finishes_inflight_calls_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_early_server_shutdown_finishes_tags_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_graceful_server_shutdown_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_invoke_large_request_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_max_concurrent_streams_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_no_op_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_ping_pong_streaming_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_response_with_binary_metadata_and_payload_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_response_with_metadata_and_payload_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_response_with_payload_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_response_with_trailing_metadata_and_payload_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_with_large_metadata_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_request_with_payload_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_simple_delayed_request_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_simple_request_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_thread_stress_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_test_writes_done_hangs_with_pending_read_legacy .a $( LIBDIR ) /$( CONFIG ) /libend 2end_certs .a
@ -1912,7 +1914,7 @@ $(OBJDIR)/$(CONFIG)/%.o : %.cc
$( Q) $( CXX) $( CXXFLAGS) $( CPPFLAGS) -MMD -MF $( addsuffix .dep, $( basename $@ ) ) -c -o $@ $<
install : install_c install_cxx
install : install_c install_cxx install -protobuf install -plugins
install_c : install -headers_c install -static_c install -shared_c
@ -1946,6 +1948,8 @@ install-static_cxx: static_cxx strip-static_cxx
$( E) "[INSTALL] Installing libgrpc++.a"
$( Q) $( INSTALL) $( LIBDIR) /$( CONFIG) /libgrpc++.a $( prefix) /lib/libgrpc++.a
install-shared_c : shared_c strip -shared_c
i f e q ( $( SYSTEM ) , M I N G W 3 2 )
$( E) " [INSTALL] Installing gpr. $( SHARED_EXT) "
@ -1986,7 +1990,8 @@ ifneq ($(SYSTEM),Darwin)
e n d i f
e n d i f
install-shared_cxx : shared_cxx strip -shared_cxx
install-shared_cxx : shared_cxx strip -shared_cxx install -shared_c
i f e q ( $( SYSTEM ) , M I N G W 3 2 )
$( E) " [INSTALL] Installing grpc++. $( SHARED_EXT) "
$( Q) $( INSTALL) $( LIBDIR) /$( CONFIG) /grpc++.$( SHARED_EXT) $( prefix) /lib/grpc++.$( SHARED_EXT)
@ -2004,6 +2009,7 @@ ifneq ($(SYSTEM),Darwin)
e n d i f
e n d i f
install-shared_csharp : shared_csharp strip -shared_csharp
i f e q ( $( SYSTEM ) , M I N G W 3 2 )
$( E) " [INSTALL] Installing grpc_csharp_ext. $( SHARED_EXT) "
@ -2022,7 +2028,29 @@ ifneq ($(SYSTEM),Darwin)
e n d i f
e n d i f
install-protobuf : $( PROTOBUF_DEP )
i f n e q ( $( PROTOBUF_DEP ) , )
$( E) "[INSTALL] Installing embedded protobufs"
$( Q) $( MAKE) -C third_party/protobuf install prefix = $( prefix)
i f n e q ( $( SYSTEM ) , M I N G W 3 2 )
i f n e q ( $( SYSTEM ) , D a r w i n )
$( Q) ldconfig
e n d i f
e n d i f
e n d i f
install-plugins : $( PROTOC_PLUGINS )
i f e q ( $( SYSTEM ) , M I N G W 3 2 )
$( Q) false
e l s e
$( E) "[INSTALL] Installing grpc protoc plugins"
$( Q) $( INSTALL) $( BINDIR) /$( CONFIG) /grpc_cpp_plugin $( prefix) /bin/grpc_cpp_plugin
$( Q) $( INSTALL) $( BINDIR) /$( CONFIG) /grpc_ruby_plugin $( prefix) /bin/grpc_ruby_plugin
e n d i f
clean :
$( E) "[CLEAN] Cleaning build directories."
$( Q) $( RM) -rf $( OBJDIR) $( LIBDIR) $( BINDIR) $( GENDIR)
@ -7350,35 +7378,35 @@ endif
e n d i f
CPP_PLUGIN_SRC = \
GRPC_ CPP_PLUGIN_SRC = \
src/compiler/cpp_generator.cc \
src/compiler/cpp_plugin.cc \
CPP_PLUGIN_OBJS = $( addprefix $( OBJDIR) /$( CONFIG) /, $( addsuffix .o, $( basename $( CPP_PLUGIN_SRC) ) ) )
GRPC_ CPP_PLUGIN_OBJS = $( addprefix $( OBJDIR) /$( CONFIG) /, $( addsuffix .o, $( basename $( GRPC_ CPP_PLUGIN_SRC) ) ) )
i f e q ( $( NO_PROTOBUF ) , t r u e )
# You can't build the protoc plugins if you don't have protobuf 3.0.0+.
$(BINDIR)/$(CONFIG)/cpp_plugin : protobuf_dep_error
$(BINDIR)/$(CONFIG)/grpc_ cpp_plugin : protobuf_dep_error
e l s e
$(BINDIR)/$(CONFIG)/cpp_plugin : $( PROTOBUF_DEP ) $( CPP_PLUGIN_OBJS )
$(BINDIR)/$(CONFIG)/grpc_ cpp_plugin : $( PROTOBUF_DEP ) $( GRPC_ CPP_PLUGIN_OBJS)
$( E) " [HOSTLD] Linking $@ "
$( Q) mkdir -p ` dirname $@ `
$( Q) $( HOST_LDXX) $( HOST_LDFLAGS) $( CPP_PLUGIN_OBJS) $( HOST_LDLIBSXX) $( HOST_LDLIBS_PROTOC) $( HOST_LDLIBS) $( HOST_LDLIBS_PROTOC) -o $( BINDIR) /$( CONFIG) /cpp_plugin
$( Q) $( HOST_LDXX) $( HOST_LDFLAGS) $( GRPC_ CPP_PLUGIN_OBJS) $( HOST_LDLIBSXX) $( HOST_LDLIBS_PROTOC) $( HOST_LDLIBS) $( HOST_LDLIBS_PROTOC) -o $( BINDIR) /$( CONFIG) /grpc_ cpp_plugin
e n d i f
$(OBJDIR)/$(CONFIG)/src/compiler/cpp_generator.o :
$(OBJDIR)/$(CONFIG)/src/compiler/cpp_plugin.o :
deps_cpp_plugin : $( CPP_PLUGIN_OBJS :.o =.dep )
deps_grpc_ cpp_plugin : $( GRPC_ CPP_PLUGIN_OBJS :.o =.dep )
i f n e q ( $( NO_DEPS ) , t r u e )
-include $(CPP_PLUGIN_OBJS : .o =.dep )
-include $(GRPC_ CPP_PLUGIN_OBJS : .o =.dep )
e n d i f
@ -7677,35 +7705,35 @@ endif
e n d i f
RUBY_PLUGIN_SRC = \
GRPC_ RUBY_PLUGIN_SRC = \
src/compiler/ruby_generator.cc \
src/compiler/ruby_plugin.cc \
RUBY_PLUGIN_OBJS = $( addprefix $( OBJDIR) /$( CONFIG) /, $( addsuffix .o, $( basename $( RUBY_PLUGIN_SRC) ) ) )
GRPC_ RUBY_PLUGIN_OBJS = $( addprefix $( OBJDIR) /$( CONFIG) /, $( addsuffix .o, $( basename $( GRPC_ RUBY_PLUGIN_SRC) ) ) )
i f e q ( $( NO_PROTOBUF ) , t r u e )
# You can't build the protoc plugins if you don't have protobuf 3.0.0+.
$(BINDIR)/$(CONFIG)/ruby_plugin : protobuf_dep_error
$(BINDIR)/$(CONFIG)/grpc_ ruby_plugin : protobuf_dep_error
e l s e
$(BINDIR)/$(CONFIG)/ruby_plugin : $( PROTOBUF_DEP ) $( RUBY_PLUGIN_OBJS )
$(BINDIR)/$(CONFIG)/grpc_ ruby_plugin : $( PROTOBUF_DEP ) $( GRPC_ RUBY_PLUGIN_OBJS)
$( E) " [HOSTLD] Linking $@ "
$( Q) mkdir -p ` dirname $@ `
$( Q) $( HOST_LDXX) $( HOST_LDFLAGS) $( RUBY_PLUGIN_OBJS) $( HOST_LDLIBSXX) $( HOST_LDLIBS_PROTOC) $( HOST_LDLIBS) $( HOST_LDLIBS_PROTOC) -o $( BINDIR) /$( CONFIG) /ruby_plugin
$( Q) $( HOST_LDXX) $( HOST_LDFLAGS) $( GRPC_ RUBY_PLUGIN_OBJS) $( HOST_LDLIBSXX) $( HOST_LDLIBS_PROTOC) $( HOST_LDLIBS) $( HOST_LDLIBS_PROTOC) -o $( BINDIR) /$( CONFIG) /grpc_ ruby_plugin
e n d i f
$(OBJDIR)/$(CONFIG)/src/compiler/ruby_generator.o :
$(OBJDIR)/$(CONFIG)/src/compiler/ruby_plugin.o :
deps_ruby_plugin : $( RUBY_PLUGIN_OBJS :.o =.dep )
deps_grpc_ ruby_plugin : $( GRPC_ RUBY_PLUGIN_OBJS :.o =.dep )
i f n e q ( $( NO_DEPS ) , t r u e )
-include $(RUBY_PLUGIN_OBJS : .o =.dep )
-include $(GRPC_ RUBY_PLUGIN_OBJS : .o =.dep )
e n d i f