(root)
| 76 | |
| 77 | |
| 78 | def resolve_ninja(root): |
| 79 | path = shutil.which('ninja') |
| 80 | if path is not None: |
| 81 | return Path(path) |
| 82 | local_ninja = root / 'tools' / ('ninja.exe' if os.name == 'nt' else 'ninja') |
| 83 | if local_ninja.is_file(): |
| 84 | return local_ninja |
| 85 | raise RuntimeError('Ninja not found in PATH or tools directory.') |
| 86 | |
| 87 | |
| 88 | def build_native(args, root, android_sdk_root): |