humanai / gyp

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

Need to have a way to define many-to-many relationships. #60

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is a request for a feature that allows many-to-many source 
relationships.

An example of this is an IDL tool that needs to have all of the inputs 
given on the command line, and generates a number of outputs as a result, 
in a single invocation.

I know that there are limitations in the IDEs that don't have these 
mappings natively, but they can be simulated by having a helper script that 
just touches a timestamp file after the given rule completes, and so turns 
a many-to-many relationship into a many-to-one relationship that all IDEs 
can handle.

It's not possible to do this with an action because in parallel build 
settings it gets confused about build order when process_outputs_as_sources 
is set.  Also, you're required to explicitly specify the outputs and the 
inputs (which are related, at least in the IDL case, by simple naming 
rules), and it would be more fragile from a maintenance standpoint.

Original issue reported on code.google.com by gspen...@gmail.com on 17 Aug 2009 at 9:33

GoogleCodeExporter commented 9 years ago

Original comment by gspen...@google.com on 19 Aug 2009 at 12:26

GoogleCodeExporter commented 9 years ago
Likely not easy to add (it would require parallel implementations in all the 
generators, with independent tricky 
solutions to coax them in to doing what we want).  Although the idea is 
valuable, it doesn't seem pressing 
relatively to other things, so lowering the priority but keeping the idea in 
the list.

Original comment by sgk@chromium.org on 21 Oct 2009 at 5:35

GoogleCodeExporter commented 9 years ago

Original comment by sgk@chromium.org on 21 Oct 2009 at 5:35