(spec, rule, has_input_path, do_setup_env)
| 439 | |
| 440 | |
| 441 | def _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 | |
| 457 | def _AddActionStep(actions_dict, inputs, outputs, description, command): |
no test coverage detected