Protocol buffers are a structured-data-serialization mechanism from Google. This is not a tutorial on protocol buffers. I will use the address book project example that appears in the official protocol buffers tutorial.
When using protocol buffers, you write
.proto files to describe your structured data. You use the
protoc compiler to generate C++ and Python code that allows you to serialize, load, and manipulate your protocol buffers data.
Out of the box,
SCons does not know how to compile
.proto files into C++ and Python code. The purpose of this post is to start exploring ways to integrate protocol buffers in the build process. The first iteration is based on manual “integration”.
The final result is available on my GitHub scons-series repository.