Lets say I have a folder of some .proto
files:
Message.proto
Conversation.proto
For every .proto file for python, I need to do this:
protoc --python_out=. XXXXXXX.proto
For every .proto file for swift, I need to do this:
protoc --swift_out=. XXXXXXX.proto
Is there any easy way to autocompile every .proto file to multiple languages in a folder? I have a lot of .proto
files which I use for both languages, now I need to compile every file twice (for python and swift (but can you imagine the pain if I add more languages?)).
I am wondering what the fastest way there is to compile .proto
files to multiple languages. Ideally, I want a generated folder of .swift/.py files of the .proto files.