Compute all build paths from the given cross-build directory.
(cross_build_dir=None, emsdk_cache=None)
| 54 | |
| 55 | |
| 56 | def get_build_paths(cross_build_dir=None, emsdk_cache=None): |
| 57 | """Compute all build paths from the given cross-build directory.""" |
| 58 | if cross_build_dir is None: |
| 59 | cross_build_dir = DEFAULT_CROSS_BUILD_DIR |
| 60 | cross_build_dir = Path(cross_build_dir).absolute() |
| 61 | host_triple_dir = cross_build_dir / HOST_TRIPLE |
| 62 | prefix_dir = host_triple_dir / "prefix" |
| 63 | if emsdk_cache: |
| 64 | prefix_dir = emsdk_cache_root(emsdk_cache) / "prefix" |
| 65 | |
| 66 | return { |
| 67 | "cross_build_dir": cross_build_dir, |
| 68 | "native_build_dir": cross_build_dir / "build", |
| 69 | "host_triple_dir": host_triple_dir, |
| 70 | "host_build_dir": host_triple_dir / "build", |
| 71 | "host_dir": host_triple_dir / "build" / "python", |
| 72 | "prefix_dir": prefix_dir, |
| 73 | } |
| 74 | |
| 75 | |
| 76 | LOCAL_SETUP = CHECKOUT / "Modules" / "Setup.local" |
no test coverage detected
searching dependent graphs…