|
|
@ -358,45 +358,6 @@ |
|
|
|
CACHE_MK += HAS_PKG_CONFIG = true,
|
|
|
|
CACHE_MK += HAS_PKG_CONFIG = true,
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
CORE_PC_TEMPLATE = prefix=$(prefix),\
|
|
|
|
|
|
|
|
exec_prefix=${'\$${prefix}'},\
|
|
|
|
|
|
|
|
includedir=${'\$${prefix}'}/include,\
|
|
|
|
|
|
|
|
libdir=${'\$${exec_prefix}'}/lib,\
|
|
|
|
|
|
|
|
,\
|
|
|
|
|
|
|
|
Name: $(PC_NAME),\
|
|
|
|
|
|
|
|
Description: $(PC_DESCRIPTION),\
|
|
|
|
|
|
|
|
Version: $(CORE_VERSION),\
|
|
|
|
|
|
|
|
Cflags: -I${'\$${includedir}'} $(PC_CFLAGS),\
|
|
|
|
|
|
|
|
Requires: $(PC_REQUIRES),\
|
|
|
|
|
|
|
|
Libs: -L${'\$${libdir}'} $(PC_LIB),\
|
|
|
|
|
|
|
|
Libs.private: $(PC_LIBS_PRIVATE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CPP_PC_TEMPLATE = prefix=$(prefix),\
|
|
|
|
|
|
|
|
exec_prefix=${'\$${prefix}'},\
|
|
|
|
|
|
|
|
includedir=${'\$${prefix}'}/include,\
|
|
|
|
|
|
|
|
libdir=${'\$${exec_prefix}'}/lib,\
|
|
|
|
|
|
|
|
,\
|
|
|
|
|
|
|
|
Name: $(PC_NAME),\
|
|
|
|
|
|
|
|
Description: $(PC_DESCRIPTION),\
|
|
|
|
|
|
|
|
Version: $(CPP_VERSION),\
|
|
|
|
|
|
|
|
Cflags: -I${'\$${includedir}'} $(PC_CFLAGS),\
|
|
|
|
|
|
|
|
Requires: $(PC_REQUIRES),\
|
|
|
|
|
|
|
|
Libs: -L${'\$${libdir}'} $(PC_LIB),\
|
|
|
|
|
|
|
|
Libs.private: $(PC_LIBS_PRIVATE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CSHARP_PC_TEMPLATE = prefix=$(prefix),\
|
|
|
|
|
|
|
|
exec_prefix=${'\$${prefix}'},\
|
|
|
|
|
|
|
|
includedir=${'\$${prefix}'}/include,\
|
|
|
|
|
|
|
|
libdir=${'\$${exec_prefix}'}/lib,\
|
|
|
|
|
|
|
|
,\
|
|
|
|
|
|
|
|
Name: $(PC_NAME),\
|
|
|
|
|
|
|
|
Description: $(PC_DESCRIPTION),\
|
|
|
|
|
|
|
|
Version: $(CSHARP_VERSION),\
|
|
|
|
|
|
|
|
Cflags: -I${'\$${includedir}'} $(PC_CFLAGS),\
|
|
|
|
|
|
|
|
Requires: $(PC_REQUIRES),\
|
|
|
|
|
|
|
|
Libs: -L${'\$${libdir}'} $(PC_LIB),\
|
|
|
|
|
|
|
|
Libs.private: $(PC_LIBS_PRIVATE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(SYSTEM),MINGW32)
|
|
|
|
ifeq ($(SYSTEM),MINGW32)
|
|
|
|
EXECUTABLE_SUFFIX = .exe
|
|
|
|
EXECUTABLE_SUFFIX = .exe
|
|
|
|
SHARED_EXT_CORE = dll
|
|
|
|
SHARED_EXT_CORE = dll
|
|
|
@ -693,33 +654,6 @@ |
|
|
|
LDLIBS_SECURE += $(addprefix -l, $(LIBS_SECURE))
|
|
|
|
LDLIBS_SECURE += $(addprefix -l, $(LIBS_SECURE))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# gpr .pc file
|
|
|
|
|
|
|
|
PC_NAME = gpr
|
|
|
|
|
|
|
|
PC_DESCRIPTION = gRPC platform support library
|
|
|
|
|
|
|
|
PC_CFLAGS =
|
|
|
|
|
|
|
|
PC_REQUIRES = $(PC_REQUIRES_GPR)
|
|
|
|
|
|
|
|
PC_LIBS_PRIVATE = $(PC_LIBS_GPR)
|
|
|
|
|
|
|
|
PC_LIB = -lgpr
|
|
|
|
|
|
|
|
GPR_PC_FILE := $(CORE_PC_TEMPLATE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# grpc .pc file
|
|
|
|
|
|
|
|
PC_NAME = gRPC
|
|
|
|
|
|
|
|
PC_DESCRIPTION = high performance general RPC framework
|
|
|
|
|
|
|
|
PC_CFLAGS =
|
|
|
|
|
|
|
|
PC_REQUIRES = gpr $(PC_REQUIRES_GRPC) $(PC_REQUIRES_SECURE)
|
|
|
|
|
|
|
|
PC_LIBS_PRIVATE = $(PC_LIBS_GRPC) $(PC_LIBS_SECURE)
|
|
|
|
|
|
|
|
PC_LIB = -lgrpc
|
|
|
|
|
|
|
|
GRPC_PC_FILE := $(CORE_PC_TEMPLATE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# grpc_unsecure .pc file
|
|
|
|
|
|
|
|
PC_NAME = gRPC unsecure
|
|
|
|
|
|
|
|
PC_DESCRIPTION = high performance general RPC framework without SSL
|
|
|
|
|
|
|
|
PC_CFLAGS =
|
|
|
|
|
|
|
|
PC_REQUIRES = gpr $(PC_REQUIRES_GRPC)
|
|
|
|
|
|
|
|
PC_LIBS_PRIVATE = $(PC_LIBS_GRPC)
|
|
|
|
|
|
|
|
PC_LIB = -lgrpc_unsecure
|
|
|
|
|
|
|
|
GRPC_UNSECURE_PC_FILE := $(CORE_PC_TEMPLATE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PROTOBUF_PKG_CONFIG = false
|
|
|
|
PROTOBUF_PKG_CONFIG = false
|
|
|
|
|
|
|
|
|
|
|
|
PC_REQUIRES_GRPCXX =
|
|
|
|
PC_REQUIRES_GRPCXX =
|
|
|
@ -779,24 +713,6 @@ |
|
|
|
LDLIBS_PROTOBUF += $(addprefix -l, $(LIBS_PROTOBUF))
|
|
|
|
LDLIBS_PROTOBUF += $(addprefix -l, $(LIBS_PROTOBUF))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# grpc++ .pc file
|
|
|
|
|
|
|
|
PC_NAME = gRPC++
|
|
|
|
|
|
|
|
PC_DESCRIPTION = C++ wrapper for gRPC
|
|
|
|
|
|
|
|
PC_CFLAGS =
|
|
|
|
|
|
|
|
PC_REQUIRES = grpc $(PC_REQUIRES_GRPCXX)
|
|
|
|
|
|
|
|
PC_LIBS_PRIVATE = $(PC_LIBS_GRPCXX)
|
|
|
|
|
|
|
|
PC_LIB = -lgrpc++
|
|
|
|
|
|
|
|
GRPCXX_PC_FILE := $(CPP_PC_TEMPLATE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# grpc++_unsecure .pc file
|
|
|
|
|
|
|
|
PC_NAME = gRPC++ unsecure
|
|
|
|
|
|
|
|
PC_DESCRIPTION = C++ wrapper for gRPC without SSL
|
|
|
|
|
|
|
|
PC_CFLAGS =
|
|
|
|
|
|
|
|
PC_REQUIRES = grpc_unsecure $(PC_REQUIRES_GRPCXX)
|
|
|
|
|
|
|
|
PC_LIBS_PRIVATE = $(PC_LIBS_GRPCXX)
|
|
|
|
|
|
|
|
PC_LIB = -lgrpc++_unsecure
|
|
|
|
|
|
|
|
GRPCXX_UNSECURE_PC_FILE := $(CPP_PC_TEMPLATE)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(MAKECMDGOALS),clean)
|
|
|
|
ifeq ($(MAKECMDGOALS),clean)
|
|
|
|
NO_DEPS = true
|
|
|
|
NO_DEPS = true
|
|
|
|
endif
|
|
|
|
endif
|
|
|
@ -944,7 +860,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
static: static_c static_cxx
|
|
|
|
static: static_c static_cxx
|
|
|
|
|
|
|
|
|
|
|
|
static_c: pc_c pc_c_unsecure cache.mk \
|
|
|
|
static_c: cache.mk \
|
|
|
|
% for lib in filtered_libs:
|
|
|
|
% for lib in filtered_libs:
|
|
|
|
% if 'Makefile' in lib.get('build_system', ['Makefile']):
|
|
|
|
% if 'Makefile' in lib.get('build_system', ['Makefile']):
|
|
|
|
% if lib.build == 'all' and lib.language == 'c' and not lib.get('external_deps', None):
|
|
|
|
% if lib.build == 'all' and lib.language == 'c' and not lib.get('external_deps', None):
|
|
|
@ -954,7 +870,7 @@ |
|
|
|
% endfor
|
|
|
|
% endfor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static_cxx: pc_cxx pc_cxx_unsecure cache.mk \
|
|
|
|
static_cxx: cache.mk \
|
|
|
|
% for lib in filtered_libs:
|
|
|
|
% for lib in filtered_libs:
|
|
|
|
% if 'Makefile' in lib.get('build_system', ['Makefile']):
|
|
|
|
% if 'Makefile' in lib.get('build_system', ['Makefile']):
|
|
|
|
% if lib.build == 'all' and lib.language == 'c++':
|
|
|
|
% if lib.build == 'all' and lib.language == 'c++':
|
|
|
@ -976,7 +892,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
shared: shared_c shared_cxx
|
|
|
|
shared: shared_c shared_cxx
|
|
|
|
|
|
|
|
|
|
|
|
shared_c: pc_c pc_c_unsecure cache.mk\
|
|
|
|
shared_c: cache.mk\
|
|
|
|
% for lib in filtered_libs:
|
|
|
|
% for lib in filtered_libs:
|
|
|
|
% if 'Makefile' in lib.get('build_system', ['Makefile']):
|
|
|
|
% if 'Makefile' in lib.get('build_system', ['Makefile']):
|
|
|
|
% if lib.build == 'all' and lib.language == 'c' and not lib.get('external_deps', None):
|
|
|
|
% if lib.build == 'all' and lib.language == 'c' and not lib.get('external_deps', None):
|
|
|
@ -985,7 +901,7 @@ |
|
|
|
% endif
|
|
|
|
% endif
|
|
|
|
% endfor
|
|
|
|
% endfor
|
|
|
|
|
|
|
|
|
|
|
|
shared_cxx: pc_cxx pc_cxx_unsecure cache.mk\
|
|
|
|
shared_cxx: cache.mk\
|
|
|
|
% for lib in filtered_libs:
|
|
|
|
% for lib in filtered_libs:
|
|
|
|
% if 'Makefile' in lib.get('build_system', ['Makefile']):
|
|
|
|
% if 'Makefile' in lib.get('build_system', ['Makefile']):
|
|
|
|
% if lib.build == 'all' and lib.language == 'c++':
|
|
|
|
% if lib.build == 'all' and lib.language == 'c++':
|
|
|
@ -1019,14 +935,6 @@ |
|
|
|
% endif
|
|
|
|
% endif
|
|
|
|
% endfor
|
|
|
|
% endfor
|
|
|
|
|
|
|
|
|
|
|
|
pc_c: $(LIBDIR)/$(CONFIG)/pkgconfig/grpc.pc $(LIBDIR)/$(CONFIG)/pkgconfig/gpr.pc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pc_c_unsecure: $(LIBDIR)/$(CONFIG)/pkgconfig/grpc_unsecure.pc $(LIBDIR)/$(CONFIG)/pkgconfig/gpr.pc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pc_cxx: $(LIBDIR)/$(CONFIG)/pkgconfig/grpc++.pc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pc_cxx_unsecure: $(LIBDIR)/$(CONFIG)/pkgconfig/grpc++_unsecure.pc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(EMBED_OPENSSL),true)
|
|
|
|
ifeq ($(EMBED_OPENSSL),true)
|
|
|
|
privatelibs_cxx: \
|
|
|
|
privatelibs_cxx: \
|
|
|
|
% for lib in filtered_libs:
|
|
|
|
% for lib in filtered_libs:
|
|
|
@ -1242,31 +1150,6 @@ |
|
|
|
$(E) "[MAKE] Generating $@"
|
|
|
|
$(E) "[MAKE] Generating $@"
|
|
|
|
$(Q) echo "$(CACHE_MK)" | tr , '\n' >$@
|
|
|
|
$(Q) echo "$(CACHE_MK)" | tr , '\n' >$@
|
|
|
|
|
|
|
|
|
|
|
|
$(LIBDIR)/$(CONFIG)/pkgconfig/gpr.pc:
|
|
|
|
|
|
|
|
$(E) "[MAKE] Generating $@"
|
|
|
|
|
|
|
|
$(Q) mkdir -p $(@D)
|
|
|
|
|
|
|
|
$(Q) echo "$(GPR_PC_FILE)" | tr , '\n' >$@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(LIBDIR)/$(CONFIG)/pkgconfig/grpc.pc:
|
|
|
|
|
|
|
|
$(E) "[MAKE] Generating $@"
|
|
|
|
|
|
|
|
$(Q) mkdir -p $(@D)
|
|
|
|
|
|
|
|
$(Q) echo "$(GRPC_PC_FILE)" | tr , '\n' >$@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(LIBDIR)/$(CONFIG)/pkgconfig/grpc_unsecure.pc:
|
|
|
|
|
|
|
|
$(E) "[MAKE] Generating $@"
|
|
|
|
|
|
|
|
$(Q) mkdir -p $(@D)
|
|
|
|
|
|
|
|
$(Q) echo "$(GRPC_UNSECURE_PC_FILE)" | tr , '\n' >$@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(LIBDIR)/$(CONFIG)/pkgconfig/grpc++.pc:
|
|
|
|
|
|
|
|
$(E) "[MAKE] Generating $@"
|
|
|
|
|
|
|
|
$(Q) mkdir -p $(@D)
|
|
|
|
|
|
|
|
$(Q) echo "$(GRPCXX_PC_FILE)" | tr , '\n' >$@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(LIBDIR)/$(CONFIG)/pkgconfig/grpc++_unsecure.pc:
|
|
|
|
|
|
|
|
$(E) "[MAKE] Generating $@"
|
|
|
|
|
|
|
|
$(Q) mkdir -p $(@D)
|
|
|
|
|
|
|
|
$(Q) echo "$(GRPCXX_UNSECURE_PC_FILE)" | tr , '\n' >$@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
% for p in protos:
|
|
|
|
% for p in protos:
|
|
|
|
ifeq ($(NO_PROTOC),true)
|
|
|
|
ifeq ($(NO_PROTOC),true)
|
|
|
|
$(GENDIR)/${p}.pb.cc: protoc_dep_error
|
|
|
|
$(GENDIR)/${p}.pb.cc: protoc_dep_error
|
|
|
|