OSDN Git Service

AAPT2: Switch to protobuf for intermediate format
authorAdam Lesinski <adamlesinski@google.com>
Thu, 4 Feb 2016 23:59:23 +0000 (15:59 -0800)
committerAdam Lesinski <adamlesinski@google.com>
Tue, 9 Feb 2016 19:59:17 +0000 (19:59 +0000)
commit59e04c6f92da584b322c87072f18e6cab4de4c60
treec08dd13ae57f9b6000441035201f226d532f8896
parent41466449aae2d304cf05680f5adbf44312d7a65e
AAPT2: Switch to protobuf for intermediate format

Without needing to conform to the runtime data format,
it is much easier to add new features such as debugging symbols
and carrying over product data to link time.

This also simplifies the runtime format parser and serializer,
which will change much less frequently than the protobuf intermediate
format.

Change-Id: I209787bbf087db0a58a534cb8511c51d21133e00
30 files changed:
tools/aapt2/Android.mk
tools/aapt2/Format.proto [new file with mode: 0644]
tools/aapt2/Main.cpp
tools/aapt2/ResourceUtils.cpp
tools/aapt2/ResourceUtils.h
tools/aapt2/ResourceUtils_test.cpp
tools/aapt2/ResourceValues.cpp
tools/aapt2/ResourceValues.h
tools/aapt2/ValueVisitor.h
tools/aapt2/compile/Compile.cpp
tools/aapt2/compile/IdAssigner.cpp
tools/aapt2/dump/Dump.cpp [new file with mode: 0644]
tools/aapt2/flatten/Archive.h
tools/aapt2/flatten/FileExportWriter.h [deleted file]
tools/aapt2/flatten/FileExportWriter_test.cpp [deleted file]
tools/aapt2/flatten/ResourceTypeExtensions.h
tools/aapt2/flatten/TableFlattener.cpp
tools/aapt2/flatten/TableFlattener.h
tools/aapt2/flatten/TableFlattener_test.cpp
tools/aapt2/link/Link.cpp
tools/aapt2/proto/ProtoHelpers.cpp [new file with mode: 0644]
tools/aapt2/proto/ProtoHelpers.h [new file with mode: 0644]
tools/aapt2/proto/ProtoSerialize.h [new file with mode: 0644]
tools/aapt2/proto/TableProtoDeserializer.cpp [new file with mode: 0644]
tools/aapt2/proto/TableProtoSerializer.cpp [new file with mode: 0644]
tools/aapt2/proto/TableProtoSerializer_test.cpp [new file with mode: 0644]
tools/aapt2/unflatten/BinaryResourceParser.cpp
tools/aapt2/unflatten/BinaryResourceParser.h
tools/aapt2/unflatten/FileExportHeaderReader.h [deleted file]
tools/aapt2/unflatten/FileExportHeaderReader_test.cpp [deleted file]