Find the inputs and outputs generated by a rule. Arguments: rule: the rule in question. trigger_file: the main trigger for this rule. Returns: The pair of (inputs, outputs) involved in this rule.
(rule, trigger_file)
| 588 | |
| 589 | |
| 590 | def _RuleInputsAndOutputs(rule, trigger_file): |
| 591 | """Find the inputs and outputs generated by a rule. |
| 592 | |
| 593 | Arguments: |
| 594 | rule: the rule in question. |
| 595 | trigger_file: the main trigger for this rule. |
| 596 | Returns: |
| 597 | The pair of (inputs, outputs) involved in this rule. |
| 598 | """ |
| 599 | raw_inputs = _FixPaths(rule.get("inputs", [])) |
| 600 | raw_outputs = _FixPaths(rule.get("outputs", [])) |
| 601 | inputs = OrderedSet() |
| 602 | outputs = OrderedSet() |
| 603 | inputs.add(trigger_file) |
| 604 | for i in raw_inputs: |
| 605 | inputs.add(_RuleExpandPath(i, trigger_file)) |
| 606 | for o in raw_outputs: |
| 607 | outputs.add(_RuleExpandPath(o, trigger_file)) |
| 608 | return (inputs, outputs) |
| 609 | |
| 610 | |
| 611 | def _GenerateNativeRulesForMSVS(p, rules, output_dir, spec, options): |
no test coverage detected