(self, subcommand, path, *args)
| 933 | return err, labels |
| 934 | |
| 935 | def GNCmd(self, subcommand, path, *args): |
| 936 | if self.platform.startswith('linux'): |
| 937 | subdir, exe = 'linux64', 'gn' |
| 938 | elif self.platform == 'darwin': |
| 939 | subdir, exe = 'mac', 'gn' |
| 940 | else: |
| 941 | subdir, exe = 'win', 'gn.exe' |
| 942 | |
| 943 | arch = platform.machine() |
| 944 | if (arch.startswith('s390') or arch.startswith('ppc') or |
| 945 | self.platform.startswith('aix')): |
| 946 | # use gn in PATH |
| 947 | gn_path = 'gn' |
| 948 | else: |
| 949 | gn_path = self.PathJoin(self.chromium_src_dir, 'buildtools', subdir, exe) |
| 950 | return [gn_path, subcommand, path] + list(args) |
| 951 | |
| 952 | |
| 953 | def GNArgs(self, vals, expand_imports=False): |
no test coverage detected