Skip to content

mostafau/protobuf_android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

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`

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages