Skip to content

Dimon4eg/protobuf-android

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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`

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.7%
  • Other 0.3%