Re: [protobuf] Creating a FileDescriptorSet of all .proto files used in a certain executable

2011-02-22 Thread Oren Shemesh
Thanks Kenton, I appreciate the explanation. Regards, Oren. On Tue, Feb 22, 2011 at 8:52 PM, Kenton Varda wrote: > As you note, you can't iterate over all compiled-in protos. However, if > you can collect a set of "root" protos that you care about, it's easy to > traverse down the tree to coll

Re: [protobuf] Creating a FileDescriptorSet of all .proto files used in a certain executable

2011-02-22 Thread Kenton Varda
As you note, you can't iterate over all compiled-in protos. However, if you can collect a set of "root" protos that you care about, it's easy to traverse down the tree to collect all their dependencies. In general, trying to enumerate "everything that is linked in" tends to lead to trouble. The

[protobuf] Creating a FileDescriptorSet of all .proto files used in a certain executable

2011-02-17 Thread Oren Shemesh
Hello, My executable is composed of multiple .proto files, some of them importing others. I would like the executable to communicate with a generic program (Which is compiled once and does not change), using protobuf messages. So, I need the generic program to get the descriptors of messages used