|
|
@ -23,19 +23,15 @@ PROTOINCLUDE ?= /usr/local/include |
|
|
|
# NOTE: if "protoc" command is not in the PATH, you need to modify this file.
|
|
|
|
# NOTE: if "protoc" command is not in the PATH, you need to modify this file.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
FLAGS+= --proto_path=.:$(PROTOINCLUDE)
|
|
|
|
|
|
|
|
ifeq ($(LANGUAGE),go) |
|
|
|
ifeq ($(LANGUAGE),go) |
|
|
|
FLAGS+= --$(LANGUAGE)_out=plugins=grpc:$(OUTPUT)
|
|
|
|
$(error Go source files are not generated from this repository. See: https://github.com/google/go-genproto) |
|
|
|
else |
|
|
|
|
|
|
|
FLAGS+= --$(LANGUAGE)_out=$(OUTPUT) --grpc_out=$(OUTPUT)
|
|
|
|
|
|
|
|
FLAGS+= --plugin=protoc-gen-grpc=$(GPRCPLUGIN)
|
|
|
|
|
|
|
|
endif |
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
ifeq ($(LANGUAGE),go) |
|
|
|
FLAGS+= --proto_path=.:$(PROTOINCLUDE)
|
|
|
|
SUFFIX:= pb.go
|
|
|
|
FLAGS+= --$(LANGUAGE)_out=$(OUTPUT) --grpc_out=$(OUTPUT)
|
|
|
|
else |
|
|
|
FLAGS+= --plugin=protoc-gen-grpc=$(GPRCPLUGIN)
|
|
|
|
|
|
|
|
|
|
|
|
SUFFIX:= pb.cc
|
|
|
|
SUFFIX:= pb.cc
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DEPS:= $(shell find google $(PROTOINCLUDE)/google/protobuf -type f -name '*.proto' | sed "s/proto$$/$(SUFFIX)/")
|
|
|
|
DEPS:= $(shell find google $(PROTOINCLUDE)/google/protobuf -type f -name '*.proto' | sed "s/proto$$/$(SUFFIX)/")
|
|
|
|
|
|
|
|
|
|
|
|