Merge "Compile each proto file separately"
This commit is contained in:
commit
cec077521e
1 changed files with 7 additions and 5 deletions
|
@ -843,11 +843,13 @@ define transform-proto-to-java
|
|||
@echo "Protoc: $@ <= $(PRIVATE_PROTO_SRC_FILES)"
|
||||
@rm -rf $(PRIVATE_PROTO_JAVA_OUTPUT_DIR)
|
||||
@mkdir -p $(PRIVATE_PROTO_JAVA_OUTPUT_DIR)
|
||||
$(hide) $(PROTOC) \
|
||||
$(addprefix --proto_path=, $(PRIVATE_PROTO_INCLUDES)) \
|
||||
$(PRIVATE_PROTO_JAVA_OUTPUT_OPTION)=$(PRIVATE_PROTO_JAVA_OUTPUT_DIR) \
|
||||
$(PRIVATE_PROTOC_FLAGS) \
|
||||
$(PRIVATE_PROTO_SRC_FILES)
|
||||
$(hide) for f in $(PRIVATE_PROTO_SRC_FILES); do \
|
||||
$(PROTOC) \
|
||||
$(addprefix --proto_path=, $(PRIVATE_PROTO_INCLUDES)) \
|
||||
$(PRIVATE_PROTO_JAVA_OUTPUT_OPTION)=$(PRIVATE_PROTO_JAVA_OUTPUT_DIR) \
|
||||
$(PRIVATE_PROTOC_FLAGS) \
|
||||
$$f; \
|
||||
done
|
||||
$(hide) touch $@
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in a new issue