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

Function _BuildCommandLineForRule

tools/gyp/pylib/gyp/generator/msvs.py:441–454  ·  view source on GitHub ↗
(spec, rule, has_input_path, do_setup_env)

Source from the content-addressed store, hash-verified

439
440
441def _BuildCommandLineForRule(spec, rule, has_input_path, do_setup_env):
442 # Currently this weird argument munging is used to duplicate the way a
443 # python script would need to be run as part of the chrome tree.
444 # Eventually we should add some sort of rule_default option to set this
445 # per project. For now the behavior chrome needs is the default.
446 mcs = rule.get("msvs_cygwin_shell")
447 if mcs is None:
448 mcs = int(spec.get("msvs_cygwin_shell", 1))
449 elif isinstance(mcs, str):
450 mcs = int(mcs)
451 quote_cmd = int(rule.get("msvs_quote_cmd", 1))
452 return _BuildCommandLineForRuleRaw(
453 spec, rule["action"], mcs, has_input_path, quote_cmd, do_setup_env=do_setup_env
454 )
455
456
457def _AddActionStep(actions_dict, inputs, outputs, description, command):

Callers 3

_AddActionsFunction · 0.85
__init__Method · 0.85

Calls 3

intFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected