Understanding the build process of project

74 views
Skip to first unread message

Mike Lee

unread,
Apr 3, 2017, 12:48:58 AM4/3/17
to grpc.io
Hello,

I am trying to fiddle with this project so I can learn C better with a real project however I am extremely confused with the build process of this project. This whole mako thing makes absolutely no sense to me and the docs are rubbish.

For example, in
.../master/templates/gRPC-Core.podspec.template

the following notice is present: 

# This file has been automatically generated from a template file.
# Please make modifications to `templates/gRPC-Core.podspec.template`
# instead. This file can be regenerated from the template by running # `tools/buildgen/generate_projects.sh`.

So I have to edit the same template file that generates the template file? Am I missing something? Where can I find more information on how this project gets build exactly? thanks in advance

Nicolas Noble

unread,
Apr 3, 2017, 1:56:13 AM4/3/17
to Mike Lee, grpc.io

https://github.com/grpc/grpc/blob/master/INSTALL.md


--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/4a226cb1-83c5-47fb-a1c9-22447c1b9bc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted
Message has been deleted

Mike Lee

unread,
Apr 3, 2017, 6:23:36 AM4/3/17
to grpc.io, ac.pow...@gmail.com
Hi

I wasn't really asking how to build the project using the preconfigured command (i.e make install), but what actually happens when you run the command.....

Mike Lee

unread,
Apr 3, 2017, 6:24:00 AM4/3/17
to grpc.io, ac.pow...@gmail.com
There seems to be  a lot of crazy stuff with mako, yaml, bazel, Cmake....jesus christ what the hell is going on??

maybe i should just try redis.....but this looks more interesting. 

any help on how all these fit together would be appreciated. the docs seem outdated and a lot of the links are broken.

thanks

On Monday, April 3, 2017 at 3:56:13 PM UTC+10, Nicolas Noble wrote:

Craig Tiller

unread,
Apr 3, 2017, 8:10:41 AM4/3/17
to Mike Lee, grpc.io

We end up needing to support a bunch of build systems, but the maintenance cost of having every developer update all of them would be excessive. So we've got a bunch of relatively ad-hoc scripts that read build.yaml, process it a little, and feed it into the mako-templates-embedded-in-yaml that you've found.

Most of the support-a-new-build-system work comes down to writing a template to extract the bits you need (copy-paste from existing examples works marvelously).

We don't have a way to code generate the codegen warning comment, so it gets typed into the templates, which is really confusing I agree, but O(nobody) looks there and there have been bigger fish to fry... We'd much rather spend time building RPC systems.


Message has been deleted

Mike Lee

unread,
Apr 3, 2017, 8:43:03 AM4/3/17
to grpc.io
 thanks for that chris.

It's a shame really, unfortunately I'm just unable to contribute/participate in a project whose build system is akin to voodo....what's the point??

I hope a much more sane/detailed documentation on how exactly this build system comes together is in the pipeline some time down the line. I can only imagine the amount of would-be contributors to this project who had puked once opening this repository. 

Craig Tiller

unread,
Apr 3, 2017, 8:47:29 AM4/3/17
to Mike Lee, grpc.io

Thanks for the feedback. I wish you all the best in finding another project to contribute to.


--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.

Mike Lee

unread,
Apr 3, 2017, 8:48:01 AM4/3/17
to grpc.io
One more question Chris, what or OS do you use when developing this project??

Seems like Windows with VS is preferred?

Craig Tiller

unread,
Apr 3, 2017, 8:49:58 AM4/3/17
to Mike Lee, grpc.io

I do all my work on either Linux or Mac.


--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
Reply all
Reply to author
Forward
0 new messages