|
|
|
@ -332,7 +332,7 @@ endif |
|
|
|
|
|
|
|
|
|
.SECONDARY = %.pb.h %.pb.cc
|
|
|
|
|
|
|
|
|
|
PROTOC_PLUGINS = $(BINDIR)/$(CONFIG)/grpc_cpp_plugin $(BINDIR)/$(CONFIG)/grpc_ruby_plugin $(BINDIR)/$(CONFIG)/grpc_python_plugin
|
|
|
|
|
PROTOC_PLUGINS = $(BINDIR)/$(CONFIG)/grpc_cpp_plugin $(BINDIR)/$(CONFIG)/grpc_python_plugin $(BINDIR)/$(CONFIG)/grpc_ruby_plugin
|
|
|
|
|
ifeq ($(DEP_MISSING),) |
|
|
|
|
all: static shared plugins |
|
|
|
|
dep_error: |
|
|
|
@ -498,11 +498,11 @@ timeout_encoding_test: $(BINDIR)/$(CONFIG)/timeout_encoding_test |
|
|
|
|
transport_metadata_test: $(BINDIR)/$(CONFIG)/transport_metadata_test |
|
|
|
|
async_end2end_test: $(BINDIR)/$(CONFIG)/async_end2end_test |
|
|
|
|
channel_arguments_test: $(BINDIR)/$(CONFIG)/channel_arguments_test |
|
|
|
|
grpc_cpp_plugin: $(BINDIR)/$(CONFIG)/grpc_cpp_plugin |
|
|
|
|
grpc_ruby_plugin: $(BINDIR)/$(CONFIG)/grpc_ruby_plugin |
|
|
|
|
grpc_python_plugin: $(BINDIR)/$(CONFIG)/grpc_python_plugin |
|
|
|
|
credentials_test: $(BINDIR)/$(CONFIG)/credentials_test |
|
|
|
|
end2end_test: $(BINDIR)/$(CONFIG)/end2end_test |
|
|
|
|
grpc_cpp_plugin: $(BINDIR)/$(CONFIG)/grpc_cpp_plugin |
|
|
|
|
grpc_python_plugin: $(BINDIR)/$(CONFIG)/grpc_python_plugin |
|
|
|
|
grpc_ruby_plugin: $(BINDIR)/$(CONFIG)/grpc_ruby_plugin |
|
|
|
|
interop_client: $(BINDIR)/$(CONFIG)/interop_client |
|
|
|
|
interop_server: $(BINDIR)/$(CONFIG)/interop_server |
|
|
|
|
pubsub_client: $(BINDIR)/$(CONFIG)/pubsub_client |
|
|
|
@ -1017,8 +1017,6 @@ test_c: buildtests_c |
|
|
|
|
$(Q) $(BINDIR)/$(CONFIG)/httpcli_format_request_test || ( echo test httpcli_format_request_test failed ; exit 1 )
|
|
|
|
|
$(E) "[RUN] Testing httpcli_parser_test"
|
|
|
|
|
$(Q) $(BINDIR)/$(CONFIG)/httpcli_parser_test || ( echo test httpcli_parser_test failed ; exit 1 )
|
|
|
|
|
$(E) "[RUN] Testing httpcli_test"
|
|
|
|
|
$(Q) $(BINDIR)/$(CONFIG)/httpcli_test || ( echo test httpcli_test failed ; exit 1 )
|
|
|
|
|
$(E) "[RUN] Testing json_test"
|
|
|
|
|
$(Q) $(BINDIR)/$(CONFIG)/json_test || ( echo test json_test failed ; exit 1 )
|
|
|
|
|
$(E) "[RUN] Testing lame_client_test"
|
|
|
|
@ -2047,8 +2045,8 @@ ifeq ($(SYSTEM),MINGW32) |
|
|
|
|
else |
|
|
|
|
$(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
|
|
|
|
|
$(Q) $(INSTALL) $(BINDIR)/$(CONFIG)/grpc_python_plugin $(prefix)/bin/grpc_python_plugin
|
|
|
|
|
$(Q) $(INSTALL) $(BINDIR)/$(CONFIG)/grpc_ruby_plugin $(prefix)/bin/grpc_ruby_plugin
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
clean: |
|
|
|
@ -2644,74 +2642,6 @@ $(OBJDIR)/$(CONFIG)/src/core/transport/stream_op.o: |
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/core/transport/transport.o: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LIBGRPC_CSHARP_EXT_SRC = \
|
|
|
|
|
src/csharp/ext/grpc_csharp_ext.c \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LIBGRPC_CSHARP_EXT_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(LIBGRPC_CSHARP_EXT_SRC))))
|
|
|
|
|
|
|
|
|
|
ifeq ($(NO_SECURE),true) |
|
|
|
|
|
|
|
|
|
# You can't build secure libraries if you don't have OpenSSL with ALPN.
|
|
|
|
|
|
|
|
|
|
$(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.a: openssl_dep_error |
|
|
|
|
|
|
|
|
|
ifeq ($(SYSTEM),MINGW32) |
|
|
|
|
$(LIBDIR)/$(CONFIG)/grpc_csharp_ext.$(SHARED_EXT): openssl_dep_error |
|
|
|
|
else |
|
|
|
|
$(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.$(SHARED_EXT): openssl_dep_error |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($(OPENSSL_DEP),) |
|
|
|
|
# This is to ensure the embedded OpenSSL is built beforehand, properly
|
|
|
|
|
# installing headers to their final destination on the drive. We need this
|
|
|
|
|
# otherwise parallel compilation will fail if a source is compiled first.
|
|
|
|
|
src/csharp/ext/grpc_csharp_ext.c: $(OPENSSL_DEP) |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
$(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.a: $(ZLIB_DEP) $(OPENSSL_DEP) $(LIBGRPC_CSHARP_EXT_OBJS) |
|
|
|
|
$(E) "[AR] Creating $@"
|
|
|
|
|
$(Q) mkdir -p `dirname $@`
|
|
|
|
|
$(Q) rm -f $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.a
|
|
|
|
|
$(Q) $(AR) rcs $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.a $(LIBGRPC_CSHARP_EXT_OBJS)
|
|
|
|
|
ifeq ($(SYSTEM),Darwin) |
|
|
|
|
$(Q) ranlib $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.a
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(SYSTEM),MINGW32) |
|
|
|
|
$(LIBDIR)/$(CONFIG)/grpc_csharp_ext.$(SHARED_EXT): $(LIBGRPC_CSHARP_EXT_OBJS) $(ZLIB_DEP)$(LIBDIR)/$(CONFIG)/gpr.$(SHARED_EXT)$(LIBDIR)/$(CONFIG)/grpc.$(SHARED_EXT) $(OPENSSL_DEP) |
|
|
|
|
$(E) "[LD] Linking $@"
|
|
|
|
|
$(Q) mkdir -p `dirname $@`
|
|
|
|
|
$(Q) $(LD) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared -Wl,--output-def=$(LIBDIR)/$(CONFIG)/grpc_csharp_ext.def -Wl,--out-implib=$(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext-imp.a -o $(LIBDIR)/$(CONFIG)/grpc_csharp_ext.$(SHARED_EXT) $(LIBGRPC_CSHARP_EXT_OBJS) $(LDLIBS) $(LDLIBS_SECURE) $(OPENSSL_MERGE_LIBS) -lgpr-imp -lgrpc-imp
|
|
|
|
|
else |
|
|
|
|
$(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.$(SHARED_EXT): $(LIBGRPC_CSHARP_EXT_OBJS) $(ZLIB_DEP) $(LIBDIR)/$(CONFIG)/libgpr.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc.$(SHARED_EXT) $(OPENSSL_DEP) |
|
|
|
|
$(E) "[LD] Linking $@"
|
|
|
|
|
$(Q) mkdir -p `dirname $@`
|
|
|
|
|
ifeq ($(SYSTEM),Darwin) |
|
|
|
|
$(Q) $(LD) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -dynamiclib -o $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.$(SHARED_EXT) $(LIBGRPC_CSHARP_EXT_OBJS) $(LDLIBS) $(LDLIBS_SECURE) $(OPENSSL_MERGE_LIBS) -lgpr -lgrpc
|
|
|
|
|
else |
|
|
|
|
$(Q) $(LD) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared -Wl,-soname,libgrpc_csharp_ext.so.0 -o $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.$(SHARED_EXT) $(LIBGRPC_CSHARP_EXT_OBJS) $(LDLIBS) $(LDLIBS_SECURE) $(OPENSSL_MERGE_LIBS) -lgpr -lgrpc
|
|
|
|
|
$(Q) ln -sf libgrpc_csharp_ext.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.so.0
|
|
|
|
|
$(Q) ln -sf libgrpc_csharp_ext.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.so
|
|
|
|
|
endif |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
ifneq ($(NO_SECURE),true) |
|
|
|
|
ifneq ($(NO_DEPS),true) |
|
|
|
|
-include $(LIBGRPC_CSHARP_EXT_OBJS:.o=.dep) |
|
|
|
|
endif |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/csharp/ext/grpc_csharp_ext.o: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LIBGRPC_TEST_UTIL_SRC = \
|
|
|
|
|
test/core/end2end/cq_verifier.c \
|
|
|
|
|
test/core/end2end/data/prod_roots_certs.c \
|
|
|
|
@ -3322,6 +3252,74 @@ $(OBJDIR)/$(CONFIG)/examples/pubsub/publisher.o: $(GENDIR)/examples/pubsub/l |
|
|
|
|
$(OBJDIR)/$(CONFIG)/examples/pubsub/subscriber.o: $(GENDIR)/examples/pubsub/label.pb.cc $(GENDIR)/examples/pubsub/empty.pb.cc $(GENDIR)/examples/pubsub/pubsub.pb.cc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LIBGRPC_CSHARP_EXT_SRC = \
|
|
|
|
|
src/csharp/ext/grpc_csharp_ext.c \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LIBGRPC_CSHARP_EXT_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(LIBGRPC_CSHARP_EXT_SRC))))
|
|
|
|
|
|
|
|
|
|
ifeq ($(NO_SECURE),true) |
|
|
|
|
|
|
|
|
|
# You can't build secure libraries if you don't have OpenSSL with ALPN.
|
|
|
|
|
|
|
|
|
|
$(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.a: openssl_dep_error |
|
|
|
|
|
|
|
|
|
ifeq ($(SYSTEM),MINGW32) |
|
|
|
|
$(LIBDIR)/$(CONFIG)/grpc_csharp_ext.$(SHARED_EXT): openssl_dep_error |
|
|
|
|
else |
|
|
|
|
$(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.$(SHARED_EXT): openssl_dep_error |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifneq ($(OPENSSL_DEP),) |
|
|
|
|
# This is to ensure the embedded OpenSSL is built beforehand, properly
|
|
|
|
|
# installing headers to their final destination on the drive. We need this
|
|
|
|
|
# otherwise parallel compilation will fail if a source is compiled first.
|
|
|
|
|
src/csharp/ext/grpc_csharp_ext.c: $(OPENSSL_DEP) |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
$(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.a: $(ZLIB_DEP) $(OPENSSL_DEP) $(LIBGRPC_CSHARP_EXT_OBJS) |
|
|
|
|
$(E) "[AR] Creating $@"
|
|
|
|
|
$(Q) mkdir -p `dirname $@`
|
|
|
|
|
$(Q) rm -f $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.a
|
|
|
|
|
$(Q) $(AR) rcs $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.a $(LIBGRPC_CSHARP_EXT_OBJS)
|
|
|
|
|
ifeq ($(SYSTEM),Darwin) |
|
|
|
|
$(Q) ranlib $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.a
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(SYSTEM),MINGW32) |
|
|
|
|
$(LIBDIR)/$(CONFIG)/grpc_csharp_ext.$(SHARED_EXT): $(LIBGRPC_CSHARP_EXT_OBJS) $(ZLIB_DEP)$(LIBDIR)/$(CONFIG)/gpr.$(SHARED_EXT)$(LIBDIR)/$(CONFIG)/grpc.$(SHARED_EXT) $(OPENSSL_DEP) |
|
|
|
|
$(E) "[LD] Linking $@"
|
|
|
|
|
$(Q) mkdir -p `dirname $@`
|
|
|
|
|
$(Q) $(LD) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared -Wl,--output-def=$(LIBDIR)/$(CONFIG)/grpc_csharp_ext.def -Wl,--out-implib=$(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext-imp.a -o $(LIBDIR)/$(CONFIG)/grpc_csharp_ext.$(SHARED_EXT) $(LIBGRPC_CSHARP_EXT_OBJS) $(LDLIBS) $(LDLIBS_SECURE) $(OPENSSL_MERGE_LIBS) -lgpr-imp -lgrpc-imp
|
|
|
|
|
else |
|
|
|
|
$(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.$(SHARED_EXT): $(LIBGRPC_CSHARP_EXT_OBJS) $(ZLIB_DEP) $(LIBDIR)/$(CONFIG)/libgpr.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc.$(SHARED_EXT) $(OPENSSL_DEP) |
|
|
|
|
$(E) "[LD] Linking $@"
|
|
|
|
|
$(Q) mkdir -p `dirname $@`
|
|
|
|
|
ifeq ($(SYSTEM),Darwin) |
|
|
|
|
$(Q) $(LD) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -dynamiclib -o $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.$(SHARED_EXT) $(LIBGRPC_CSHARP_EXT_OBJS) $(LDLIBS) $(LDLIBS_SECURE) $(OPENSSL_MERGE_LIBS) -lgpr -lgrpc
|
|
|
|
|
else |
|
|
|
|
$(Q) $(LD) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared -Wl,-soname,libgrpc_csharp_ext.so.0 -o $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.$(SHARED_EXT) $(LIBGRPC_CSHARP_EXT_OBJS) $(LDLIBS) $(LDLIBS_SECURE) $(OPENSSL_MERGE_LIBS) -lgpr -lgrpc
|
|
|
|
|
$(Q) ln -sf libgrpc_csharp_ext.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.so.0
|
|
|
|
|
$(Q) ln -sf libgrpc_csharp_ext.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc_csharp_ext.so
|
|
|
|
|
endif |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
ifneq ($(NO_SECURE),true) |
|
|
|
|
ifneq ($(NO_DEPS),true) |
|
|
|
|
-include $(LIBGRPC_CSHARP_EXT_OBJS:.o=.dep) |
|
|
|
|
endif |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/csharp/ext/grpc_csharp_ext.o: |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
LIBEND2END_FIXTURE_CHTTP2_FAKE_SECURITY_SRC = \
|
|
|
|
|
test/core/end2end/fixtures/chttp2_fake_security.c \
|
|
|
|
|
|
|
|
|
@ -7383,161 +7381,161 @@ endif |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GRPC_CPP_PLUGIN_SRC = \
|
|
|
|
|
src/compiler/cpp_generator.cc \
|
|
|
|
|
src/compiler/cpp_plugin.cc \
|
|
|
|
|
|
|
|
|
|
GRPC_CPP_PLUGIN_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(GRPC_CPP_PLUGIN_SRC))))
|
|
|
|
|
CREDENTIALS_TEST_SRC = \
|
|
|
|
|
test/cpp/client/credentials_test.cc \
|
|
|
|
|
|
|
|
|
|
CREDENTIALS_TEST_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(CREDENTIALS_TEST_SRC))))
|
|
|
|
|
|
|
|
|
|
ifeq ($(NO_PROTOBUF),true) |
|
|
|
|
ifeq ($(NO_SECURE),true) |
|
|
|
|
|
|
|
|
|
# You can't build the protoc plugins if you don't have protobuf 3.0.0+.
|
|
|
|
|
# You can't build secure targets if you don't have OpenSSL with ALPN.
|
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_cpp_plugin: protobuf_dep_error |
|
|
|
|
$(BINDIR)/$(CONFIG)/credentials_test: openssl_dep_error |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_cpp_plugin: $(PROTOBUF_DEP) $(GRPC_CPP_PLUGIN_OBJS) |
|
|
|
|
$(E) "[HOSTLD] Linking $@"
|
|
|
|
|
$(BINDIR)/$(CONFIG)/credentials_test: $(CREDENTIALS_TEST_OBJS) $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a |
|
|
|
|
$(E) "[LD] Linking $@"
|
|
|
|
|
$(Q) mkdir -p `dirname $@`
|
|
|
|
|
$(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
|
|
|
|
|
$(Q) $(LDXX) $(LDFLAGS) $(CREDENTIALS_TEST_OBJS) $(GTEST_LIB) $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a $(LDLIBSXX) $(LDLIBS_PROTOBUF) $(LDLIBS) $(LDLIBS_SECURE) -o $(BINDIR)/$(CONFIG)/credentials_test
|
|
|
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/cpp_generator.o: |
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/cpp_plugin.o: |
|
|
|
|
$(OBJDIR)/$(CONFIG)/test/cpp/client/credentials_test.o: $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a |
|
|
|
|
|
|
|
|
|
deps_grpc_cpp_plugin: $(GRPC_CPP_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
deps_credentials_test: $(CREDENTIALS_TEST_OBJS:.o=.dep) |
|
|
|
|
|
|
|
|
|
ifneq ($(NO_SECURE),true) |
|
|
|
|
ifneq ($(NO_DEPS),true) |
|
|
|
|
-include $(GRPC_CPP_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
-include $(CREDENTIALS_TEST_OBJS:.o=.dep) |
|
|
|
|
endif |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GRPC_RUBY_PLUGIN_SRC = \
|
|
|
|
|
src/compiler/ruby_generator.cc \
|
|
|
|
|
src/compiler/ruby_plugin.cc \
|
|
|
|
|
|
|
|
|
|
GRPC_RUBY_PLUGIN_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(GRPC_RUBY_PLUGIN_SRC))))
|
|
|
|
|
END2END_TEST_SRC = \
|
|
|
|
|
test/cpp/end2end/end2end_test.cc \
|
|
|
|
|
|
|
|
|
|
END2END_TEST_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(END2END_TEST_SRC))))
|
|
|
|
|
|
|
|
|
|
ifeq ($(NO_PROTOBUF),true) |
|
|
|
|
ifeq ($(NO_SECURE),true) |
|
|
|
|
|
|
|
|
|
# You can't build the protoc plugins if you don't have protobuf 3.0.0+.
|
|
|
|
|
# You can't build secure targets if you don't have OpenSSL with ALPN.
|
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_ruby_plugin: protobuf_dep_error |
|
|
|
|
$(BINDIR)/$(CONFIG)/end2end_test: openssl_dep_error |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_ruby_plugin: $(PROTOBUF_DEP) $(GRPC_RUBY_PLUGIN_OBJS) |
|
|
|
|
$(E) "[HOSTLD] Linking $@"
|
|
|
|
|
$(BINDIR)/$(CONFIG)/end2end_test: $(END2END_TEST_OBJS) $(LIBDIR)/$(CONFIG)/libgrpc++_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr_test_util.a $(LIBDIR)/$(CONFIG)/libgpr.a |
|
|
|
|
$(E) "[LD] Linking $@"
|
|
|
|
|
$(Q) mkdir -p `dirname $@`
|
|
|
|
|
$(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
|
|
|
|
|
$(Q) $(LDXX) $(LDFLAGS) $(END2END_TEST_OBJS) $(GTEST_LIB) $(LIBDIR)/$(CONFIG)/libgrpc++_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr_test_util.a $(LIBDIR)/$(CONFIG)/libgpr.a $(LDLIBSXX) $(LDLIBS_PROTOBUF) $(LDLIBS) $(LDLIBS_SECURE) -o $(BINDIR)/$(CONFIG)/end2end_test
|
|
|
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/ruby_generator.o: |
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/ruby_plugin.o: |
|
|
|
|
$(OBJDIR)/$(CONFIG)/test/cpp/end2end/end2end_test.o: $(LIBDIR)/$(CONFIG)/libgrpc++_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr_test_util.a $(LIBDIR)/$(CONFIG)/libgpr.a |
|
|
|
|
|
|
|
|
|
deps_grpc_ruby_plugin: $(GRPC_RUBY_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
deps_end2end_test: $(END2END_TEST_OBJS:.o=.dep) |
|
|
|
|
|
|
|
|
|
ifneq ($(NO_SECURE),true) |
|
|
|
|
ifneq ($(NO_DEPS),true) |
|
|
|
|
-include $(GRPC_RUBY_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
-include $(END2END_TEST_OBJS:.o=.dep) |
|
|
|
|
endif |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GRPC_PYTHON_PLUGIN_SRC = \
|
|
|
|
|
src/compiler/python_generator.cc \
|
|
|
|
|
src/compiler/python_plugin.cc \
|
|
|
|
|
GRPC_CPP_PLUGIN_SRC = \
|
|
|
|
|
src/compiler/cpp_generator.cc \
|
|
|
|
|
src/compiler/cpp_plugin.cc \
|
|
|
|
|
|
|
|
|
|
GRPC_PYTHON_PLUGIN_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(GRPC_PYTHON_PLUGIN_SRC))))
|
|
|
|
|
GRPC_CPP_PLUGIN_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(GRPC_CPP_PLUGIN_SRC))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(NO_PROTOBUF),true) |
|
|
|
|
|
|
|
|
|
# You can't build the protoc plugins if you don't have protobuf 3.0.0+.
|
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_python_plugin: protobuf_dep_error |
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_cpp_plugin: protobuf_dep_error |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_python_plugin: $(PROTOBUF_DEP) $(GRPC_PYTHON_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) $(GRPC_PYTHON_PLUGIN_OBJS) $(HOST_LDLIBSXX) $(HOST_LDLIBS_PROTOC) $(HOST_LDLIBS) $(HOST_LDLIBS_PROTOC) -o $(BINDIR)/$(CONFIG)/grpc_python_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
|
|
|
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/python_generator.o: |
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/python_plugin.o: |
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/cpp_generator.o: |
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/cpp_plugin.o: |
|
|
|
|
|
|
|
|
|
deps_grpc_python_plugin: $(GRPC_PYTHON_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
deps_grpc_cpp_plugin: $(GRPC_CPP_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
|
|
|
|
|
ifneq ($(NO_DEPS),true) |
|
|
|
|
-include $(GRPC_PYTHON_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
-include $(GRPC_CPP_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREDENTIALS_TEST_SRC = \
|
|
|
|
|
test/cpp/client/credentials_test.cc \
|
|
|
|
|
GRPC_PYTHON_PLUGIN_SRC = \
|
|
|
|
|
src/compiler/python_generator.cc \
|
|
|
|
|
src/compiler/python_plugin.cc \
|
|
|
|
|
|
|
|
|
|
CREDENTIALS_TEST_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(CREDENTIALS_TEST_SRC))))
|
|
|
|
|
GRPC_PYTHON_PLUGIN_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(GRPC_PYTHON_PLUGIN_SRC))))
|
|
|
|
|
|
|
|
|
|
ifeq ($(NO_SECURE),true) |
|
|
|
|
|
|
|
|
|
# You can't build secure targets if you don't have OpenSSL with ALPN.
|
|
|
|
|
ifeq ($(NO_PROTOBUF),true) |
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/credentials_test: openssl_dep_error |
|
|
|
|
# You can't build the protoc plugins if you don't have protobuf 3.0.0+.
|
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_python_plugin: protobuf_dep_error |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/credentials_test: $(CREDENTIALS_TEST_OBJS) $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a |
|
|
|
|
$(E) "[LD] Linking $@"
|
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_python_plugin: $(PROTOBUF_DEP) $(GRPC_PYTHON_PLUGIN_OBJS) |
|
|
|
|
$(E) "[HOSTLD] Linking $@"
|
|
|
|
|
$(Q) mkdir -p `dirname $@`
|
|
|
|
|
$(Q) $(LDXX) $(LDFLAGS) $(CREDENTIALS_TEST_OBJS) $(GTEST_LIB) $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a $(LDLIBSXX) $(LDLIBS_PROTOBUF) $(LDLIBS) $(LDLIBS_SECURE) -o $(BINDIR)/$(CONFIG)/credentials_test
|
|
|
|
|
$(Q) $(HOST_LDXX) $(HOST_LDFLAGS) $(GRPC_PYTHON_PLUGIN_OBJS) $(HOST_LDLIBSXX) $(HOST_LDLIBS_PROTOC) $(HOST_LDLIBS) $(HOST_LDLIBS_PROTOC) -o $(BINDIR)/$(CONFIG)/grpc_python_plugin
|
|
|
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
$(OBJDIR)/$(CONFIG)/test/cpp/client/credentials_test.o: $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr.a |
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/python_generator.o: |
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/python_plugin.o: |
|
|
|
|
|
|
|
|
|
deps_credentials_test: $(CREDENTIALS_TEST_OBJS:.o=.dep) |
|
|
|
|
deps_grpc_python_plugin: $(GRPC_PYTHON_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
|
|
|
|
|
ifneq ($(NO_SECURE),true) |
|
|
|
|
ifneq ($(NO_DEPS),true) |
|
|
|
|
-include $(CREDENTIALS_TEST_OBJS:.o=.dep) |
|
|
|
|
endif |
|
|
|
|
-include $(GRPC_PYTHON_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
END2END_TEST_SRC = \
|
|
|
|
|
test/cpp/end2end/end2end_test.cc \
|
|
|
|
|
GRPC_RUBY_PLUGIN_SRC = \
|
|
|
|
|
src/compiler/ruby_generator.cc \
|
|
|
|
|
src/compiler/ruby_plugin.cc \
|
|
|
|
|
|
|
|
|
|
END2END_TEST_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(END2END_TEST_SRC))))
|
|
|
|
|
GRPC_RUBY_PLUGIN_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(GRPC_RUBY_PLUGIN_SRC))))
|
|
|
|
|
|
|
|
|
|
ifeq ($(NO_SECURE),true) |
|
|
|
|
|
|
|
|
|
# You can't build secure targets if you don't have OpenSSL with ALPN.
|
|
|
|
|
ifeq ($(NO_PROTOBUF),true) |
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/end2end_test: openssl_dep_error |
|
|
|
|
# You can't build the protoc plugins if you don't have protobuf 3.0.0+.
|
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_ruby_plugin: protobuf_dep_error |
|
|
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
|
|
$(BINDIR)/$(CONFIG)/end2end_test: $(END2END_TEST_OBJS) $(LIBDIR)/$(CONFIG)/libgrpc++_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr_test_util.a $(LIBDIR)/$(CONFIG)/libgpr.a |
|
|
|
|
$(E) "[LD] Linking $@"
|
|
|
|
|
$(BINDIR)/$(CONFIG)/grpc_ruby_plugin: $(PROTOBUF_DEP) $(GRPC_RUBY_PLUGIN_OBJS) |
|
|
|
|
$(E) "[HOSTLD] Linking $@"
|
|
|
|
|
$(Q) mkdir -p `dirname $@`
|
|
|
|
|
$(Q) $(LDXX) $(LDFLAGS) $(END2END_TEST_OBJS) $(GTEST_LIB) $(LIBDIR)/$(CONFIG)/libgrpc++_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr_test_util.a $(LIBDIR)/$(CONFIG)/libgpr.a $(LDLIBSXX) $(LDLIBS_PROTOBUF) $(LDLIBS) $(LDLIBS_SECURE) -o $(BINDIR)/$(CONFIG)/end2end_test
|
|
|
|
|
$(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
|
|
|
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
$(OBJDIR)/$(CONFIG)/test/cpp/end2end/end2end_test.o: $(LIBDIR)/$(CONFIG)/libgrpc++_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc_test_util.a $(LIBDIR)/$(CONFIG)/libgrpc++.a $(LIBDIR)/$(CONFIG)/libgrpc.a $(LIBDIR)/$(CONFIG)/libgpr_test_util.a $(LIBDIR)/$(CONFIG)/libgpr.a |
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/ruby_generator.o: |
|
|
|
|
$(OBJDIR)/$(CONFIG)/src/compiler/ruby_plugin.o: |
|
|
|
|
|
|
|
|
|
deps_end2end_test: $(END2END_TEST_OBJS:.o=.dep) |
|
|
|
|
deps_grpc_ruby_plugin: $(GRPC_RUBY_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
|
|
|
|
|
ifneq ($(NO_SECURE),true) |
|
|
|
|
ifneq ($(NO_DEPS),true) |
|
|
|
|
-include $(END2END_TEST_OBJS:.o=.dep) |
|
|
|
|
endif |
|
|
|
|
-include $(GRPC_RUBY_PLUGIN_OBJS:.o=.dep) |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|