[protobuf] Re: Only generate files if current out of date?

2011-05-26 Thread Maurice Nicholson
Answering my own question :-) Think I found what I need in the Maven plugin docs: Normally this plug-in executes the protoc compilation on every execution this can be overriden by setting: checkStalenesstrue/checkStaleness From

Re: [protobuf] Re: Only generate files if current out of date?

2011-05-26 Thread Jason Hsueh
Yeah, this is really a build system feature. make/maven/etc should check whether the proto compiler needs to be reinvoked. On Thu, May 26, 2011 at 2:16 AM, Maurice Nicholson maur...@mauricenicholson.com wrote: Answering my own question :-) Think I found what I need in the Maven plugin docs:

[protobuf] Best Practices on updating generated Message object

2011-05-26 Thread veaven
Hi, What's the best practices on updating generated Message objects? I use google-protobuf to generate Java classes according to proto file, since these classes are immutable so I need to use its Builder to copy/close the object and then update it. It is okay for a few update on the

[protobuf] How to compile *.pb.cc as *.o?

2011-05-26 Thread lzhshen
Take addressbook.proto as example, following command does not work: c++ addressbook.pb.cc -o addressbook.o `pkg-config --cflags protobuf` Following are error output: /usr/lib64/gcc/x86_64-unknown-linux/4.1.2/../../../../lib64/crt1.o: In function `_start': (.text+0x20): undefined reference to

Re: [protobuf] How to compile *.pb.cc as *.o?

2011-05-26 Thread Adam Skutt
On Thu, May 26, 2011 at 4:29 AM, lzhshen lzhs...@gmail.com wrote: Take addressbook.proto as example, following command does not work: c++ addressbook.pb.cc -o addressbook.o  `pkg-config --cflags protobuf` Following are error output:

[protobuf] Re: Issue 148 in protobuf: RFE: Support Documentation option in proto files and javadoc in generated Java files

2011-05-26 Thread protobuf
Comment #3 on issue 148 by flintobr...@gmail.com: RFE: Support Documentation option in proto files and javadoc in generated Java files http://code.google.com/p/protobuf/issues/detail?id=148 Has anyone done any work on this? We need it. I don't know if we'll have time to jump in and fork it