Hi,
I've my own compiler extension that adds some code over the standard
code generated by cppgenerator.
Now, I want to add a custom option, I know I can do that by adding the
custom option extending with a proto file like "extend
google.protobuf.MethodOptions{ optional bool foo=50000;}".

If I do it that way any .proto file that uses it will need access to
the file that defines the extension and import it.
I was wondering if there is a way of embedding it somehow in my
compiler so that the file is not needed.

My app is basically a codegenerator based on cppgenerator and
google::protobuf::compiler::CommandLineInterface cli where I register
it and then run cli.Run.

I guess somehow it should be possible to add the custom descriptor to
the generator at runtime without the need of the proto file.

Thanks

Arkaitz

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to