Hello,
I'm doing some debugging of the webrtc build, and am trying to trace through the various build options managed through gyp files.
Can anyone who works with this stuff daily point me to any resources for debugging gyp files? The ones I'm looking at are littered with conditionals, and it would be *very* useful to either be able to inject the equivalent of a printf() in there at certain points, or be able to print out the entire parsed JSON structure after it's been processed. My goal is really to just be able to print out the intermediate values, so I can trace backwards how certain build decisions are being made.
This is the equivalent to the classic case in C programming where you ask yourself, "how the heck did that #define get set to XYZ?"....
Looking through what little gyp documentation I've found, it's mostly focused on the syntax of implementation, with few pointers on debugging for when things go wrong.
Also, are changes to the gyp files picked up automatically (i.e. the next time I run 'ninja -C out/Debug')? Or do I need to run some command to regenerate the build files after modifying the gyp?
I realize the webrtc developers may interpret this to be a bit off-topic (aside from the fact that their entire project relies on the gyp build system). If there is some other forum or IRC channel where such questions are better to ask, don't hesitate to point me in that direction and tell me to get lost. :-)
Any suggestions/pointers that can be offered would be greatly appreciated.
Thanks in advance,
Devin