| Build the APK with buck2, from pins rather than from a second checkout a71ef8f nandi 19d ago | 1 | #!/usr/bin/env dotslash |
| 2 | |
| 3 | // The NDK, pinned the way every other tool here is. |
| 4 | // |
| 5 | // bin/clang is the path named, but the whole archive is what matters: the |
| 6 | // driver finds its sysroot, its resource directory and the rest of the LLVM |
| 7 | // binaries relative to itself, so the tree has to travel intact. The name is |
| 8 | // only what makes this a runnable shim as well as a manifest. |
| 9 | // |
| 10 | // Google publishes SHA-1 for these and nothing else, so the digests below were |
| 11 | // taken from the archives and checked against the SHA-1 in repository2-3.xml. |
| 12 | // |
| 13 | // There is no Linux/arm64 NDK. Both macOS entries are the x86_64 prebuilt, |
| 14 | // which is what Google ships — an arm64 host runs it under Rosetta. |
| 15 | { |
| 16 | "name": "android-ndk-r29", |
| 17 | "platforms": { |
| 18 | "linux-x86_64": { |
| 19 | "size": 783549481, |
| 20 | "hash": "sha256", |
| 21 | "digest": "4abbbcdc842f3d4879206e9695d52709603e52dd68d3c1fff04b3b5e7a308ecf", |
| 22 | "format": "zip", |
| 23 | "path": "android-ndk-r29/toolchains/llvm/prebuilt/linux-x86_64/bin/clang", |
| 24 | "providers": [ |
| 25 | { |
| 26 | "url": "https://dl.google.com/android/repository/android-ndk-r29-linux.zip" |
| 27 | } |
| 28 | ] |
| 29 | }, |
| 30 | "macos-x86_64": { |
| 31 | "size": 1049519838, |
| 32 | "hash": "sha256", |
| 33 | "digest": "ce5e4b100ec5fe5be4eb3edcb2c02528824ff9cda3860f5304619be6c3da34d3", |
| 34 | "format": "zip", |
| 35 | "path": "android-ndk-r29/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang", |
| 36 | "providers": [ |
| 37 | { |
| 38 | "url": "https://dl.google.com/android/repository/android-ndk-r29-darwin.zip" |
| 39 | } |
| 40 | ] |
| 41 | }, |
| 42 | "macos-aarch64": { |
| 43 | "size": 1049519838, |
| 44 | "hash": "sha256", |
| 45 | "digest": "ce5e4b100ec5fe5be4eb3edcb2c02528824ff9cda3860f5304619be6c3da34d3", |
| 46 | "format": "zip", |
| 47 | "path": "android-ndk-r29/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang", |
| 48 | "providers": [ |
| 49 | { |
| 50 | "url": "https://dl.google.com/android/repository/android-ndk-r29-darwin.zip" |
| 51 | } |
| 52 | ] |
| 53 | } |
| 54 | } |
| 55 | } |