# esp_google_protobuf This is a wrapper for Google Protobuf library version v3.20.3 (29/09/2022). I haven't managed to port last version, since it depends on Abseil, and porting abseil is not easy. Currently lite version is supported. ## What is Protobuf? Protocol Buffers are language-neutral, platform-neutral extensible mechanisms for serializing structured data. ## What this library does? It: * builds `protoc` for your host PC where build runs * builds `libprotobuf-lite.a` * creates `libprotobuf-lite.alloc8.a` which uses aliased new/delete to allocate 8-bytes aligned memory * recursively finds all `*.proto` files in specific directory * produces `*.pb.cc` / `*.pb.h` files from found `*.proto` with `protoc` * creates list of generated sources to be used in `idf_component_register()` ## Using There is an example in `example` directory. Script automatically finds all `*.proto` files recursively, and you can add necessary built-in proto-files (like `any.proto`) manually. You should specify all directories to search. Generated files are created relatively to this directories.
idf.py add-dependency "albkharisov/esp_google_protobuf^1.0.0"