forked from openkylin/platform_build
Merge changes from topic "protobuf-3.9.1"
* changes: Keep proguard fields for lite runtime Install vendorcompat verison of protobuf Make javanano a plugin
This commit is contained in:
commit
64c50b353e
|
@ -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
|
||||
|
|
|
@ -72,3 +72,7 @@
|
|||
|
||||
# Less spammy.
|
||||
-dontnote
|
||||
|
||||
# The lite proto runtime uses reflection to access fields based on the names in
|
||||
# the schema, keep all the fields.
|
||||
-keepclassmembers class * extends com.google.protobuf.MessageLite { <fields>; }
|
||||
|
|
|
@ -75,3 +75,7 @@ PRODUCT_PACKAGES += \
|
|||
# VINTF data for vendor image
|
||||
PRODUCT_PACKAGES += \
|
||||
device_compatibility_matrix.xml \
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
libprotobuf-cpp-lite-vendorcompat \
|
||||
libprotobuf-cpp-full-vendorcompat \
|
||||
|
|
Loading…
Reference in New Issue