MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / resolve_ninja

Function resolve_ninja

tools/build_android_aar.py:78–85  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

76
77
78def 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
88def build_native(args, root, android_sdk_root):

Callers 1

build_nativeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected