Make javanano a plugin
Treat LOCAL_PROTOC_OPTIMIZE_TYPE := javanano as a plugin by explicitly passing the path to protoc-gen-javanano. This allows removing the javanano customizations from the core plugin code, which no longer supports javanano natively. Bug: 117607748 Test: m checkbuild Change-Id: I913d798136fbee9bfaabe1d815b80c85025cb9b9
This commit is contained in:
parent
9ecb6b704c
commit
588ce8e36b
1 changed files with 2 additions and 0 deletions
|
@ -86,6 +86,8 @@ ifeq ($(LOCAL_PROTOC_OPTIMIZE_TYPE),micro)
|
|||
$(proto_java_srcjar): $(HOST_OUT_EXECUTABLES)/protoc-gen-javamicro
|
||||
else ifeq ($(LOCAL_PROTOC_OPTIMIZE_TYPE),nano)
|
||||
$(proto_java_srcjar): PRIVATE_PROTO_JAVA_OUTPUT_OPTION := --javanano_out
|
||||
$(proto_java_srcjar): PRIVATE_PROTOC_FLAGS += --plugin=$(HOST_OUT_EXECUTABLES)/protoc-gen-javanano
|
||||
$(proto_java_srcjar): $(HOST_OUT_EXECUTABLES)/protoc-gen-javanano
|
||||
else ifeq ($(LOCAL_PROTOC_OPTIMIZE_TYPE),stream)
|
||||
$(proto_java_srcjar): PRIVATE_PROTO_JAVA_OUTPUT_OPTION := --javastream_out
|
||||
$(proto_java_srcjar): PRIVATE_PROTOC_FLAGS += --plugin=$(HOST_OUT_EXECUTABLES)/protoc-gen-javastream
|
||||
|
|
Loading…
Reference in a new issue