wangyu5 / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

Rules don't allow extraction of inputs/outputs from the sources they process #163

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The rule syntax works nicely, but it assumes all inputs/outputs can be 
generated via simple variable substitution.  It would be nice if there was a 
way to use a helper to extra the inputs/outputs from the files so each source 
the rule matches gets full input/output listings.

A concrete example of this is the grd/grit rules in Chromium.  Since the grd 
syntax allows for the import of external files, the input list really needs to 
be different for each file that is matched by the rule.  Likewise, the process 
generates headers and a collection of language output files, but to capture 
that list, we really need a help to ask grit what the grd lists for output.

Original issue reported on code.google.com by thomasvl@chromium.org on 28 Jul 2010 at 12:07