Dimon4eg / protobuf-android

Google protocol buffer build for android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google protobuf for Android NDK

This builds a static library to use protobuf with C++ on android.

This is based on protobuf-3.1.0.

Update protobuf

  • download needed protobuf version https://github.com/protocolbuffers/protobuf/releases
  • Copy the `protobuf-x.x.x\src\google folder to protobuf-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`

Build

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`

About

Google protocol buffer build for android

License:Other


Languages

Language:C++ 99.8%Language:Shell 0.1%Language:Makefile 0.1%Language:C 0.1%Language:Python 0.0%Language:Batchfile 0.0%