This builds a static library to use protobuf with C++ on android.
This is based on protobuf-3.1.0.
- download needed protobuf version https://github.com/protocolbuffers/protobuf/releases
- Copy the
`protobuf-x.x.x\src\google
folder toprotobuf-android\src
` Open
`protobuf-android\Android.mk
` and update list of files to build according to`protobuf-x.x.x\cmake\libprotobuf.cmake
``protobuf-x.x.x\cmake\libprotobuf-lite.cmake
`
You can build on any platform which NDK supports.
Linux/Mac
cd build
./build.sh
Windows
cd build
build.bat
Static library is located in `build\obj\local\{platform}\libprotobuf.a
`