recursive file compilation

1,046 views
Skip to first unread message

Idan Noti

unread,
May 20, 2014, 5:45:30 AM5/20/14
to nan...@googlegroups.com
Hi,
I need to compile a whole tree of .proto files.

Is it possible to invoke the protoc on all the files at once?

I know that I can invoke the protoc with several files in the command line, but I need a way to do this from a file containing a list of all files.

Petteri Aimonen

unread,
May 20, 2014, 5:54:19 AM5/20/14
to nan...@googlegroups.com
Hi,

> I know that I can invoke the protoc with several files in the command
> line, but I need a way to do this from a file containing a list of all
> files.

There is no built-in support for this in protoc. However, most build
systems and command shells are capable of putting the file names as
arguments on the command line.

Refer to the user guide of the build system you are using to see how to
add a custom build command to use for .proto files.

--
Petteri

edens...@gmail.com

unread,
Aug 15, 2017, 3:34:25 PM8/15/17
to nanopb

Hi there, did you ever end up writing a script for this?

Reply all
Reply to author
Forward
0 new messages