MCPcopy Create free account
hub / github.com/nodejs/node / _RuleInputsAndOutputs

Function _RuleInputsAndOutputs

tools/gyp/pylib/gyp/generator/msvs.py:590–608  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

588
589
590def _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
611def _GenerateNativeRulesForMSVS(p, rules, output_dir, spec, options):

Callers 2

_GenerateExternalRulesFunction · 0.85
_AdjustSourcesForRulesFunction · 0.85

Calls 5

addMethod · 0.95
OrderedSetClass · 0.90
_FixPathsFunction · 0.85
_RuleExpandPathFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected