I have protobuf proto-files in source tree. I want to generate the source files from proto-files on every change and on first run (e.g. I create new proto-file). Then, I want to compile shared library from these source files and preserve them in source tree.
What is the best way to achieve my goal?