Update the main Makefile to add protobuf include directory in order

to access google/protobuf/descriptor.proto. In the future, entire
google/protobuf package will be bundled with protoc installation,
instead of googleapi package.
This commit is contained in:
wora 2015-04-20 14:31:58 -07:00
parent dfbd92b9af
commit 19d798b49a
1 changed files with 4 additions and 0 deletions

View File

@ -13,9 +13,13 @@ OUTPUT ?= ./gens
LANGUAGE ?= cpp
# Compile the entire repository
#
# NOTE: if the "protoc" command is not in the PATH or the protobuf include
# directory is not "/usr/local/include", you need to modify this file.
all:
mkdir -p $(OUTPUT)
find google -type f -name '*.proto' | xargs protoc \
--proto_path=.:/usr/local/include \
--$(LANGUAGE)_out=$(OUTPUT) --grpc_out=$(OUTPUT) \
--plugin=protoc-gen-grpc=/usr/local/bin/grpc_$(LANGUAGE)_plugin