xref: /aosp_15_r20/external/protobuf/README.android (revision 1b3f573f81763fcece89efc2b6a5209149e44ab8)
1*1b3f573fSAndroid Build Coastguard WorkerURL: http://code.google.com/p/protobuf/downloads/list
2*1b3f573fSAndroid Build Coastguard WorkerVersion: v3.0.0-beta3
3*1b3f573fSAndroid Build Coastguard WorkerLicense: Google BSD like
4*1b3f573fSAndroid Build Coastguard WorkerDescription: "Protobuf: The Google protobuf compiler and runtimes for various languages"
5*1b3f573fSAndroid Build Coastguard Worker
6*1b3f573fSAndroid Build Coastguard WorkerLocal changes:
7*1b3f573fSAndroid Build Coastguard Worker
8*1b3f573fSAndroid Build Coastguard WorkerLocal Modifications:
9*1b3f573fSAndroid Build Coastguard Worker - Initial changes include support for the micro protobuf compiler and the
10*1b3f573fSAndroid Build Coastguard Worker   assoicated runtime.
11*1b3f573fSAndroid Build Coastguard Worker - https://github.com/google/protobuf/pull/2732: const FieldDescriptorCompare
12*1b3f573fSAndroid Build Coastguard Worker
13*1b3f573fSAndroid Build Coastguard WorkerProtocol Buffers are a way of encoding structured data in an efficient
14*1b3f573fSAndroid Build Coastguard Workeryet extensible format. Google uses Protocol Buffers for almost all
15*1b3f573fSAndroid Build Coastguard Workerof its internal RPC protocols and file formats.
16*1b3f573fSAndroid Build Coastguard Worker
17*1b3f573fSAndroid Build Coastguard WorkerInitially the protoc compiler is not integrated into the Android build system
18*1b3f573fSAndroid Build Coastguard Workerand the Android.mk will simply build the javamicro runtime static library.
19*1b3f573fSAndroid Build Coastguard Worker
20*1b3f573fSAndroid Build Coastguard WorkerTo build the compiler follow the instructions in README.txt for
21*1b3f573fSAndroid Build Coastguard Workercompiling and installing.
22*1b3f573fSAndroid Build Coastguard Worker
23*1b3f573fSAndroid Build Coastguard WorkerThe Android.mk file creates the a static library which can be added
24*1b3f573fSAndroid Build Coastguard Workerto any Android application by Adding to LOCAL_STATIC_JAVA_LIBRARIES
25*1b3f573fSAndroid Build Coastguard Workercom.google.protobuf.micro:
26*1b3f573fSAndroid Build Coastguard Worker
27*1b3f573fSAndroid Build Coastguard Worker  LOCAL_STATIC_JAVA_LIBRARIES += com.google.protobuf.micro
28*1b3f573fSAndroid Build Coastguard Worker
29*1b3f573fSAndroid Build Coastguard WorkerFollow the instructions in Micro section of java/README.txt for
30*1b3f573fSAndroid Build Coastguard Workerdetails on compiling .proto files for the micro runtine.
31