(self)
| 488 | return 0 |
| 489 | |
| 490 | def GetConfig(self): |
| 491 | build_dir = self.args.path[0] |
| 492 | |
| 493 | vals = self.DefaultVals() |
| 494 | if self.args.builder or self.args.builder_group or self.args.config: |
| 495 | vals = self.Lookup() |
| 496 | # Re-run gn gen in order to ensure the config is consistent with the |
| 497 | # build dir. |
| 498 | self.RunGNGen(vals) |
| 499 | return vals |
| 500 | |
| 501 | toolchain_path = self.PathJoin(self.ToAbsPath(build_dir), |
| 502 | 'toolchain.ninja') |
| 503 | if not self.Exists(toolchain_path): |
| 504 | self.Print('Must either specify a path to an existing GN build dir ' |
| 505 | 'or pass in a -m/-b pair or a -c flag to specify the ' |
| 506 | 'configuration') |
| 507 | return {} |
| 508 | |
| 509 | vals['gn_args'] = self.GNArgsFromDir(build_dir) |
| 510 | return vals |
| 511 | |
| 512 | def GNArgsFromDir(self, build_dir): |
| 513 | args_contents = "" |
no test coverage detected