diff options
author | Ulas Kirazci <ulas@google.com> | 2013-03-14 16:44:33 -0700 |
---|---|---|
committer | Ulas Kirazci <ulas@google.com> | 2013-04-01 14:55:45 -0700 |
commit | 64d8d8f89050c5ada85341f967af391f4716a7cb (patch) | |
tree | 0d5c78f36c9fb26ff94696961a5b1d6129f7f05a /Android.mk | |
parent | db9ab02c090cdc5d2b31399867a4052351b8793d (diff) | |
download | external_protobuf-64d8d8f89050c5ada85341f967af391f4716a7cb.zip external_protobuf-64d8d8f89050c5ada85341f967af391f4716a7cb.tar.gz external_protobuf-64d8d8f89050c5ada85341f967af391f4716a7cb.tar.bz2 |
Nano protobufs.
Like micro protobufs except:
- No setter/getter/hazzer functions.
- Has state is not available. Outputs all fields != their default.
- CodedInputStream can only take byte[] (not InputStream).
- Repeated fields are in arrays, not ArrayList or Vector.
- Unset messages/groups are null, not "defaultInstance()".
- Required fields are always serialized.
To use:
- Link libprotobuf-java-2.3.0-nano runtime.
- Use LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Change-Id: I7429015b3c5f7f38b7be01eb2d4927f7a9999c80
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -106,6 +106,15 @@ COMPILER_SRC_FILES := \ src/google/protobuf/compiler/javamicro/javamicro_message.cc \ src/google/protobuf/compiler/javamicro/javamicro_message_field.cc \ src/google/protobuf/compiler/javamicro/javamicro_primitive_field.cc \ + src/google/protobuf/compiler/javanano/javanano_enum.cc \ + src/google/protobuf/compiler/javanano/javanano_enum_field.cc \ + src/google/protobuf/compiler/javanano/javanano_field.cc \ + src/google/protobuf/compiler/javanano/javanano_file.cc \ + src/google/protobuf/compiler/javanano/javanano_generator.cc \ + src/google/protobuf/compiler/javanano/javanano_helpers.cc \ + src/google/protobuf/compiler/javanano/javanano_message.cc \ + src/google/protobuf/compiler/javanano/javanano_message_field.cc \ + src/google/protobuf/compiler/javanano/javanano_primitive_field.cc \ src/google/protobuf/compiler/python/python_generator.cc \ src/google/protobuf/io/coded_stream.cc \ src/google/protobuf/io/gzip_stream.cc \ @@ -121,6 +130,29 @@ COMPILER_SRC_FILES := \ src/google/protobuf/stubs/strutil.cc \ src/google/protobuf/stubs/substitute.cc +# Java nano library (for device-side users) +# ======================================================= +include $(CLEAR_VARS) + +LOCAL_MODULE := libprotobuf-java-2.3.0-nano +LOCAL_MODULE_TAGS := optional +LOCAL_SDK_VERSION := 8 + +LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/nano) + +include $(BUILD_STATIC_JAVA_LIBRARY) + +# Java nano library (for host-side users) +# ======================================================= +include $(CLEAR_VARS) + +LOCAL_MODULE := host-libprotobuf-java-2.3.0-nano +LOCAL_MODULE_TAGS := optional + +LOCAL_SRC_FILES := $(call all-java-files-under, java/src/main/java/com/google/protobuf/nano) + +include $(BUILD_HOST_JAVA_LIBRARY) + # Java micro library (for device-side users) # ======================================================= include $(CLEAR_VARS) |