forked from openkylin/platform_build
Revert "Allow proto builds to pass in java proto params."
This reverts commit 28b46fc16c
.
Speculative fix for master builds. I cannot repro the break the bots
are seeing locally, but it seems related to building protobufs and this
CL was in the first broken build.
This commit is contained in:
parent
dd3d8f4ca9
commit
fc2bad5c36
|
@ -268,7 +268,6 @@ $(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_OPTION := --java_out
|
|||
endif
|
||||
endif
|
||||
$(proto_java_sources_file_stamp): PRIVATE_PROTOC_FLAGS := $(LOCAL_PROTOC_FLAGS)
|
||||
$(proto_java_sources_file_stamp): PRIVATE_PROTO_JAVA_OUTPUT_PARAMS := $(LOCAL_PROTO_JAVA_OUTPUT_PARAMS)
|
||||
$(proto_java_sources_file_stamp) : $(proto_sources_fullpath) $(PROTOC)
|
||||
$(call transform-proto-to-java)
|
||||
|
||||
|
|
|
@ -120,7 +120,6 @@ LOCAL_BUILD_HOST_DEX:=
|
|||
LOCAL_DEX_PREOPT:= # '',true,false,nostripping
|
||||
LOCAL_PROTOC_OPTIMIZE_TYPE:= # lite(default),micro,nano,full
|
||||
LOCAL_PROTOC_FLAGS:=
|
||||
LOCAL_PROTO_JAVA_OUTPUT_PARAMS:=
|
||||
LOCAL_NO_CRT:=
|
||||
LOCAL_PROPRIETARY_MODULE:=
|
||||
LOCAL_PRIVILEGED_MODULE:=
|
||||
|
|
|
@ -889,11 +889,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) \
|
||||
$(PRIVATE_PROTO_JAVA_OUTPUT_OPTION)="$(PRIVATE_PROTO_JAVA_OUTPUT_PARAMS):$(PRIVATE_PROTO_JAVA_OUTPUT_DIR)" \
|
||||
$(PRIVATE_PROTOC_FLAGS) \
|
||||
$(hide) for f in $(PRIVATE_PROTO_SRC_FILES); do \
|
||||
$(PROTOC) \
|
||||
$(addprefix --proto_path=, $(PRIVATE_PROTO_INCLUDES)) \
|
||||
$(PRIVATE_PROTO_SRC_FILES)
|
||||
$(PRIVATE_PROTO_JAVA_OUTPUT_OPTION)=$(PRIVATE_PROTO_JAVA_OUTPUT_DIR) \
|
||||
$(PRIVATE_PROTOC_FLAGS) \
|
||||
$$f || exit 33; \
|
||||
done
|
||||
$(hide) touch $@
|
||||
endef
|
||||
|
||||
|
|
Loading…
Reference in New Issue