wyzssw / protobuf-dt

Automatically exported from code.google.com/p/protobuf-dt
0 stars 0 forks source link

Proto file should be compile when the project is built. Not only saved #207

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am currently using Elcipse CDT. I want to create a shared Library (.so) which 
contains encapsulate the generated code form the .proto.

The .proto file are shared across java /c++ projects so I use SVN:External to 
include them in my c++ Shared Lib project.

Right now, to have the .cc and .h generated, I have to save the .proto file and 
then I can build the shared lib project.

It would be more beneficial if I could simply build the project and have the 
.proto compiled before the shared lib is build.

Right now I will try using the pre-build event and to hardcode the compilation 
of the .proto...

Original issue reported on code.google.com by sylvain....@gmail.com on 1 Mar 2012 at 6:59

GoogleCodeExporter commented 9 years ago

Original comment by alr...@google.com on 2 Mar 2012 at 6:01

GoogleCodeExporter commented 9 years ago
Any progress on this?

Original comment by vi...@umich.edu on 10 Oct 2012 at 5:49

GoogleCodeExporter commented 9 years ago
I'll have updates once I make progress. You are welcome to contribute to speed 
things up.

Original comment by Alex.Rui...@gmail.com on 10 Oct 2012 at 6:49

GoogleCodeExporter commented 9 years ago

Original comment by alr...@google.com on 23 Oct 2012 at 12:24

GoogleCodeExporter commented 9 years ago
The proto editor uses protoc to compile files when the Eclipse builder tells it 
that a build is performed. A build can be performed when saving a file and 
selecting "Project" > "Clean" (if configured to clean the project after 
cleaning).

The command "Project" > "Build" will trigger a build only if Eclipse thinks 
there are un-built resources, (e.g. files that were recently changed.) Because 
of that, this command may or may not trigger a build.

If you want to consistently have Eclipse call protoc, call the "Project" > 
"Clean" command in Eclipse. Make sure you select the option to build the whole 
workspace or the selected project.

There is nothing do to from our side.

Original comment by alr...@google.com on 24 Oct 2012 at 5:33